AWS SDK for C++

AWS SDK for C++ Version 1.11.686

Loading...
Searching...
No Matches
CreateCustomActionRequest.h
1
6#pragma once
7#include <aws/chatbot/ChatbotRequest.h>
8#include <aws/chatbot/Chatbot_EXPORTS.h>
9#include <aws/chatbot/model/CustomActionAttachment.h>
10#include <aws/chatbot/model/CustomActionDefinition.h>
11#include <aws/chatbot/model/Tag.h>
12#include <aws/core/utils/UUID.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace chatbot {
20namespace Model {
21
25 public:
26 AWS_CHATBOT_API CreateCustomActionRequest() = default;
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 "CreateCustomAction"; }
33
34 AWS_CHATBOT_API Aws::String SerializePayload() const override;
35
37
41 inline const CustomActionDefinition& GetDefinition() const { return m_definition; }
42 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
43 template <typename DefinitionT = CustomActionDefinition>
44 void SetDefinition(DefinitionT&& value) {
45 m_definitionHasBeenSet = true;
46 m_definition = std::forward<DefinitionT>(value);
47 }
48 template <typename DefinitionT = CustomActionDefinition>
50 SetDefinition(std::forward<DefinitionT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetAliasName() const { return m_aliasName; }
61 inline bool AliasNameHasBeenSet() const { return m_aliasNameHasBeenSet; }
62 template <typename AliasNameT = Aws::String>
63 void SetAliasName(AliasNameT&& value) {
64 m_aliasNameHasBeenSet = true;
65 m_aliasName = std::forward<AliasNameT>(value);
66 }
67 template <typename AliasNameT = Aws::String>
69 SetAliasName(std::forward<AliasNameT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::Vector<CustomActionAttachment>& GetAttachments() const { return m_attachments; }
80 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
81 template <typename AttachmentsT = Aws::Vector<CustomActionAttachment>>
82 void SetAttachments(AttachmentsT&& value) {
83 m_attachmentsHasBeenSet = true;
84 m_attachments = std::forward<AttachmentsT>(value);
85 }
86 template <typename AttachmentsT = Aws::Vector<CustomActionAttachment>>
88 SetAttachments(std::forward<AttachmentsT>(value));
89 return *this;
90 }
91 template <typename AttachmentsT = CustomActionAttachment>
93 m_attachmentsHasBeenSet = true;
94 m_attachments.emplace_back(std::forward<AttachmentsT>(value));
95 return *this;
96 }
98
100
104 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
105 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
106 template <typename TagsT = Aws::Vector<Tag>>
107 void SetTags(TagsT&& value) {
108 m_tagsHasBeenSet = true;
109 m_tags = std::forward<TagsT>(value);
110 }
111 template <typename TagsT = Aws::Vector<Tag>>
113 SetTags(std::forward<TagsT>(value));
114 return *this;
115 }
116 template <typename TagsT = Tag>
118 m_tagsHasBeenSet = true;
119 m_tags.emplace_back(std::forward<TagsT>(value));
120 return *this;
121 }
123
125
133 inline const Aws::String& GetClientToken() const { return m_clientToken; }
134 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
135 template <typename ClientTokenT = Aws::String>
136 void SetClientToken(ClientTokenT&& value) {
137 m_clientTokenHasBeenSet = true;
138 m_clientToken = std::forward<ClientTokenT>(value);
139 }
140 template <typename ClientTokenT = Aws::String>
142 SetClientToken(std::forward<ClientTokenT>(value));
143 return *this;
144 }
146
148
152 inline const Aws::String& GetActionName() const { return m_actionName; }
153 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
154 template <typename ActionNameT = Aws::String>
155 void SetActionName(ActionNameT&& value) {
156 m_actionNameHasBeenSet = true;
157 m_actionName = std::forward<ActionNameT>(value);
158 }
159 template <typename ActionNameT = Aws::String>
161 SetActionName(std::forward<ActionNameT>(value));
162 return *this;
163 }
165 private:
166 CustomActionDefinition m_definition;
167 bool m_definitionHasBeenSet = false;
168
169 Aws::String m_aliasName;
170 bool m_aliasNameHasBeenSet = false;
171
173 bool m_attachmentsHasBeenSet = false;
174
175 Aws::Vector<Tag> m_tags;
176 bool m_tagsHasBeenSet = false;
177
179 bool m_clientTokenHasBeenSet = true;
180
181 Aws::String m_actionName;
182 bool m_actionNameHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace chatbot
187} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
CreateCustomActionRequest & WithDefinition(DefinitionT &&value)
AWS_CHATBOT_API CreateCustomActionRequest()=default
AWS_CHATBOT_API Aws::String SerializePayload() const override
CreateCustomActionRequest & WithClientToken(ClientTokenT &&value)
CreateCustomActionRequest & WithActionName(ActionNameT &&value)
CreateCustomActionRequest & WithAttachments(AttachmentsT &&value)
CreateCustomActionRequest & AddAttachments(AttachmentsT &&value)
CreateCustomActionRequest & WithAliasName(AliasNameT &&value)
virtual const char * GetServiceRequestName() const override
CreateCustomActionRequest & WithTags(TagsT &&value)
CreateCustomActionRequest & AddTags(TagsT &&value)
const Aws::Vector< CustomActionAttachment > & GetAttachments() const
const CustomActionDefinition & GetDefinition() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector