AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateContactFlowRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/connect/model/ContactFlowStatus.h>
10#include <aws/connect/model/ContactFlowType.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 Connect {
18namespace Model {
19
23 public:
24 AWS_CONNECT_API CreateContactFlowRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateContactFlow"; }
31
32 AWS_CONNECT_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
39 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
40 template <typename InstanceIdT = Aws::String>
41 void SetInstanceId(InstanceIdT&& value) {
42 m_instanceIdHasBeenSet = true;
43 m_instanceId = std::forward<InstanceIdT>(value);
44 }
45 template <typename InstanceIdT = Aws::String>
47 SetInstanceId(std::forward<InstanceIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetName() const { return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 template <typename NameT = Aws::String>
59 void SetName(NameT&& value) {
60 m_nameHasBeenSet = true;
61 m_name = std::forward<NameT>(value);
62 }
63 template <typename NameT = Aws::String>
65 SetName(std::forward<NameT>(value));
66 return *this;
67 }
69
71
76 inline ContactFlowType GetType() const { return m_type; }
77 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
78 inline void SetType(ContactFlowType value) {
79 m_typeHasBeenSet = true;
80 m_type = value;
81 }
83 SetType(value);
84 return *this;
85 }
87
89
92 inline const Aws::String& GetDescription() const { return m_description; }
93 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
94 template <typename DescriptionT = Aws::String>
95 void SetDescription(DescriptionT&& value) {
96 m_descriptionHasBeenSet = true;
97 m_description = std::forward<DescriptionT>(value);
98 }
99 template <typename DescriptionT = Aws::String>
101 SetDescription(std::forward<DescriptionT>(value));
102 return *this;
103 }
105
107
114 inline const Aws::String& GetContent() const { return m_content; }
115 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
116 template <typename ContentT = Aws::String>
117 void SetContent(ContentT&& value) {
118 m_contentHasBeenSet = true;
119 m_content = std::forward<ContentT>(value);
120 }
121 template <typename ContentT = Aws::String>
123 SetContent(std::forward<ContentT>(value));
124 return *this;
125 }
127
129
135 inline ContactFlowStatus GetStatus() const { return m_status; }
136 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
137 inline void SetStatus(ContactFlowStatus value) {
138 m_statusHasBeenSet = true;
139 m_status = value;
140 }
142 SetStatus(value);
143 return *this;
144 }
146
148
152 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
153 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
154 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
155 void SetTags(TagsT&& value) {
156 m_tagsHasBeenSet = true;
157 m_tags = std::forward<TagsT>(value);
158 }
159 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
161 SetTags(std::forward<TagsT>(value));
162 return *this;
163 }
164 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
165 CreateContactFlowRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
166 m_tagsHasBeenSet = true;
167 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
168 return *this;
169 }
171 private:
172 Aws::String m_instanceId;
173
174 Aws::String m_name;
175
177
178 Aws::String m_description;
179
180 Aws::String m_content;
181
183
185 bool m_instanceIdHasBeenSet = false;
186 bool m_nameHasBeenSet = false;
187 bool m_typeHasBeenSet = false;
188 bool m_descriptionHasBeenSet = false;
189 bool m_contentHasBeenSet = false;
190 bool m_statusHasBeenSet = false;
191 bool m_tagsHasBeenSet = false;
192};
193
194} // namespace Model
195} // namespace Connect
196} // namespace Aws
AWS_CONNECT_API CreateContactFlowRequest()=default
CreateContactFlowRequest & WithStatus(ContactFlowStatus value)
CreateContactFlowRequest & WithTags(TagsT &&value)
CreateContactFlowRequest & WithContent(ContentT &&value)
CreateContactFlowRequest & WithType(ContactFlowType value)
CreateContactFlowRequest & WithDescription(DescriptionT &&value)
CreateContactFlowRequest & WithName(NameT &&value)
CreateContactFlowRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateContactFlowRequest & WithInstanceId(InstanceIdT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
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