AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CustomAction.h
1
6#pragma once
7#include <aws/chatbot/Chatbot_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/chatbot/model/CustomActionDefinition.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/chatbot/model/CustomActionAttachment.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace chatbot
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_CHATBOT_API CustomAction() = default;
39 AWS_CHATBOT_API CustomAction(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CHATBOT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetCustomActionArn() const { return m_customActionArn; }
49 inline bool CustomActionArnHasBeenSet() const { return m_customActionArnHasBeenSet; }
50 template<typename CustomActionArnT = Aws::String>
51 void SetCustomActionArn(CustomActionArnT&& value) { m_customActionArnHasBeenSet = true; m_customActionArn = std::forward<CustomActionArnT>(value); }
52 template<typename CustomActionArnT = Aws::String>
53 CustomAction& WithCustomActionArn(CustomActionArnT&& value) { SetCustomActionArn(std::forward<CustomActionArnT>(value)); return *this;}
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) { m_definitionHasBeenSet = true; m_definition = std::forward<DefinitionT>(value); }
65 template<typename DefinitionT = CustomActionDefinition>
66 CustomAction& WithDefinition(DefinitionT&& value) { SetDefinition(std::forward<DefinitionT>(value)); return *this;}
68
70
74 inline const Aws::String& GetAliasName() const { return m_aliasName; }
75 inline bool AliasNameHasBeenSet() const { return m_aliasNameHasBeenSet; }
76 template<typename AliasNameT = Aws::String>
77 void SetAliasName(AliasNameT&& value) { m_aliasNameHasBeenSet = true; m_aliasName = std::forward<AliasNameT>(value); }
78 template<typename AliasNameT = Aws::String>
79 CustomAction& WithAliasName(AliasNameT&& value) { SetAliasName(std::forward<AliasNameT>(value)); return *this;}
81
83
87 inline const Aws::Vector<CustomActionAttachment>& GetAttachments() const { return m_attachments; }
88 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
89 template<typename AttachmentsT = Aws::Vector<CustomActionAttachment>>
90 void SetAttachments(AttachmentsT&& value) { m_attachmentsHasBeenSet = true; m_attachments = std::forward<AttachmentsT>(value); }
91 template<typename AttachmentsT = Aws::Vector<CustomActionAttachment>>
92 CustomAction& WithAttachments(AttachmentsT&& value) { SetAttachments(std::forward<AttachmentsT>(value)); return *this;}
93 template<typename AttachmentsT = CustomActionAttachment>
94 CustomAction& AddAttachments(AttachmentsT&& value) { m_attachmentsHasBeenSet = true; m_attachments.emplace_back(std::forward<AttachmentsT>(value)); return *this; }
96
98
101 inline const Aws::String& GetActionName() const { return m_actionName; }
102 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
103 template<typename ActionNameT = Aws::String>
104 void SetActionName(ActionNameT&& value) { m_actionNameHasBeenSet = true; m_actionName = std::forward<ActionNameT>(value); }
105 template<typename ActionNameT = Aws::String>
106 CustomAction& WithActionName(ActionNameT&& value) { SetActionName(std::forward<ActionNameT>(value)); return *this;}
108 private:
109
110 Aws::String m_customActionArn;
111 bool m_customActionArnHasBeenSet = false;
112
113 CustomActionDefinition m_definition;
114 bool m_definitionHasBeenSet = false;
115
116 Aws::String m_aliasName;
117 bool m_aliasNameHasBeenSet = false;
118
120 bool m_attachmentsHasBeenSet = false;
121
122 Aws::String m_actionName;
123 bool m_actionNameHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace chatbot
128} // 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