AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
ContactFlow.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/ContactFlowState.h>
9#include <aws/connect/model/ContactFlowStatus.h>
10#include <aws/connect/model/ContactFlowType.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Connect {
25namespace Model {
26
33 public:
34 AWS_CONNECT_API ContactFlow() = default;
35 AWS_CONNECT_API ContactFlow(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetArn() const { return m_arn; }
44 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
45 template <typename ArnT = Aws::String>
46 void SetArn(ArnT&& value) {
47 m_arnHasBeenSet = true;
48 m_arn = std::forward<ArnT>(value);
49 }
50 template <typename ArnT = Aws::String>
51 ContactFlow& WithArn(ArnT&& value) {
52 SetArn(std::forward<ArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetId() const { return m_id; }
62 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
63 template <typename IdT = Aws::String>
64 void SetId(IdT&& value) {
65 m_idHasBeenSet = true;
66 m_id = std::forward<IdT>(value);
67 }
68 template <typename IdT = Aws::String>
69 ContactFlow& WithId(IdT&& value) {
70 SetId(std::forward<IdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetName() const { return m_name; }
80 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
81 template <typename NameT = Aws::String>
82 void SetName(NameT&& value) {
83 m_nameHasBeenSet = true;
84 m_name = std::forward<NameT>(value);
85 }
86 template <typename NameT = Aws::String>
87 ContactFlow& WithName(NameT&& value) {
88 SetName(std::forward<NameT>(value));
89 return *this;
90 }
92
94
99 inline ContactFlowType GetType() const { return m_type; }
100 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
101 inline void SetType(ContactFlowType value) {
102 m_typeHasBeenSet = true;
103 m_type = value;
104 }
106 SetType(value);
107 return *this;
108 }
110
112
115 inline ContactFlowState GetState() const { return m_state; }
116 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
117 inline void SetState(ContactFlowState value) {
118 m_stateHasBeenSet = true;
119 m_state = value;
120 }
122 SetState(value);
123 return *this;
124 }
126
128
131 inline ContactFlowStatus GetStatus() const { return m_status; }
132 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
133 inline void SetStatus(ContactFlowStatus value) {
134 m_statusHasBeenSet = true;
135 m_status = value;
136 }
138 SetStatus(value);
139 return *this;
140 }
142
144
147 inline const Aws::String& GetDescription() const { return m_description; }
148 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
149 template <typename DescriptionT = Aws::String>
150 void SetDescription(DescriptionT&& value) {
151 m_descriptionHasBeenSet = true;
152 m_description = std::forward<DescriptionT>(value);
153 }
154 template <typename DescriptionT = Aws::String>
155 ContactFlow& WithDescription(DescriptionT&& value) {
156 SetDescription(std::forward<DescriptionT>(value));
157 return *this;
158 }
160
162
169 inline const Aws::String& GetContent() const { return m_content; }
170 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
171 template <typename ContentT = Aws::String>
172 void SetContent(ContentT&& value) {
173 m_contentHasBeenSet = true;
174 m_content = std::forward<ContentT>(value);
175 }
176 template <typename ContentT = Aws::String>
177 ContactFlow& WithContent(ContentT&& value) {
178 SetContent(std::forward<ContentT>(value));
179 return *this;
180 }
182
184
188 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
189 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
190 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
191 void SetTags(TagsT&& value) {
192 m_tagsHasBeenSet = true;
193 m_tags = std::forward<TagsT>(value);
194 }
195 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
196 ContactFlow& WithTags(TagsT&& value) {
197 SetTags(std::forward<TagsT>(value));
198 return *this;
199 }
200 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
201 ContactFlow& AddTags(TagsKeyT&& key, TagsValueT&& value) {
202 m_tagsHasBeenSet = true;
203 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
204 return *this;
205 }
207
209
212 inline const Aws::String& GetFlowContentSha256() const { return m_flowContentSha256; }
213 inline bool FlowContentSha256HasBeenSet() const { return m_flowContentSha256HasBeenSet; }
214 template <typename FlowContentSha256T = Aws::String>
215 void SetFlowContentSha256(FlowContentSha256T&& value) {
216 m_flowContentSha256HasBeenSet = true;
217 m_flowContentSha256 = std::forward<FlowContentSha256T>(value);
218 }
219 template <typename FlowContentSha256T = Aws::String>
220 ContactFlow& WithFlowContentSha256(FlowContentSha256T&& value) {
221 SetFlowContentSha256(std::forward<FlowContentSha256T>(value));
222 return *this;
223 }
225
227
230 inline long long GetVersion() const { return m_version; }
231 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
232 inline void SetVersion(long long value) {
233 m_versionHasBeenSet = true;
234 m_version = value;
235 }
236 inline ContactFlow& WithVersion(long long value) {
237 SetVersion(value);
238 return *this;
239 }
241
243
246 inline const Aws::String& GetVersionDescription() const { return m_versionDescription; }
247 inline bool VersionDescriptionHasBeenSet() const { return m_versionDescriptionHasBeenSet; }
248 template <typename VersionDescriptionT = Aws::String>
249 void SetVersionDescription(VersionDescriptionT&& value) {
250 m_versionDescriptionHasBeenSet = true;
251 m_versionDescription = std::forward<VersionDescriptionT>(value);
252 }
253 template <typename VersionDescriptionT = Aws::String>
254 ContactFlow& WithVersionDescription(VersionDescriptionT&& value) {
255 SetVersionDescription(std::forward<VersionDescriptionT>(value));
256 return *this;
257 }
259
261
264 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
265 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
266 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
267 void SetLastModifiedTime(LastModifiedTimeT&& value) {
268 m_lastModifiedTimeHasBeenSet = true;
269 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
270 }
271 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
272 ContactFlow& WithLastModifiedTime(LastModifiedTimeT&& value) {
273 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
274 return *this;
275 }
277
279
282 inline const Aws::String& GetLastModifiedRegion() const { return m_lastModifiedRegion; }
283 inline bool LastModifiedRegionHasBeenSet() const { return m_lastModifiedRegionHasBeenSet; }
284 template <typename LastModifiedRegionT = Aws::String>
285 void SetLastModifiedRegion(LastModifiedRegionT&& value) {
286 m_lastModifiedRegionHasBeenSet = true;
287 m_lastModifiedRegion = std::forward<LastModifiedRegionT>(value);
288 }
289 template <typename LastModifiedRegionT = Aws::String>
290 ContactFlow& WithLastModifiedRegion(LastModifiedRegionT&& value) {
291 SetLastModifiedRegion(std::forward<LastModifiedRegionT>(value));
292 return *this;
293 }
295 private:
296 Aws::String m_arn;
297
298 Aws::String m_id;
299
300 Aws::String m_name;
301
303
305
307
308 Aws::String m_description;
309
310 Aws::String m_content;
311
313
314 Aws::String m_flowContentSha256;
315
316 long long m_version{0};
317
318 Aws::String m_versionDescription;
319
320 Aws::Utils::DateTime m_lastModifiedTime{};
321
322 Aws::String m_lastModifiedRegion;
323 bool m_arnHasBeenSet = false;
324 bool m_idHasBeenSet = false;
325 bool m_nameHasBeenSet = false;
326 bool m_typeHasBeenSet = false;
327 bool m_stateHasBeenSet = false;
328 bool m_statusHasBeenSet = false;
329 bool m_descriptionHasBeenSet = false;
330 bool m_contentHasBeenSet = false;
331 bool m_tagsHasBeenSet = false;
332 bool m_flowContentSha256HasBeenSet = false;
333 bool m_versionHasBeenSet = false;
334 bool m_versionDescriptionHasBeenSet = false;
335 bool m_lastModifiedTimeHasBeenSet = false;
336 bool m_lastModifiedRegionHasBeenSet = false;
337};
338
339} // namespace Model
340} // namespace Connect
341} // namespace Aws
ContactFlowType GetType() const
Definition ContactFlow.h:99
AWS_CONNECT_API ContactFlow(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastModifiedTime() const
const Aws::String & GetDescription() const
ContactFlow & WithVersion(long long value)
void SetVersionDescription(VersionDescriptionT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
void SetFlowContentSha256(FlowContentSha256T &&value)
ContactFlow & WithVersionDescription(VersionDescriptionT &&value)
const Aws::String & GetArn() const
Definition ContactFlow.h:43
void SetDescription(DescriptionT &&value)
ContactFlow & WithStatus(ContactFlowStatus value)
AWS_CONNECT_API ContactFlow & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetLastModifiedRegion() const
void SetName(NameT &&value)
Definition ContactFlow.h:82
const Aws::String & GetContent() const
const Aws::String & GetFlowContentSha256() const
ContactFlow & WithState(ContactFlowState value)
ContactFlow & WithLastModifiedTime(LastModifiedTimeT &&value)
ContactFlow & WithDescription(DescriptionT &&value)
ContactFlow & WithContent(ContentT &&value)
ContactFlow & WithArn(ArnT &&value)
Definition ContactFlow.h:51
ContactFlow & WithLastModifiedRegion(LastModifiedRegionT &&value)
const Aws::String & GetId() const
Definition ContactFlow.h:61
ContactFlow & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetContent(ContentT &&value)
ContactFlow & WithId(IdT &&value)
Definition ContactFlow.h:69
void SetState(ContactFlowState value)
void SetLastModifiedRegion(LastModifiedRegionT &&value)
void SetStatus(ContactFlowStatus value)
ContactFlowState GetState() const
ContactFlow & WithTags(TagsT &&value)
const Aws::String & GetName() const
Definition ContactFlow.h:79
const Aws::String & GetVersionDescription() const
ContactFlow & WithName(NameT &&value)
Definition ContactFlow.h:87
ContactFlow & WithType(ContactFlowType value)
void SetType(ContactFlowType value)
AWS_CONNECT_API ContactFlow()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ContactFlow & WithFlowContentSha256(FlowContentSha256T &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetVersion(long long value)
ContactFlowStatus GetStatus() const
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