AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Voice.h
1
6#pragma once
7#include <aws/polly/Polly_EXPORTS.h>
8#include <aws/polly/model/Gender.h>
9#include <aws/polly/model/VoiceId.h>
10#include <aws/polly/model/LanguageCode.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/polly/model/Engine.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Polly
27{
28namespace Model
29{
30
36 class Voice
37 {
38 public:
39 AWS_POLLY_API Voice();
40 AWS_POLLY_API Voice(Aws::Utils::Json::JsonView jsonValue);
41 AWS_POLLY_API Voice& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_POLLY_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Gender& GetGender() const{ return m_gender; }
50 inline bool GenderHasBeenSet() const { return m_genderHasBeenSet; }
51 inline void SetGender(const Gender& value) { m_genderHasBeenSet = true; m_gender = value; }
52 inline void SetGender(Gender&& value) { m_genderHasBeenSet = true; m_gender = std::move(value); }
53 inline Voice& WithGender(const Gender& value) { SetGender(value); return *this;}
54 inline Voice& WithGender(Gender&& value) { SetGender(std::move(value)); return *this;}
56
58
62 inline const VoiceId& GetId() const{ return m_id; }
63 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
64 inline void SetId(const VoiceId& value) { m_idHasBeenSet = true; m_id = value; }
65 inline void SetId(VoiceId&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
66 inline Voice& WithId(const VoiceId& value) { SetId(value); return *this;}
67 inline Voice& WithId(VoiceId&& value) { SetId(std::move(value)); return *this;}
69
71
74 inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; }
75 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
76 inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
77 inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
78 inline Voice& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;}
79 inline Voice& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
81
83
86 inline const Aws::String& GetLanguageName() const{ return m_languageName; }
87 inline bool LanguageNameHasBeenSet() const { return m_languageNameHasBeenSet; }
88 inline void SetLanguageName(const Aws::String& value) { m_languageNameHasBeenSet = true; m_languageName = value; }
89 inline void SetLanguageName(Aws::String&& value) { m_languageNameHasBeenSet = true; m_languageName = std::move(value); }
90 inline void SetLanguageName(const char* value) { m_languageNameHasBeenSet = true; m_languageName.assign(value); }
91 inline Voice& WithLanguageName(const Aws::String& value) { SetLanguageName(value); return *this;}
92 inline Voice& WithLanguageName(Aws::String&& value) { SetLanguageName(std::move(value)); return *this;}
93 inline Voice& WithLanguageName(const char* value) { SetLanguageName(value); return *this;}
95
97
101 inline const Aws::String& GetName() const{ return m_name; }
102 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
103 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
104 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
105 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
106 inline Voice& WithName(const Aws::String& value) { SetName(value); return *this;}
107 inline Voice& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
108 inline Voice& WithName(const char* value) { SetName(value); return *this;}
110
112
119 inline const Aws::Vector<LanguageCode>& GetAdditionalLanguageCodes() const{ return m_additionalLanguageCodes; }
120 inline bool AdditionalLanguageCodesHasBeenSet() const { return m_additionalLanguageCodesHasBeenSet; }
121 inline void SetAdditionalLanguageCodes(const Aws::Vector<LanguageCode>& value) { m_additionalLanguageCodesHasBeenSet = true; m_additionalLanguageCodes = value; }
122 inline void SetAdditionalLanguageCodes(Aws::Vector<LanguageCode>&& value) { m_additionalLanguageCodesHasBeenSet = true; m_additionalLanguageCodes = std::move(value); }
125 inline Voice& AddAdditionalLanguageCodes(const LanguageCode& value) { m_additionalLanguageCodesHasBeenSet = true; m_additionalLanguageCodes.push_back(value); return *this; }
126 inline Voice& AddAdditionalLanguageCodes(LanguageCode&& value) { m_additionalLanguageCodesHasBeenSet = true; m_additionalLanguageCodes.push_back(std::move(value)); return *this; }
128
130
135 inline const Aws::Vector<Engine>& GetSupportedEngines() const{ return m_supportedEngines; }
136 inline bool SupportedEnginesHasBeenSet() const { return m_supportedEnginesHasBeenSet; }
137 inline void SetSupportedEngines(const Aws::Vector<Engine>& value) { m_supportedEnginesHasBeenSet = true; m_supportedEngines = value; }
138 inline void SetSupportedEngines(Aws::Vector<Engine>&& value) { m_supportedEnginesHasBeenSet = true; m_supportedEngines = std::move(value); }
139 inline Voice& WithSupportedEngines(const Aws::Vector<Engine>& value) { SetSupportedEngines(value); return *this;}
140 inline Voice& WithSupportedEngines(Aws::Vector<Engine>&& value) { SetSupportedEngines(std::move(value)); return *this;}
141 inline Voice& AddSupportedEngines(const Engine& value) { m_supportedEnginesHasBeenSet = true; m_supportedEngines.push_back(value); return *this; }
142 inline Voice& AddSupportedEngines(Engine&& value) { m_supportedEnginesHasBeenSet = true; m_supportedEngines.push_back(std::move(value)); return *this; }
144 private:
145
146 Gender m_gender;
147 bool m_genderHasBeenSet = false;
148
149 VoiceId m_id;
150 bool m_idHasBeenSet = false;
151
152 LanguageCode m_languageCode;
153 bool m_languageCodeHasBeenSet = false;
154
155 Aws::String m_languageName;
156 bool m_languageNameHasBeenSet = false;
157
158 Aws::String m_name;
159 bool m_nameHasBeenSet = false;
160
161 Aws::Vector<LanguageCode> m_additionalLanguageCodes;
162 bool m_additionalLanguageCodesHasBeenSet = false;
163
164 Aws::Vector<Engine> m_supportedEngines;
165 bool m_supportedEnginesHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace Polly
170} // namespace Aws
void SetSupportedEngines(const Aws::Vector< Engine > &value)
Definition Voice.h:137
bool LanguageNameHasBeenSet() const
Definition Voice.h:87
bool GenderHasBeenSet() const
Definition Voice.h:50
AWS_POLLY_API Voice(Aws::Utils::Json::JsonView jsonValue)
void SetAdditionalLanguageCodes(const Aws::Vector< LanguageCode > &value)
Definition Voice.h:121
Voice & WithGender(const Gender &value)
Definition Voice.h:53
Voice & AddSupportedEngines(const Engine &value)
Definition Voice.h:141
void SetName(const char *value)
Definition Voice.h:105
Voice & WithGender(Gender &&value)
Definition Voice.h:54
bool LanguageCodeHasBeenSet() const
Definition Voice.h:75
void SetName(Aws::String &&value)
Definition Voice.h:104
void SetId(const VoiceId &value)
Definition Voice.h:64
Voice & WithAdditionalLanguageCodes(const Aws::Vector< LanguageCode > &value)
Definition Voice.h:123
bool AdditionalLanguageCodesHasBeenSet() const
Definition Voice.h:120
void SetId(VoiceId &&value)
Definition Voice.h:65
const VoiceId & GetId() const
Definition Voice.h:62
Voice & WithName(const Aws::String &value)
Definition Voice.h:106
Voice & WithLanguageCode(const LanguageCode &value)
Definition Voice.h:78
const LanguageCode & GetLanguageCode() const
Definition Voice.h:74
void SetAdditionalLanguageCodes(Aws::Vector< LanguageCode > &&value)
Definition Voice.h:122
void SetLanguageCode(LanguageCode &&value)
Definition Voice.h:77
Voice & WithLanguageCode(LanguageCode &&value)
Definition Voice.h:79
Voice & AddAdditionalLanguageCodes(LanguageCode &&value)
Definition Voice.h:126
Voice & WithId(VoiceId &&value)
Definition Voice.h:67
Voice & WithName(const char *value)
Definition Voice.h:108
Voice & WithSupportedEngines(const Aws::Vector< Engine > &value)
Definition Voice.h:139
const Aws::String & GetLanguageName() const
Definition Voice.h:86
bool IdHasBeenSet() const
Definition Voice.h:63
void SetName(const Aws::String &value)
Definition Voice.h:103
Voice & WithSupportedEngines(Aws::Vector< Engine > &&value)
Definition Voice.h:140
void SetGender(const Gender &value)
Definition Voice.h:51
void SetSupportedEngines(Aws::Vector< Engine > &&value)
Definition Voice.h:138
Voice & WithName(Aws::String &&value)
Definition Voice.h:107
bool NameHasBeenSet() const
Definition Voice.h:102
void SetLanguageName(const char *value)
Definition Voice.h:90
void SetLanguageCode(const LanguageCode &value)
Definition Voice.h:76
AWS_POLLY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_POLLY_API Voice()
const Aws::String & GetName() const
Definition Voice.h:101
const Aws::Vector< Engine > & GetSupportedEngines() const
Definition Voice.h:135
AWS_POLLY_API Voice & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< LanguageCode > & GetAdditionalLanguageCodes() const
Definition Voice.h:119
void SetGender(Gender &&value)
Definition Voice.h:52
Voice & WithLanguageName(Aws::String &&value)
Definition Voice.h:92
Voice & WithLanguageName(const Aws::String &value)
Definition Voice.h:91
const Gender & GetGender() const
Definition Voice.h:49
void SetLanguageName(Aws::String &&value)
Definition Voice.h:89
Voice & WithId(const VoiceId &value)
Definition Voice.h:66
bool SupportedEnginesHasBeenSet() const
Definition Voice.h:136
Voice & AddSupportedEngines(Engine &&value)
Definition Voice.h:142
Voice & AddAdditionalLanguageCodes(const LanguageCode &value)
Definition Voice.h:125
void SetLanguageName(const Aws::String &value)
Definition Voice.h:88
Voice & WithLanguageName(const char *value)
Definition Voice.h:93
Voice & WithAdditionalLanguageCodes(Aws::Vector< LanguageCode > &&value)
Definition Voice.h:124
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue