AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateContactFlowRequest.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/ConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/connect/model/ContactFlowType.h>
11#include <aws/connect/model/ContactFlowStatus.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Connect
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CONNECT_API CreateContactFlowRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateContactFlow"; }
34
35 AWS_CONNECT_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
43 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
44 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
45 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
46 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
47 inline CreateContactFlowRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
48 inline CreateContactFlowRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
49 inline CreateContactFlowRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
51
53
56 inline const Aws::String& GetName() const{ return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
59 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
61 inline CreateContactFlowRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
62 inline CreateContactFlowRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
63 inline CreateContactFlowRequest& WithName(const char* value) { SetName(value); return *this;}
65
67
72 inline const ContactFlowType& GetType() const{ return m_type; }
73 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
74 inline void SetType(const ContactFlowType& value) { m_typeHasBeenSet = true; m_type = value; }
75 inline void SetType(ContactFlowType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
76 inline CreateContactFlowRequest& WithType(const ContactFlowType& value) { SetType(value); return *this;}
77 inline CreateContactFlowRequest& WithType(ContactFlowType&& value) { SetType(std::move(value)); return *this;}
79
81
84 inline const Aws::String& GetDescription() const{ return m_description; }
85 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
86 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
87 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
88 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
89 inline CreateContactFlowRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
90 inline CreateContactFlowRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
91 inline CreateContactFlowRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
93
95
102 inline const Aws::String& GetContent() const{ return m_content; }
103 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
104 inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
105 inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
106 inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
107 inline CreateContactFlowRequest& WithContent(const Aws::String& value) { SetContent(value); return *this;}
108 inline CreateContactFlowRequest& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
109 inline CreateContactFlowRequest& WithContent(const char* value) { SetContent(value); return *this;}
111
113
119 inline const ContactFlowStatus& GetStatus() const{ return m_status; }
120 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
121 inline void SetStatus(const ContactFlowStatus& value) { m_statusHasBeenSet = true; m_status = value; }
122 inline void SetStatus(ContactFlowStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
123 inline CreateContactFlowRequest& WithStatus(const ContactFlowStatus& value) { SetStatus(value); return *this;}
124 inline CreateContactFlowRequest& WithStatus(ContactFlowStatus&& value) { SetStatus(std::move(value)); return *this;}
126
128
132 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
133 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
134 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
135 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
137 inline CreateContactFlowRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
138 inline CreateContactFlowRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
139 inline CreateContactFlowRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
140 inline CreateContactFlowRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
141 inline CreateContactFlowRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
142 inline CreateContactFlowRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
143 inline CreateContactFlowRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
144 inline CreateContactFlowRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
146 private:
147
148 Aws::String m_instanceId;
149 bool m_instanceIdHasBeenSet = false;
150
151 Aws::String m_name;
152 bool m_nameHasBeenSet = false;
153
154 ContactFlowType m_type;
155 bool m_typeHasBeenSet = false;
156
157 Aws::String m_description;
158 bool m_descriptionHasBeenSet = false;
159
160 Aws::String m_content;
161 bool m_contentHasBeenSet = false;
162
163 ContactFlowStatus m_status;
164 bool m_statusHasBeenSet = false;
165
167 bool m_tagsHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace Connect
172} // namespace Aws
CreateContactFlowRequest & WithContent(const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateContactFlowRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateContactFlowRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateContactFlowRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateContactFlowRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateContactFlowRequest & AddTags(Aws::String &&key, const char *value)
CreateContactFlowRequest & WithType(const ContactFlowType &value)
CreateContactFlowRequest & WithType(ContactFlowType &&value)
CreateContactFlowRequest & WithStatus(ContactFlowStatus &&value)
CreateContactFlowRequest & WithInstanceId(const Aws::String &value)
CreateContactFlowRequest & WithDescription(Aws::String &&value)
CreateContactFlowRequest & WithStatus(const ContactFlowStatus &value)
CreateContactFlowRequest & WithDescription(const char *value)
CreateContactFlowRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateContactFlowRequest & AddTags(const char *key, const char *value)
CreateContactFlowRequest & AddTags(const char *key, Aws::String &&value)
CreateContactFlowRequest & WithInstanceId(Aws::String &&value)
CreateContactFlowRequest & WithContent(Aws::String &&value)
CreateContactFlowRequest & AddTags(Aws::String &&key, Aws::String &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateContactFlowRequest & WithName(const Aws::String &value)
CreateContactFlowRequest & WithName(const char *value)
CreateContactFlowRequest & WithName(Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateContactFlowRequest & WithContent(const char *value)
CreateContactFlowRequest & WithInstanceId(const char *value)
CreateContactFlowRequest & WithDescription(const Aws::String &value)
AWS_CONNECT_API Aws::String SerializePayload() const override
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