AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
VoiceTemplateRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pinpoint/Pinpoint_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Pinpoint {
21namespace Model {
22
30 public:
31 AWS_PINPOINT_API VoiceTemplateRequest() = default;
34 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetBody() const { return m_body; }
42 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
43 template <typename BodyT = Aws::String>
44 void SetBody(BodyT&& value) {
45 m_bodyHasBeenSet = true;
46 m_body = std::forward<BodyT>(value);
47 }
48 template <typename BodyT = Aws::String>
50 SetBody(std::forward<BodyT>(value));
51 return *this;
52 }
54
56
64 inline const Aws::String& GetDefaultSubstitutions() const { return m_defaultSubstitutions; }
65 inline bool DefaultSubstitutionsHasBeenSet() const { return m_defaultSubstitutionsHasBeenSet; }
66 template <typename DefaultSubstitutionsT = Aws::String>
67 void SetDefaultSubstitutions(DefaultSubstitutionsT&& value) {
68 m_defaultSubstitutionsHasBeenSet = true;
69 m_defaultSubstitutions = std::forward<DefaultSubstitutionsT>(value);
70 }
71 template <typename DefaultSubstitutionsT = Aws::String>
72 VoiceTemplateRequest& WithDefaultSubstitutions(DefaultSubstitutionsT&& value) {
73 SetDefaultSubstitutions(std::forward<DefaultSubstitutionsT>(value));
74 return *this;
75 }
77
79
86 inline const Aws::String& GetLanguageCode() const { return m_languageCode; }
87 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
88 template <typename LanguageCodeT = Aws::String>
89 void SetLanguageCode(LanguageCodeT&& value) {
90 m_languageCodeHasBeenSet = true;
91 m_languageCode = std::forward<LanguageCodeT>(value);
92 }
93 template <typename LanguageCodeT = Aws::String>
94 VoiceTemplateRequest& WithLanguageCode(LanguageCodeT&& value) {
95 SetLanguageCode(std::forward<LanguageCodeT>(value));
96 return *this;
97 }
99
101
114 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
115 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
116 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
117 void SetTags(TagsT&& value) {
118 m_tagsHasBeenSet = true;
119 m_tags = std::forward<TagsT>(value);
120 }
121 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
123 SetTags(std::forward<TagsT>(value));
124 return *this;
125 }
126 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
127 VoiceTemplateRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
128 m_tagsHasBeenSet = true;
129 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::String& GetTemplateDescription() const { return m_templateDescription; }
139 inline bool TemplateDescriptionHasBeenSet() const { return m_templateDescriptionHasBeenSet; }
140 template <typename TemplateDescriptionT = Aws::String>
141 void SetTemplateDescription(TemplateDescriptionT&& value) {
142 m_templateDescriptionHasBeenSet = true;
143 m_templateDescription = std::forward<TemplateDescriptionT>(value);
144 }
145 template <typename TemplateDescriptionT = Aws::String>
146 VoiceTemplateRequest& WithTemplateDescription(TemplateDescriptionT&& value) {
147 SetTemplateDescription(std::forward<TemplateDescriptionT>(value));
148 return *this;
149 }
151
153
159 inline const Aws::String& GetVoiceId() const { return m_voiceId; }
160 inline bool VoiceIdHasBeenSet() const { return m_voiceIdHasBeenSet; }
161 template <typename VoiceIdT = Aws::String>
162 void SetVoiceId(VoiceIdT&& value) {
163 m_voiceIdHasBeenSet = true;
164 m_voiceId = std::forward<VoiceIdT>(value);
165 }
166 template <typename VoiceIdT = Aws::String>
168 SetVoiceId(std::forward<VoiceIdT>(value));
169 return *this;
170 }
172 private:
173 Aws::String m_body;
174 bool m_bodyHasBeenSet = false;
175
176 Aws::String m_defaultSubstitutions;
177 bool m_defaultSubstitutionsHasBeenSet = false;
178
179 Aws::String m_languageCode;
180 bool m_languageCodeHasBeenSet = false;
181
183 bool m_tagsHasBeenSet = false;
184
185 Aws::String m_templateDescription;
186 bool m_templateDescriptionHasBeenSet = false;
187
188 Aws::String m_voiceId;
189 bool m_voiceIdHasBeenSet = false;
190};
191
192} // namespace Model
193} // namespace Pinpoint
194} // namespace Aws
AWS_PINPOINT_API VoiceTemplateRequest(Aws::Utils::Json::JsonView jsonValue)
VoiceTemplateRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
VoiceTemplateRequest & WithBody(BodyT &&value)
VoiceTemplateRequest & WithDefaultSubstitutions(DefaultSubstitutionsT &&value)
VoiceTemplateRequest & WithTemplateDescription(TemplateDescriptionT &&value)
void SetDefaultSubstitutions(DefaultSubstitutionsT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
VoiceTemplateRequest & WithLanguageCode(LanguageCodeT &&value)
void SetTemplateDescription(TemplateDescriptionT &&value)
VoiceTemplateRequest & WithTags(TagsT &&value)
const Aws::String & GetDefaultSubstitutions() const
VoiceTemplateRequest & WithVoiceId(VoiceIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_PINPOINT_API VoiceTemplateRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API VoiceTemplateRequest()=default
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue