AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
ContactFlowModule.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/ContactFlowModuleState.h>
9#include <aws/connect/model/ContactFlowModuleStatus.h>
10#include <aws/connect/model/ExternalInvocationConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Connect {
24namespace Model {
25
32 public:
33 AWS_CONNECT_API ContactFlowModule() = default;
36 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetArn() const { return m_arn; }
43 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
44 template <typename ArnT = Aws::String>
45 void SetArn(ArnT&& value) {
46 m_arnHasBeenSet = true;
47 m_arn = std::forward<ArnT>(value);
48 }
49 template <typename ArnT = Aws::String>
50 ContactFlowModule& WithArn(ArnT&& value) {
51 SetArn(std::forward<ArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetId() const { return m_id; }
61 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
62 template <typename IdT = Aws::String>
63 void SetId(IdT&& value) {
64 m_idHasBeenSet = true;
65 m_id = std::forward<IdT>(value);
66 }
67 template <typename IdT = Aws::String>
68 ContactFlowModule& WithId(IdT&& value) {
69 SetId(std::forward<IdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetName() const { return m_name; }
79 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
80 template <typename NameT = Aws::String>
81 void SetName(NameT&& value) {
82 m_nameHasBeenSet = true;
83 m_name = std::forward<NameT>(value);
84 }
85 template <typename NameT = Aws::String>
86 ContactFlowModule& WithName(NameT&& value) {
87 SetName(std::forward<NameT>(value));
88 return *this;
89 }
91
93
99 inline const Aws::String& GetContent() const { return m_content; }
100 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
101 template <typename ContentT = Aws::String>
102 void SetContent(ContentT&& value) {
103 m_contentHasBeenSet = true;
104 m_content = std::forward<ContentT>(value);
105 }
106 template <typename ContentT = Aws::String>
107 ContactFlowModule& WithContent(ContentT&& value) {
108 SetContent(std::forward<ContentT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetDescription() const { return m_description; }
118 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
119 template <typename DescriptionT = Aws::String>
120 void SetDescription(DescriptionT&& value) {
121 m_descriptionHasBeenSet = true;
122 m_description = std::forward<DescriptionT>(value);
123 }
124 template <typename DescriptionT = Aws::String>
125 ContactFlowModule& WithDescription(DescriptionT&& value) {
126 SetDescription(std::forward<DescriptionT>(value));
127 return *this;
128 }
130
132
135 inline ContactFlowModuleState GetState() const { return m_state; }
136 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
137 inline void SetState(ContactFlowModuleState value) {
138 m_stateHasBeenSet = true;
139 m_state = value;
140 }
142 SetState(value);
143 return *this;
144 }
146
148
151 inline ContactFlowModuleStatus GetStatus() const { return m_status; }
152 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
154 m_statusHasBeenSet = true;
155 m_status = value;
156 }
158 SetStatus(value);
159 return *this;
160 }
162
164
168 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
169 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
170 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
171 void SetTags(TagsT&& value) {
172 m_tagsHasBeenSet = true;
173 m_tags = std::forward<TagsT>(value);
174 }
175 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
176 ContactFlowModule& WithTags(TagsT&& value) {
177 SetTags(std::forward<TagsT>(value));
178 return *this;
179 }
180 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
181 ContactFlowModule& AddTags(TagsKeyT&& key, TagsValueT&& value) {
182 m_tagsHasBeenSet = true;
183 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
184 return *this;
185 }
187
189
192 inline const Aws::String& GetFlowModuleContentSha256() const { return m_flowModuleContentSha256; }
193 inline bool FlowModuleContentSha256HasBeenSet() const { return m_flowModuleContentSha256HasBeenSet; }
194 template <typename FlowModuleContentSha256T = Aws::String>
195 void SetFlowModuleContentSha256(FlowModuleContentSha256T&& value) {
196 m_flowModuleContentSha256HasBeenSet = true;
197 m_flowModuleContentSha256 = std::forward<FlowModuleContentSha256T>(value);
198 }
199 template <typename FlowModuleContentSha256T = Aws::String>
200 ContactFlowModule& WithFlowModuleContentSha256(FlowModuleContentSha256T&& value) {
201 SetFlowModuleContentSha256(std::forward<FlowModuleContentSha256T>(value));
202 return *this;
203 }
205
207
210 inline long long GetVersion() const { return m_version; }
211 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
212 inline void SetVersion(long long value) {
213 m_versionHasBeenSet = true;
214 m_version = value;
215 }
216 inline ContactFlowModule& WithVersion(long long value) {
217 SetVersion(value);
218 return *this;
219 }
221
223
226 inline const Aws::String& GetVersionDescription() const { return m_versionDescription; }
227 inline bool VersionDescriptionHasBeenSet() const { return m_versionDescriptionHasBeenSet; }
228 template <typename VersionDescriptionT = Aws::String>
229 void SetVersionDescription(VersionDescriptionT&& value) {
230 m_versionDescriptionHasBeenSet = true;
231 m_versionDescription = std::forward<VersionDescriptionT>(value);
232 }
233 template <typename VersionDescriptionT = Aws::String>
234 ContactFlowModule& WithVersionDescription(VersionDescriptionT&& value) {
235 SetVersionDescription(std::forward<VersionDescriptionT>(value));
236 return *this;
237 }
239
241
244 inline const Aws::String& GetSettings() const { return m_settings; }
245 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
246 template <typename SettingsT = Aws::String>
247 void SetSettings(SettingsT&& value) {
248 m_settingsHasBeenSet = true;
249 m_settings = std::forward<SettingsT>(value);
250 }
251 template <typename SettingsT = Aws::String>
252 ContactFlowModule& WithSettings(SettingsT&& value) {
253 SetSettings(std::forward<SettingsT>(value));
254 return *this;
255 }
257
259
262 inline const ExternalInvocationConfiguration& GetExternalInvocationConfiguration() const { return m_externalInvocationConfiguration; }
263 inline bool ExternalInvocationConfigurationHasBeenSet() const { return m_externalInvocationConfigurationHasBeenSet; }
264 template <typename ExternalInvocationConfigurationT = ExternalInvocationConfiguration>
265 void SetExternalInvocationConfiguration(ExternalInvocationConfigurationT&& value) {
266 m_externalInvocationConfigurationHasBeenSet = true;
267 m_externalInvocationConfiguration = std::forward<ExternalInvocationConfigurationT>(value);
268 }
269 template <typename ExternalInvocationConfigurationT = ExternalInvocationConfiguration>
270 ContactFlowModule& WithExternalInvocationConfiguration(ExternalInvocationConfigurationT&& value) {
271 SetExternalInvocationConfiguration(std::forward<ExternalInvocationConfigurationT>(value));
272 return *this;
273 }
275 private:
276 Aws::String m_arn;
277
278 Aws::String m_id;
279
280 Aws::String m_name;
281
282 Aws::String m_content;
283
284 Aws::String m_description;
285
287
289
291
292 Aws::String m_flowModuleContentSha256;
293
294 long long m_version{0};
295
296 Aws::String m_versionDescription;
297
298 Aws::String m_settings;
299
300 ExternalInvocationConfiguration m_externalInvocationConfiguration;
301 bool m_arnHasBeenSet = false;
302 bool m_idHasBeenSet = false;
303 bool m_nameHasBeenSet = false;
304 bool m_contentHasBeenSet = false;
305 bool m_descriptionHasBeenSet = false;
306 bool m_stateHasBeenSet = false;
307 bool m_statusHasBeenSet = false;
308 bool m_tagsHasBeenSet = false;
309 bool m_flowModuleContentSha256HasBeenSet = false;
310 bool m_versionHasBeenSet = false;
311 bool m_versionDescriptionHasBeenSet = false;
312 bool m_settingsHasBeenSet = false;
313 bool m_externalInvocationConfigurationHasBeenSet = false;
314};
315
316} // namespace Model
317} // namespace Connect
318} // namespace Aws
const Aws::String & GetFlowModuleContentSha256() const
ContactFlowModule & WithArn(ArnT &&value)
ContactFlowModule & WithVersion(long long value)
ContactFlowModule & WithSettings(SettingsT &&value)
const Aws::String & GetVersionDescription() const
ContactFlowModule & WithTags(TagsT &&value)
void SetDescription(DescriptionT &&value)
ContactFlowModule & WithStatus(ContactFlowModuleStatus value)
const Aws::String & GetSettings() const
ContactFlowModule & WithDescription(DescriptionT &&value)
ContactFlowModuleStatus GetStatus() const
ContactFlowModuleState GetState() const
const Aws::String & GetDescription() const
const Aws::String & GetContent() const
AWS_CONNECT_API ContactFlowModule()=default
const ExternalInvocationConfiguration & GetExternalInvocationConfiguration() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ContactFlowModule & WithId(IdT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
ContactFlowModule & WithExternalInvocationConfiguration(ExternalInvocationConfigurationT &&value)
void SetFlowModuleContentSha256(FlowModuleContentSha256T &&value)
void SetVersionDescription(VersionDescriptionT &&value)
AWS_CONNECT_API ContactFlowModule & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetState(ContactFlowModuleState value)
AWS_CONNECT_API ContactFlowModule(Aws::Utils::Json::JsonView jsonValue)
ContactFlowModule & WithFlowModuleContentSha256(FlowModuleContentSha256T &&value)
const Aws::String & GetName() const
void SetStatus(ContactFlowModuleStatus value)
ContactFlowModule & WithName(NameT &&value)
ContactFlowModule & AddTags(TagsKeyT &&key, TagsValueT &&value)
ContactFlowModule & WithContent(ContentT &&value)
void SetExternalInvocationConfiguration(ExternalInvocationConfigurationT &&value)
ContactFlowModule & WithState(ContactFlowModuleState value)
ContactFlowModule & WithVersionDescription(VersionDescriptionT &&value)
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