7#include <aws/chatbot/Chatbot_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/chatbot/model/CustomActionAttachmentCriteria.h>
50 template<
typename NotificationTypeT = Aws::String>
51 void SetNotificationType(NotificationTypeT&& value) { m_notificationTypeHasBeenSet =
true; m_notificationType = std::forward<NotificationTypeT>(value); }
52 template<
typename NotificationTypeT = Aws::String>
62 template<
typename ButtonTextT = Aws::String>
63 void SetButtonText(ButtonTextT&& value) { m_buttonTextHasBeenSet =
true; m_buttonText = std::forward<ButtonTextT>(value); }
64 template<
typename ButtonTextT = Aws::String>
75 template<
typename CriteriaT = Aws::Vector<CustomActionAttachmentCriteria>>
76 void SetCriteria(CriteriaT&& value) { m_criteriaHasBeenSet =
true; m_criteria = std::forward<CriteriaT>(value); }
77 template<
typename CriteriaT = Aws::Vector<CustomActionAttachmentCriteria>>
79 template<
typename CriteriaT = CustomActionAttachmentCriteria>
89 template<
typename VariablesT = Aws::Map<Aws::String, Aws::String>>
90 void SetVariables(VariablesT&& value) { m_variablesHasBeenSet =
true; m_variables = std::forward<VariablesT>(value); }
91 template<
typename VariablesT = Aws::Map<Aws::String, Aws::String>>
93 template<
typename VariablesKeyT = Aws::String,
typename VariablesValueT = Aws::String>
95 m_variablesHasBeenSet =
true; m_variables.emplace(std::forward<VariablesKeyT>(key), std::forward<VariablesValueT>(value));
return *
this;
101 bool m_notificationTypeHasBeenSet =
false;
104 bool m_buttonTextHasBeenSet =
false;
107 bool m_criteriaHasBeenSet =
false;
110 bool m_variablesHasBeenSet =
false;
bool CriteriaHasBeenSet() const
AWS_CHATBOT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CHATBOT_API CustomActionAttachment(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< CustomActionAttachmentCriteria > & GetCriteria() const
const Aws::String & GetButtonText() const
void SetCriteria(CriteriaT &&value)
CustomActionAttachment & WithVariables(VariablesT &&value)
const Aws::String & GetNotificationType() const
CustomActionAttachment & AddCriteria(CriteriaT &&value)
void SetNotificationType(NotificationTypeT &&value)
const Aws::Map< Aws::String, Aws::String > & GetVariables() const
CustomActionAttachment & WithButtonText(ButtonTextT &&value)
void SetVariables(VariablesT &&value)
CustomActionAttachment & WithCriteria(CriteriaT &&value)
AWS_CHATBOT_API CustomActionAttachment & operator=(Aws::Utils::Json::JsonView jsonValue)
CustomActionAttachment & AddVariables(VariablesKeyT &&key, VariablesValueT &&value)
bool NotificationTypeHasBeenSet() const
CustomActionAttachment & WithNotificationType(NotificationTypeT &&value)
AWS_CHATBOT_API CustomActionAttachment()=default
void SetButtonText(ButtonTextT &&value)
bool VariablesHasBeenSet() const
bool ButtonTextHasBeenSet() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue