AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateCustomActionRequest.h
1
6#pragma once
7#include <aws/chatbot/Chatbot_EXPORTS.h>
8#include <aws/chatbot/ChatbotRequest.h>
9#include <aws/chatbot/model/CustomActionDefinition.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/chatbot/model/CustomActionAttachment.h>
13#include <aws/chatbot/model/Tag.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace chatbot
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_CHATBOT_API CreateCustomActionRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateCustomAction"; }
36
37 AWS_CHATBOT_API Aws::String SerializePayload() const override;
38
39
41
45 inline const CustomActionDefinition& GetDefinition() const { return m_definition; }
46 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
47 template<typename DefinitionT = CustomActionDefinition>
48 void SetDefinition(DefinitionT&& value) { m_definitionHasBeenSet = true; m_definition = std::forward<DefinitionT>(value); }
49 template<typename DefinitionT = CustomActionDefinition>
50 CreateCustomActionRequest& WithDefinition(DefinitionT&& value) { SetDefinition(std::forward<DefinitionT>(value)); return *this;}
52
54
58 inline const Aws::String& GetAliasName() const { return m_aliasName; }
59 inline bool AliasNameHasBeenSet() const { return m_aliasNameHasBeenSet; }
60 template<typename AliasNameT = Aws::String>
61 void SetAliasName(AliasNameT&& value) { m_aliasNameHasBeenSet = true; m_aliasName = std::forward<AliasNameT>(value); }
62 template<typename AliasNameT = Aws::String>
63 CreateCustomActionRequest& WithAliasName(AliasNameT&& value) { SetAliasName(std::forward<AliasNameT>(value)); return *this;}
65
67
71 inline const Aws::Vector<CustomActionAttachment>& GetAttachments() const { return m_attachments; }
72 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
73 template<typename AttachmentsT = Aws::Vector<CustomActionAttachment>>
74 void SetAttachments(AttachmentsT&& value) { m_attachmentsHasBeenSet = true; m_attachments = std::forward<AttachmentsT>(value); }
75 template<typename AttachmentsT = Aws::Vector<CustomActionAttachment>>
76 CreateCustomActionRequest& WithAttachments(AttachmentsT&& value) { SetAttachments(std::forward<AttachmentsT>(value)); return *this;}
77 template<typename AttachmentsT = CustomActionAttachment>
78 CreateCustomActionRequest& AddAttachments(AttachmentsT&& value) { m_attachmentsHasBeenSet = true; m_attachments.emplace_back(std::forward<AttachmentsT>(value)); return *this; }
80
82
86 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
87 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
88 template<typename TagsT = Aws::Vector<Tag>>
89 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
90 template<typename TagsT = Aws::Vector<Tag>>
91 CreateCustomActionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
92 template<typename TagsT = Tag>
93 CreateCustomActionRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
95
97
105 inline const Aws::String& GetClientToken() const { return m_clientToken; }
106 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
107 template<typename ClientTokenT = Aws::String>
108 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
109 template<typename ClientTokenT = Aws::String>
110 CreateCustomActionRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
112
114
118 inline const Aws::String& GetActionName() const { return m_actionName; }
119 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
120 template<typename ActionNameT = Aws::String>
121 void SetActionName(ActionNameT&& value) { m_actionNameHasBeenSet = true; m_actionName = std::forward<ActionNameT>(value); }
122 template<typename ActionNameT = Aws::String>
123 CreateCustomActionRequest& WithActionName(ActionNameT&& value) { SetActionName(std::forward<ActionNameT>(value)); return *this;}
125 private:
126
127 CustomActionDefinition m_definition;
128 bool m_definitionHasBeenSet = false;
129
130 Aws::String m_aliasName;
131 bool m_aliasNameHasBeenSet = false;
132
134 bool m_attachmentsHasBeenSet = false;
135
136 Aws::Vector<Tag> m_tags;
137 bool m_tagsHasBeenSet = false;
138
140 bool m_clientTokenHasBeenSet = true;
141
142 Aws::String m_actionName;
143 bool m_actionNameHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace chatbot
148} // 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