AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
UpdateCustomActionRequest.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/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace chatbot {
18namespace Model {
19
23 public:
24 AWS_CHATBOT_API UpdateCustomActionRequest() = 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 "UpdateCustomAction"; }
31
32 AWS_CHATBOT_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetCustomActionArn() const { return m_customActionArn; }
39 inline bool CustomActionArnHasBeenSet() const { return m_customActionArnHasBeenSet; }
40 template <typename CustomActionArnT = Aws::String>
41 void SetCustomActionArn(CustomActionArnT&& value) {
42 m_customActionArnHasBeenSet = true;
43 m_customActionArn = std::forward<CustomActionArnT>(value);
44 }
45 template <typename CustomActionArnT = Aws::String>
47 SetCustomActionArn(std::forward<CustomActionArnT>(value));
48 return *this;
49 }
51
53
57 inline const CustomActionDefinition& GetDefinition() const { return m_definition; }
58 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
59 template <typename DefinitionT = CustomActionDefinition>
60 void SetDefinition(DefinitionT&& value) {
61 m_definitionHasBeenSet = true;
62 m_definition = std::forward<DefinitionT>(value);
63 }
64 template <typename DefinitionT = CustomActionDefinition>
66 SetDefinition(std::forward<DefinitionT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::String& GetAliasName() const { return m_aliasName; }
77 inline bool AliasNameHasBeenSet() const { return m_aliasNameHasBeenSet; }
78 template <typename AliasNameT = Aws::String>
79 void SetAliasName(AliasNameT&& value) {
80 m_aliasNameHasBeenSet = true;
81 m_aliasName = std::forward<AliasNameT>(value);
82 }
83 template <typename AliasNameT = Aws::String>
85 SetAliasName(std::forward<AliasNameT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::Vector<CustomActionAttachment>& GetAttachments() const { return m_attachments; }
96 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
97 template <typename AttachmentsT = Aws::Vector<CustomActionAttachment>>
98 void SetAttachments(AttachmentsT&& value) {
99 m_attachmentsHasBeenSet = true;
100 m_attachments = std::forward<AttachmentsT>(value);
101 }
102 template <typename AttachmentsT = Aws::Vector<CustomActionAttachment>>
104 SetAttachments(std::forward<AttachmentsT>(value));
105 return *this;
106 }
107 template <typename AttachmentsT = CustomActionAttachment>
109 m_attachmentsHasBeenSet = true;
110 m_attachments.emplace_back(std::forward<AttachmentsT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_customActionArn;
116 bool m_customActionArnHasBeenSet = false;
117
118 CustomActionDefinition m_definition;
119 bool m_definitionHasBeenSet = false;
120
121 Aws::String m_aliasName;
122 bool m_aliasNameHasBeenSet = false;
123
125 bool m_attachmentsHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace chatbot
130} // namespace Aws
UpdateCustomActionRequest & WithDefinition(DefinitionT &&value)
UpdateCustomActionRequest & WithCustomActionArn(CustomActionArnT &&value)
AWS_CHATBOT_API UpdateCustomActionRequest()=default
UpdateCustomActionRequest & WithAttachments(AttachmentsT &&value)
UpdateCustomActionRequest & AddAttachments(AttachmentsT &&value)
const Aws::Vector< CustomActionAttachment > & GetAttachments() const
virtual const char * GetServiceRequestName() const override
const CustomActionDefinition & GetDefinition() const
AWS_CHATBOT_API Aws::String SerializePayload() const override
UpdateCustomActionRequest & WithAliasName(AliasNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector