AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CustomActionAttachment.h
1
6#pragma once
7#include <aws/chatbot/Chatbot_EXPORTS.h>
8#include <aws/chatbot/model/CustomActionAttachmentCriteria.h>
9#include <aws/core/utils/memory/stl/AWSMap.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 CustomActionAttachment() = default;
36 AWS_CHATBOT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetNotificationType() const { return m_notificationType; }
43 inline bool NotificationTypeHasBeenSet() const { return m_notificationTypeHasBeenSet; }
44 template <typename NotificationTypeT = Aws::String>
45 void SetNotificationType(NotificationTypeT&& value) {
46 m_notificationTypeHasBeenSet = true;
47 m_notificationType = std::forward<NotificationTypeT>(value);
48 }
49 template <typename NotificationTypeT = Aws::String>
50 CustomActionAttachment& WithNotificationType(NotificationTypeT&& value) {
51 SetNotificationType(std::forward<NotificationTypeT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetButtonText() const { return m_buttonText; }
61 inline bool ButtonTextHasBeenSet() const { return m_buttonTextHasBeenSet; }
62 template <typename ButtonTextT = Aws::String>
63 void SetButtonText(ButtonTextT&& value) {
64 m_buttonTextHasBeenSet = true;
65 m_buttonText = std::forward<ButtonTextT>(value);
66 }
67 template <typename ButtonTextT = Aws::String>
68 CustomActionAttachment& WithButtonText(ButtonTextT&& value) {
69 SetButtonText(std::forward<ButtonTextT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::Vector<CustomActionAttachmentCriteria>& GetCriteria() const { return m_criteria; }
80 inline bool CriteriaHasBeenSet() const { return m_criteriaHasBeenSet; }
81 template <typename CriteriaT = Aws::Vector<CustomActionAttachmentCriteria>>
82 void SetCriteria(CriteriaT&& value) {
83 m_criteriaHasBeenSet = true;
84 m_criteria = std::forward<CriteriaT>(value);
85 }
86 template <typename CriteriaT = Aws::Vector<CustomActionAttachmentCriteria>>
88 SetCriteria(std::forward<CriteriaT>(value));
89 return *this;
90 }
91 template <typename CriteriaT = CustomActionAttachmentCriteria>
92 CustomActionAttachment& AddCriteria(CriteriaT&& value) {
93 m_criteriaHasBeenSet = true;
94 m_criteria.emplace_back(std::forward<CriteriaT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::Map<Aws::String, Aws::String>& GetVariables() const { return m_variables; }
104 inline bool VariablesHasBeenSet() const { return m_variablesHasBeenSet; }
105 template <typename VariablesT = Aws::Map<Aws::String, Aws::String>>
106 void SetVariables(VariablesT&& value) {
107 m_variablesHasBeenSet = true;
108 m_variables = std::forward<VariablesT>(value);
109 }
110 template <typename VariablesT = Aws::Map<Aws::String, Aws::String>>
112 SetVariables(std::forward<VariablesT>(value));
113 return *this;
114 }
115 template <typename VariablesKeyT = Aws::String, typename VariablesValueT = Aws::String>
116 CustomActionAttachment& AddVariables(VariablesKeyT&& key, VariablesValueT&& value) {
117 m_variablesHasBeenSet = true;
118 m_variables.emplace(std::forward<VariablesKeyT>(key), std::forward<VariablesValueT>(value));
119 return *this;
120 }
122 private:
123 Aws::String m_notificationType;
124
125 Aws::String m_buttonText;
126
128
130 bool m_notificationTypeHasBeenSet = false;
131 bool m_buttonTextHasBeenSet = false;
132 bool m_criteriaHasBeenSet = false;
133 bool m_variablesHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace chatbot
138} // namespace Aws
AWS_CHATBOT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CHATBOT_API CustomActionAttachment(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< CustomActionAttachmentCriteria > & GetCriteria() const
CustomActionAttachment & WithVariables(VariablesT &&value)
CustomActionAttachment & AddCriteria(CriteriaT &&value)
void SetNotificationType(NotificationTypeT &&value)
const Aws::Map< Aws::String, Aws::String > & GetVariables() const
CustomActionAttachment & WithButtonText(ButtonTextT &&value)
CustomActionAttachment & WithCriteria(CriteriaT &&value)
AWS_CHATBOT_API CustomActionAttachment & operator=(Aws::Utils::Json::JsonView jsonValue)
CustomActionAttachment & AddVariables(VariablesKeyT &&key, VariablesValueT &&value)
CustomActionAttachment & WithNotificationType(NotificationTypeT &&value)
AWS_CHATBOT_API CustomActionAttachment()=default
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