AWS SDK for C++  1.9.160
AWS SDK for C++
CreateContactFlowRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Connect
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreateContactFlow"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
40  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
41 
45  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
46 
50  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
51 
55  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
56 
60  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
61 
65  inline CreateContactFlowRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
66 
70  inline CreateContactFlowRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
71 
75  inline CreateContactFlowRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
76 
77 
81  inline const Aws::String& GetName() const{ return m_name; }
82 
86  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
87 
91  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
92 
96  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
97 
101  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
102 
106  inline CreateContactFlowRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
107 
111  inline CreateContactFlowRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
112 
116  inline CreateContactFlowRequest& WithName(const char* value) { SetName(value); return *this;}
117 
118 
124  inline const ContactFlowType& GetType() const{ return m_type; }
125 
131  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
132 
138  inline void SetType(const ContactFlowType& value) { m_typeHasBeenSet = true; m_type = value; }
139 
145  inline void SetType(ContactFlowType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
146 
152  inline CreateContactFlowRequest& WithType(const ContactFlowType& value) { SetType(value); return *this;}
153 
159  inline CreateContactFlowRequest& WithType(ContactFlowType&& value) { SetType(std::move(value)); return *this;}
160 
161 
165  inline const Aws::String& GetDescription() const{ return m_description; }
166 
170  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
171 
175  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
176 
180  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
181 
185  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
186 
190  inline CreateContactFlowRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
191 
195  inline CreateContactFlowRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
196 
200  inline CreateContactFlowRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
201 
202 
206  inline const Aws::String& GetContent() const{ return m_content; }
207 
211  inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
212 
216  inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
217 
221  inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
222 
226  inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
227 
231  inline CreateContactFlowRequest& WithContent(const Aws::String& value) { SetContent(value); return *this;}
232 
236  inline CreateContactFlowRequest& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
237 
241  inline CreateContactFlowRequest& WithContent(const char* value) { SetContent(value); return *this;}
242 
243 
247  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
248 
252  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
253 
257  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
258 
262  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
263 
267  inline CreateContactFlowRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
268 
272  inline CreateContactFlowRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
273 
277  inline CreateContactFlowRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
278 
282  inline CreateContactFlowRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
283 
287  inline CreateContactFlowRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
288 
292  inline CreateContactFlowRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
293 
297  inline CreateContactFlowRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
298 
302  inline CreateContactFlowRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
303 
307  inline CreateContactFlowRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
308 
309  private:
310 
311  Aws::String m_instanceId;
312  bool m_instanceIdHasBeenSet;
313 
314  Aws::String m_name;
315  bool m_nameHasBeenSet;
316 
317  ContactFlowType m_type;
318  bool m_typeHasBeenSet;
319 
320  Aws::String m_description;
321  bool m_descriptionHasBeenSet;
322 
323  Aws::String m_content;
324  bool m_contentHasBeenSet;
325 
327  bool m_tagsHasBeenSet;
328  };
329 
330 } // namespace Model
331 } // namespace Connect
332 } // namespace Aws
Aws::Connect::Model::CreateContactFlowRequest::SetType
void SetType(ContactFlowType &&value)
Definition: CreateContactFlowRequest.h:145
Aws::Connect::Model::CreateContactFlowRequest::GetName
const Aws::String & GetName() const
Definition: CreateContactFlowRequest.h:81
Aws::Connect::Model::CreateContactFlowRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateContactFlowRequest.h:96
Aws::Connect::Model::CreateContactFlowRequest::WithInstanceId
CreateContactFlowRequest & WithInstanceId(const char *value)
Definition: CreateContactFlowRequest.h:75
Aws::Connect::Model::CreateContactFlowRequest::WithContent
CreateContactFlowRequest & WithContent(const Aws::String &value)
Definition: CreateContactFlowRequest.h:231
Aws::Connect::Model::CreateContactFlowRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateContactFlowRequest.h:257
Aws::Connect::Model::CreateContactFlowRequest
Definition: CreateContactFlowRequest.h:24
Aws::Connect::Model::CreateContactFlowRequest::AddTags
CreateContactFlowRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateContactFlowRequest.h:292
Aws::Connect::Model::CreateContactFlowRequest::AddTags
CreateContactFlowRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateContactFlowRequest.h:287
Aws::Connect::Model::CreateContactFlowRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateContactFlowRequest.h:32
Aws::Connect::Model::CreateContactFlowRequest::WithName
CreateContactFlowRequest & WithName(const char *value)
Definition: CreateContactFlowRequest.h:116
Aws::Connect::Model::CreateContactFlowRequest::WithDescription
CreateContactFlowRequest & WithDescription(const Aws::String &value)
Definition: CreateContactFlowRequest.h:190
Aws::Connect::Model::CreateContactFlowRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: CreateContactFlowRequest.h:45
Aws::Connect::Model::CreateContactFlowRequest::WithInstanceId
CreateContactFlowRequest & WithInstanceId(const Aws::String &value)
Definition: CreateContactFlowRequest.h:65
Aws::Connect::Model::CreateContactFlowRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateContactFlowRequest.h:91
Aws::Connect::Model::CreateContactFlowRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: CreateContactFlowRequest.h:55
Aws::Connect::Model::CreateContactFlowRequest::WithContent
CreateContactFlowRequest & WithContent(const char *value)
Definition: CreateContactFlowRequest.h:241
Aws::Connect::Model::ContactFlowType
ContactFlowType
Definition: ContactFlowType.h:17
Aws::Connect::Model::CreateContactFlowRequest::AddTags
CreateContactFlowRequest & AddTags(const char *key, const char *value)
Definition: CreateContactFlowRequest.h:307
Aws::Connect::Model::CreateContactFlowRequest::WithType
CreateContactFlowRequest & WithType(ContactFlowType &&value)
Definition: CreateContactFlowRequest.h:159
Aws::Connect::Model::CreateContactFlowRequest::AddTags
CreateContactFlowRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateContactFlowRequest.h:282
Aws::Connect::Model::CreateContactFlowRequest::SetContent
void SetContent(const char *value)
Definition: CreateContactFlowRequest.h:226
Aws::Connect::Model::CreateContactFlowRequest::AddTags
CreateContactFlowRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateContactFlowRequest.h:297
Aws::Connect::Model::CreateContactFlowRequest::CreateContactFlowRequest
CreateContactFlowRequest()
ContactFlowType.h
Aws::Connect::Model::CreateContactFlowRequest::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: CreateContactFlowRequest.h:131
Aws::Connect::Model::CreateContactFlowRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateContactFlowRequest.h:185
Aws::Connect::Model::CreateContactFlowRequest::WithName
CreateContactFlowRequest & WithName(const Aws::String &value)
Definition: CreateContactFlowRequest.h:106
Aws::Connect::Model::CreateContactFlowRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateContactFlowRequest.h:175
Aws::Connect::Model::CreateContactFlowRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateContactFlowRequest.h:86
Aws::Connect::Model::CreateContactFlowRequest::WithDescription
CreateContactFlowRequest & WithDescription(const char *value)
Definition: CreateContactFlowRequest.h:200
Aws::Connect::Model::CreateContactFlowRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateContactFlowRequest.h:262
Aws::Connect::Model::CreateContactFlowRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateContactFlowRequest.h:165
Aws::Connect::Model::CreateContactFlowRequest::WithDescription
CreateContactFlowRequest & WithDescription(Aws::String &&value)
Definition: CreateContactFlowRequest.h:195
Aws::Connect::Model::CreateContactFlowRequest::SetContent
void SetContent(const Aws::String &value)
Definition: CreateContactFlowRequest.h:216
Aws::Connect::Model::CreateContactFlowRequest::WithType
CreateContactFlowRequest & WithType(const ContactFlowType &value)
Definition: CreateContactFlowRequest.h:152
Aws::Connect::ConnectRequest
Definition: ConnectRequest.h:17
Aws::Connect::Model::CreateContactFlowRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateContactFlowRequest.h:252
Aws::Connect::Model::CreateContactFlowRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateContactFlowRequest.h:180
AWSString.h
Aws::Connect::Model::CreateContactFlowRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: CreateContactFlowRequest.h:40
Aws::Connect::Model::CreateContactFlowRequest::GetContent
const Aws::String & GetContent() const
Definition: CreateContactFlowRequest.h:206
Aws::Connect::Model::CreateContactFlowRequest::AddTags
CreateContactFlowRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateContactFlowRequest.h:302
Aws::Connect::Model::CreateContactFlowRequest::SetName
void SetName(const char *value)
Definition: CreateContactFlowRequest.h:101
Aws::Connect::Model::CreateContactFlowRequest::WithTags
CreateContactFlowRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateContactFlowRequest.h:272
Aws::Connect::Model::CreateContactFlowRequest::WithInstanceId
CreateContactFlowRequest & WithInstanceId(Aws::String &&value)
Definition: CreateContactFlowRequest.h:70
Aws::Connect::Model::CreateContactFlowRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Connect::Model::CreateContactFlowRequest::SetContent
void SetContent(Aws::String &&value)
Definition: CreateContactFlowRequest.h:221
Aws::Connect::Model::CreateContactFlowRequest::SetType
void SetType(const ContactFlowType &value)
Definition: CreateContactFlowRequest.h:138
Aws::Connect::Model::CreateContactFlowRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: CreateContactFlowRequest.h:50
Aws
Definition: AccessManagementClient.h:15
Aws::Connect::Model::CreateContactFlowRequest::WithContent
CreateContactFlowRequest & WithContent(Aws::String &&value)
Definition: CreateContactFlowRequest.h:236
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Connect::Model::CreateContactFlowRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateContactFlowRequest.h:170
Aws::Connect::Model::CreateContactFlowRequest::ContentHasBeenSet
bool ContentHasBeenSet() const
Definition: CreateContactFlowRequest.h:211
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Aws::Connect::Model::CreateContactFlowRequest::AddTags
CreateContactFlowRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateContactFlowRequest.h:277
Aws::Connect::Model::CreateContactFlowRequest::WithName
CreateContactFlowRequest & WithName(Aws::String &&value)
Definition: CreateContactFlowRequest.h:111
Aws::Connect::Model::CreateContactFlowRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateContactFlowRequest.h:247
Aws::Connect::Model::CreateContactFlowRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: CreateContactFlowRequest.h:60
Aws::Connect::Model::CreateContactFlowRequest::WithTags
CreateContactFlowRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateContactFlowRequest.h:267
Connect_EXPORTS.h
AWSMap.h
ConnectRequest.h
Aws::Connect::Model::CreateContactFlowRequest::GetType
const ContactFlowType & GetType() const
Definition: CreateContactFlowRequest.h:124
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19