AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CustomAction.h
1
6#pragma once
7#include <aws/chatbot/Chatbot_EXPORTS.h>
8#include <aws/chatbot/model/CustomActionAttachment.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
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace chatbot {
23namespace Model {
24
32 public:
33 AWS_CHATBOT_API CustomAction() = default;
34 AWS_CHATBOT_API CustomAction(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CHATBOT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetCustomActionArn() const { return m_customActionArn; }
43 inline bool CustomActionArnHasBeenSet() const { return m_customActionArnHasBeenSet; }
44 template <typename CustomActionArnT = Aws::String>
45 void SetCustomActionArn(CustomActionArnT&& value) {
46 m_customActionArnHasBeenSet = true;
47 m_customActionArn = std::forward<CustomActionArnT>(value);
48 }
49 template <typename CustomActionArnT = Aws::String>
50 CustomAction& WithCustomActionArn(CustomActionArnT&& value) {
51 SetCustomActionArn(std::forward<CustomActionArnT>(value));
52 return *this;
53 }
55
57
61 inline const CustomActionDefinition& GetDefinition() const { return m_definition; }
62 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
63 template <typename DefinitionT = CustomActionDefinition>
64 void SetDefinition(DefinitionT&& value) {
65 m_definitionHasBeenSet = true;
66 m_definition = std::forward<DefinitionT>(value);
67 }
68 template <typename DefinitionT = CustomActionDefinition>
69 CustomAction& WithDefinition(DefinitionT&& value) {
70 SetDefinition(std::forward<DefinitionT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetAliasName() const { return m_aliasName; }
81 inline bool AliasNameHasBeenSet() const { return m_aliasNameHasBeenSet; }
82 template <typename AliasNameT = Aws::String>
83 void SetAliasName(AliasNameT&& value) {
84 m_aliasNameHasBeenSet = true;
85 m_aliasName = std::forward<AliasNameT>(value);
86 }
87 template <typename AliasNameT = Aws::String>
88 CustomAction& WithAliasName(AliasNameT&& value) {
89 SetAliasName(std::forward<AliasNameT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::Vector<CustomActionAttachment>& GetAttachments() const { return m_attachments; }
100 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
101 template <typename AttachmentsT = Aws::Vector<CustomActionAttachment>>
102 void SetAttachments(AttachmentsT&& value) {
103 m_attachmentsHasBeenSet = true;
104 m_attachments = std::forward<AttachmentsT>(value);
105 }
106 template <typename AttachmentsT = Aws::Vector<CustomActionAttachment>>
107 CustomAction& WithAttachments(AttachmentsT&& value) {
108 SetAttachments(std::forward<AttachmentsT>(value));
109 return *this;
110 }
111 template <typename AttachmentsT = CustomActionAttachment>
112 CustomAction& AddAttachments(AttachmentsT&& value) {
113 m_attachmentsHasBeenSet = true;
114 m_attachments.emplace_back(std::forward<AttachmentsT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::String& GetActionName() const { return m_actionName; }
124 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
125 template <typename ActionNameT = Aws::String>
126 void SetActionName(ActionNameT&& value) {
127 m_actionNameHasBeenSet = true;
128 m_actionName = std::forward<ActionNameT>(value);
129 }
130 template <typename ActionNameT = Aws::String>
131 CustomAction& WithActionName(ActionNameT&& value) {
132 SetActionName(std::forward<ActionNameT>(value));
133 return *this;
134 }
136 private:
137 Aws::String m_customActionArn;
138
139 CustomActionDefinition m_definition;
140
141 Aws::String m_aliasName;
142
144
145 Aws::String m_actionName;
146 bool m_customActionArnHasBeenSet = false;
147 bool m_definitionHasBeenSet = false;
148 bool m_aliasNameHasBeenSet = false;
149 bool m_attachmentsHasBeenSet = false;
150 bool m_actionNameHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace chatbot
155} // namespace Aws
CustomAction & WithDefinition(DefinitionT &&value)
AWS_CHATBOT_API CustomAction()=default
CustomAction & WithAliasName(AliasNameT &&value)
const Aws::String & GetActionName() const
AWS_CHATBOT_API CustomAction(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< CustomActionAttachment > & GetAttachments() const
AWS_CHATBOT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAliasName() const
CustomAction & WithCustomActionArn(CustomActionArnT &&value)
CustomAction & WithActionName(ActionNameT &&value)
void SetActionName(ActionNameT &&value)
AWS_CHATBOT_API CustomAction & operator=(Aws::Utils::Json::JsonView jsonValue)
const CustomActionDefinition & GetDefinition() const
void SetAttachments(AttachmentsT &&value)
const Aws::String & GetCustomActionArn() const
void SetCustomActionArn(CustomActionArnT &&value)
CustomAction & WithAttachments(AttachmentsT &&value)
CustomAction & AddAttachments(AttachmentsT &&value)
void SetDefinition(DefinitionT &&value)
void SetAliasName(AliasNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue