AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ChimeWebhookConfiguration.h
1
6#pragma once
7#include <aws/chatbot/Chatbot_EXPORTS.h>
8#include <aws/chatbot/model/Tag.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace chatbot {
22namespace Model {
23
30 public:
31 AWS_CHATBOT_API ChimeWebhookConfiguration() = default;
34 AWS_CHATBOT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
44 inline const Aws::String& GetWebhookDescription() const { return m_webhookDescription; }
45 inline bool WebhookDescriptionHasBeenSet() const { return m_webhookDescriptionHasBeenSet; }
46 template <typename WebhookDescriptionT = Aws::String>
47 void SetWebhookDescription(WebhookDescriptionT&& value) {
48 m_webhookDescriptionHasBeenSet = true;
49 m_webhookDescription = std::forward<WebhookDescriptionT>(value);
50 }
51 template <typename WebhookDescriptionT = Aws::String>
52 ChimeWebhookConfiguration& WithWebhookDescription(WebhookDescriptionT&& value) {
53 SetWebhookDescription(std::forward<WebhookDescriptionT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetChatConfigurationArn() const { return m_chatConfigurationArn; }
63 inline bool ChatConfigurationArnHasBeenSet() const { return m_chatConfigurationArnHasBeenSet; }
64 template <typename ChatConfigurationArnT = Aws::String>
65 void SetChatConfigurationArn(ChatConfigurationArnT&& value) {
66 m_chatConfigurationArnHasBeenSet = true;
67 m_chatConfigurationArn = std::forward<ChatConfigurationArnT>(value);
68 }
69 template <typename ChatConfigurationArnT = Aws::String>
70 ChimeWebhookConfiguration& WithChatConfigurationArn(ChatConfigurationArnT&& value) {
71 SetChatConfigurationArn(std::forward<ChatConfigurationArnT>(value));
72 return *this;
73 }
75
77
84 inline const Aws::String& GetIamRoleArn() const { return m_iamRoleArn; }
85 inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
86 template <typename IamRoleArnT = Aws::String>
87 void SetIamRoleArn(IamRoleArnT&& value) {
88 m_iamRoleArnHasBeenSet = true;
89 m_iamRoleArn = std::forward<IamRoleArnT>(value);
90 }
91 template <typename IamRoleArnT = Aws::String>
93 SetIamRoleArn(std::forward<IamRoleArnT>(value));
94 return *this;
95 }
97
99
103 inline const Aws::Vector<Aws::String>& GetSnsTopicArns() const { return m_snsTopicArns; }
104 inline bool SnsTopicArnsHasBeenSet() const { return m_snsTopicArnsHasBeenSet; }
105 template <typename SnsTopicArnsT = Aws::Vector<Aws::String>>
106 void SetSnsTopicArns(SnsTopicArnsT&& value) {
107 m_snsTopicArnsHasBeenSet = true;
108 m_snsTopicArns = std::forward<SnsTopicArnsT>(value);
109 }
110 template <typename SnsTopicArnsT = Aws::Vector<Aws::String>>
112 SetSnsTopicArns(std::forward<SnsTopicArnsT>(value));
113 return *this;
114 }
115 template <typename SnsTopicArnsT = Aws::String>
117 m_snsTopicArnsHasBeenSet = true;
118 m_snsTopicArns.emplace_back(std::forward<SnsTopicArnsT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::String& GetConfigurationName() const { return m_configurationName; }
128 inline bool ConfigurationNameHasBeenSet() const { return m_configurationNameHasBeenSet; }
129 template <typename ConfigurationNameT = Aws::String>
130 void SetConfigurationName(ConfigurationNameT&& value) {
131 m_configurationNameHasBeenSet = true;
132 m_configurationName = std::forward<ConfigurationNameT>(value);
133 }
134 template <typename ConfigurationNameT = Aws::String>
136 SetConfigurationName(std::forward<ConfigurationNameT>(value));
137 return *this;
138 }
140
142
146 inline const Aws::String& GetLoggingLevel() const { return m_loggingLevel; }
147 inline bool LoggingLevelHasBeenSet() const { return m_loggingLevelHasBeenSet; }
148 template <typename LoggingLevelT = Aws::String>
149 void SetLoggingLevel(LoggingLevelT&& value) {
150 m_loggingLevelHasBeenSet = true;
151 m_loggingLevel = std::forward<LoggingLevelT>(value);
152 }
153 template <typename LoggingLevelT = Aws::String>
155 SetLoggingLevel(std::forward<LoggingLevelT>(value));
156 return *this;
157 }
159
161
165 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
166 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
167 template <typename TagsT = Aws::Vector<Tag>>
168 void SetTags(TagsT&& value) {
169 m_tagsHasBeenSet = true;
170 m_tags = std::forward<TagsT>(value);
171 }
172 template <typename TagsT = Aws::Vector<Tag>>
174 SetTags(std::forward<TagsT>(value));
175 return *this;
176 }
177 template <typename TagsT = Tag>
179 m_tagsHasBeenSet = true;
180 m_tags.emplace_back(std::forward<TagsT>(value));
181 return *this;
182 }
184
186
191 inline const Aws::String& GetState() const { return m_state; }
192 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
193 template <typename StateT = Aws::String>
194 void SetState(StateT&& value) {
195 m_stateHasBeenSet = true;
196 m_state = std::forward<StateT>(value);
197 }
198 template <typename StateT = Aws::String>
200 SetState(std::forward<StateT>(value));
201 return *this;
202 }
204
206
210 inline const Aws::String& GetStateReason() const { return m_stateReason; }
211 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
212 template <typename StateReasonT = Aws::String>
213 void SetStateReason(StateReasonT&& value) {
214 m_stateReasonHasBeenSet = true;
215 m_stateReason = std::forward<StateReasonT>(value);
216 }
217 template <typename StateReasonT = Aws::String>
219 SetStateReason(std::forward<StateReasonT>(value));
220 return *this;
221 }
223 private:
224 Aws::String m_webhookDescription;
225
226 Aws::String m_chatConfigurationArn;
227
228 Aws::String m_iamRoleArn;
229
230 Aws::Vector<Aws::String> m_snsTopicArns;
231
232 Aws::String m_configurationName;
233
234 Aws::String m_loggingLevel;
235
236 Aws::Vector<Tag> m_tags;
237
238 Aws::String m_state;
239
240 Aws::String m_stateReason;
241 bool m_webhookDescriptionHasBeenSet = false;
242 bool m_chatConfigurationArnHasBeenSet = false;
243 bool m_iamRoleArnHasBeenSet = false;
244 bool m_snsTopicArnsHasBeenSet = false;
245 bool m_configurationNameHasBeenSet = false;
246 bool m_loggingLevelHasBeenSet = false;
247 bool m_tagsHasBeenSet = false;
248 bool m_stateHasBeenSet = false;
249 bool m_stateReasonHasBeenSet = false;
250};
251
252} // namespace Model
253} // namespace chatbot
254} // namespace Aws
ChimeWebhookConfiguration & WithStateReason(StateReasonT &&value)
ChimeWebhookConfiguration & WithSnsTopicArns(SnsTopicArnsT &&value)
AWS_CHATBOT_API ChimeWebhookConfiguration()=default
ChimeWebhookConfiguration & WithTags(TagsT &&value)
ChimeWebhookConfiguration & WithIamRoleArn(IamRoleArnT &&value)
ChimeWebhookConfiguration & AddTags(TagsT &&value)
ChimeWebhookConfiguration & WithWebhookDescription(WebhookDescriptionT &&value)
const Aws::Vector< Aws::String > & GetSnsTopicArns() const
ChimeWebhookConfiguration & WithState(StateT &&value)
AWS_CHATBOT_API ChimeWebhookConfiguration(Aws::Utils::Json::JsonView jsonValue)
ChimeWebhookConfiguration & WithConfigurationName(ConfigurationNameT &&value)
ChimeWebhookConfiguration & WithChatConfigurationArn(ChatConfigurationArnT &&value)
ChimeWebhookConfiguration & WithLoggingLevel(LoggingLevelT &&value)
AWS_CHATBOT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetChatConfigurationArn(ChatConfigurationArnT &&value)
AWS_CHATBOT_API ChimeWebhookConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetWebhookDescription(WebhookDescriptionT &&value)
ChimeWebhookConfiguration & AddSnsTopicArns(SnsTopicArnsT &&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