AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CustomActionAttachment.h
1
6#pragma once
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>
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 CustomActionAttachment() = default;
41 AWS_CHATBOT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetNotificationType() const { return m_notificationType; }
49 inline bool NotificationTypeHasBeenSet() const { return m_notificationTypeHasBeenSet; }
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>
53 CustomActionAttachment& WithNotificationType(NotificationTypeT&& value) { SetNotificationType(std::forward<NotificationTypeT>(value)); return *this;}
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) { m_buttonTextHasBeenSet = true; m_buttonText = std::forward<ButtonTextT>(value); }
64 template<typename ButtonTextT = Aws::String>
65 CustomActionAttachment& WithButtonText(ButtonTextT&& value) { SetButtonText(std::forward<ButtonTextT>(value)); return *this;}
67
69
73 inline const Aws::Vector<CustomActionAttachmentCriteria>& GetCriteria() const { return m_criteria; }
74 inline bool CriteriaHasBeenSet() const { return m_criteriaHasBeenSet; }
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>>
78 CustomActionAttachment& WithCriteria(CriteriaT&& value) { SetCriteria(std::forward<CriteriaT>(value)); return *this;}
79 template<typename CriteriaT = CustomActionAttachmentCriteria>
80 CustomActionAttachment& AddCriteria(CriteriaT&& value) { m_criteriaHasBeenSet = true; m_criteria.emplace_back(std::forward<CriteriaT>(value)); return *this; }
82
84
87 inline const Aws::Map<Aws::String, Aws::String>& GetVariables() const { return m_variables; }
88 inline bool VariablesHasBeenSet() const { return m_variablesHasBeenSet; }
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>>
92 CustomActionAttachment& WithVariables(VariablesT&& value) { SetVariables(std::forward<VariablesT>(value)); return *this;}
93 template<typename VariablesKeyT = Aws::String, typename VariablesValueT = Aws::String>
94 CustomActionAttachment& AddVariables(VariablesKeyT&& key, VariablesValueT&& value) {
95 m_variablesHasBeenSet = true; m_variables.emplace(std::forward<VariablesKeyT>(key), std::forward<VariablesValueT>(value)); return *this;
96 }
98 private:
99
100 Aws::String m_notificationType;
101 bool m_notificationTypeHasBeenSet = false;
102
103 Aws::String m_buttonText;
104 bool m_buttonTextHasBeenSet = false;
105
107 bool m_criteriaHasBeenSet = false;
108
110 bool m_variablesHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace chatbot
115} // 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