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>
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>
63 template<
typename DefinitionT = CustomActionDefinition>
64 void SetDefinition(DefinitionT&& value) { m_definitionHasBeenSet =
true; m_definition = std::forward<DefinitionT>(value); }
65 template<
typename DefinitionT = CustomActionDefinition>
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>
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>>
93 template<
typename AttachmentsT = CustomActionAttachment>
94 CustomAction&
AddAttachments(AttachmentsT&& value) { m_attachmentsHasBeenSet =
true; m_attachments.emplace_back(std::forward<AttachmentsT>(value));
return *
this; }
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>
111 bool m_customActionArnHasBeenSet =
false;
114 bool m_definitionHasBeenSet =
false;
117 bool m_aliasNameHasBeenSet =
false;
120 bool m_attachmentsHasBeenSet =
false;
123 bool m_actionNameHasBeenSet =
false;
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)
bool AliasNameHasBeenSet() const
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
bool ActionNameHasBeenSet() const
void SetCustomActionArn(CustomActionArnT &&value)
CustomAction & WithAttachments(AttachmentsT &&value)
bool DefinitionHasBeenSet() const
CustomAction & AddAttachments(AttachmentsT &&value)
bool AttachmentsHasBeenSet() const
void SetDefinition(DefinitionT &&value)
void SetAliasName(AliasNameT &&value)
bool CustomActionArnHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue