AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ContactFlow.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/connect/model/ContactFlowType.h>
10#include <aws/connect/model/ContactFlowState.h>
11#include <aws/connect/model/ContactFlowStatus.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/DateTime.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 Connect
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_CONNECT_API ContactFlow() = default;
40 AWS_CONNECT_API ContactFlow(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetArn() const { return m_arn; }
50 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
51 template<typename ArnT = Aws::String>
52 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
53 template<typename ArnT = Aws::String>
54 ContactFlow& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
65 template<typename IdT = Aws::String>
66 ContactFlow& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
68
70
73 inline const Aws::String& GetName() const { return m_name; }
74 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
75 template<typename NameT = Aws::String>
76 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
77 template<typename NameT = Aws::String>
78 ContactFlow& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
80
82
87 inline ContactFlowType GetType() const { return m_type; }
88 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
89 inline void SetType(ContactFlowType value) { m_typeHasBeenSet = true; m_type = value; }
90 inline ContactFlow& WithType(ContactFlowType value) { SetType(value); return *this;}
92
94
97 inline ContactFlowState GetState() const { return m_state; }
98 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
99 inline void SetState(ContactFlowState value) { m_stateHasBeenSet = true; m_state = value; }
100 inline ContactFlow& WithState(ContactFlowState value) { SetState(value); return *this;}
102
104
107 inline ContactFlowStatus GetStatus() const { return m_status; }
108 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
109 inline void SetStatus(ContactFlowStatus value) { m_statusHasBeenSet = true; m_status = value; }
110 inline ContactFlow& WithStatus(ContactFlowStatus value) { SetStatus(value); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
121 template<typename DescriptionT = Aws::String>
122 ContactFlow& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
124
126
133 inline const Aws::String& GetContent() const { return m_content; }
134 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
135 template<typename ContentT = Aws::String>
136 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
137 template<typename ContentT = Aws::String>
138 ContactFlow& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
140
142
146 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
147 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
148 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
149 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
150 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
151 ContactFlow& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
152 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
153 ContactFlow& AddTags(TagsKeyT&& key, TagsValueT&& value) {
154 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
155 }
157
159
162 inline const Aws::String& GetFlowContentSha256() const { return m_flowContentSha256; }
163 inline bool FlowContentSha256HasBeenSet() const { return m_flowContentSha256HasBeenSet; }
164 template<typename FlowContentSha256T = Aws::String>
165 void SetFlowContentSha256(FlowContentSha256T&& value) { m_flowContentSha256HasBeenSet = true; m_flowContentSha256 = std::forward<FlowContentSha256T>(value); }
166 template<typename FlowContentSha256T = Aws::String>
167 ContactFlow& WithFlowContentSha256(FlowContentSha256T&& value) { SetFlowContentSha256(std::forward<FlowContentSha256T>(value)); return *this;}
169
171
174 inline long long GetVersion() const { return m_version; }
175 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
176 inline void SetVersion(long long value) { m_versionHasBeenSet = true; m_version = value; }
177 inline ContactFlow& WithVersion(long long value) { SetVersion(value); return *this;}
179
181
184 inline const Aws::String& GetVersionDescription() const { return m_versionDescription; }
185 inline bool VersionDescriptionHasBeenSet() const { return m_versionDescriptionHasBeenSet; }
186 template<typename VersionDescriptionT = Aws::String>
187 void SetVersionDescription(VersionDescriptionT&& value) { m_versionDescriptionHasBeenSet = true; m_versionDescription = std::forward<VersionDescriptionT>(value); }
188 template<typename VersionDescriptionT = Aws::String>
189 ContactFlow& WithVersionDescription(VersionDescriptionT&& value) { SetVersionDescription(std::forward<VersionDescriptionT>(value)); return *this;}
191
193
196 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
197 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
198 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
199 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
200 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
201 ContactFlow& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
203
205
208 inline const Aws::String& GetLastModifiedRegion() const { return m_lastModifiedRegion; }
209 inline bool LastModifiedRegionHasBeenSet() const { return m_lastModifiedRegionHasBeenSet; }
210 template<typename LastModifiedRegionT = Aws::String>
211 void SetLastModifiedRegion(LastModifiedRegionT&& value) { m_lastModifiedRegionHasBeenSet = true; m_lastModifiedRegion = std::forward<LastModifiedRegionT>(value); }
212 template<typename LastModifiedRegionT = Aws::String>
213 ContactFlow& WithLastModifiedRegion(LastModifiedRegionT&& value) { SetLastModifiedRegion(std::forward<LastModifiedRegionT>(value)); return *this;}
215 private:
216
217 Aws::String m_arn;
218 bool m_arnHasBeenSet = false;
219
220 Aws::String m_id;
221 bool m_idHasBeenSet = false;
222
223 Aws::String m_name;
224 bool m_nameHasBeenSet = false;
225
227 bool m_typeHasBeenSet = false;
228
230 bool m_stateHasBeenSet = false;
231
233 bool m_statusHasBeenSet = false;
234
235 Aws::String m_description;
236 bool m_descriptionHasBeenSet = false;
237
238 Aws::String m_content;
239 bool m_contentHasBeenSet = false;
240
242 bool m_tagsHasBeenSet = false;
243
244 Aws::String m_flowContentSha256;
245 bool m_flowContentSha256HasBeenSet = false;
246
247 long long m_version{0};
248 bool m_versionHasBeenSet = false;
249
250 Aws::String m_versionDescription;
251 bool m_versionDescriptionHasBeenSet = false;
252
253 Aws::Utils::DateTime m_lastModifiedTime{};
254 bool m_lastModifiedTimeHasBeenSet = false;
255
256 Aws::String m_lastModifiedRegion;
257 bool m_lastModifiedRegionHasBeenSet = false;
258 };
259
260} // namespace Model
261} // namespace Connect
262} // namespace Aws
ContactFlowType GetType() const
Definition ContactFlow.h:87
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:49
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:76
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:54
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:66
void SetState(ContactFlowState value)
Definition ContactFlow.h:99
void SetLastModifiedRegion(LastModifiedRegionT &&value)
void SetStatus(ContactFlowStatus value)
ContactFlowState GetState() const
Definition ContactFlow.h:97
ContactFlow & WithTags(TagsT &&value)
const Aws::String & GetName() const
Definition ContactFlow.h:73
const Aws::String & GetVersionDescription() const
ContactFlow & WithName(NameT &&value)
Definition ContactFlow.h:78
ContactFlow & WithType(ContactFlowType value)
Definition ContactFlow.h:90
void SetType(ContactFlowType value)
Definition ContactFlow.h:89
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