AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ChimeWebhookConfiguration.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/chatbot/model/Tag.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace chatbot
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_CHATBOT_API ChimeWebhookConfiguration();
39 AWS_CHATBOT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
50 inline const Aws::String& GetWebhookDescription() const{ return m_webhookDescription; }
51 inline bool WebhookDescriptionHasBeenSet() const { return m_webhookDescriptionHasBeenSet; }
52 inline void SetWebhookDescription(const Aws::String& value) { m_webhookDescriptionHasBeenSet = true; m_webhookDescription = value; }
53 inline void SetWebhookDescription(Aws::String&& value) { m_webhookDescriptionHasBeenSet = true; m_webhookDescription = std::move(value); }
54 inline void SetWebhookDescription(const char* value) { m_webhookDescriptionHasBeenSet = true; m_webhookDescription.assign(value); }
56 inline ChimeWebhookConfiguration& WithWebhookDescription(Aws::String&& value) { SetWebhookDescription(std::move(value)); return *this;}
57 inline ChimeWebhookConfiguration& WithWebhookDescription(const char* value) { SetWebhookDescription(value); return *this;}
59
61
64 inline const Aws::String& GetChatConfigurationArn() const{ return m_chatConfigurationArn; }
65 inline bool ChatConfigurationArnHasBeenSet() const { return m_chatConfigurationArnHasBeenSet; }
66 inline void SetChatConfigurationArn(const Aws::String& value) { m_chatConfigurationArnHasBeenSet = true; m_chatConfigurationArn = value; }
67 inline void SetChatConfigurationArn(Aws::String&& value) { m_chatConfigurationArnHasBeenSet = true; m_chatConfigurationArn = std::move(value); }
68 inline void SetChatConfigurationArn(const char* value) { m_chatConfigurationArnHasBeenSet = true; m_chatConfigurationArn.assign(value); }
71 inline ChimeWebhookConfiguration& WithChatConfigurationArn(const char* value) { SetChatConfigurationArn(value); return *this;}
73
75
82 inline const Aws::String& GetIamRoleArn() const{ return m_iamRoleArn; }
83 inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
84 inline void SetIamRoleArn(const Aws::String& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = value; }
85 inline void SetIamRoleArn(Aws::String&& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = std::move(value); }
86 inline void SetIamRoleArn(const char* value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn.assign(value); }
87 inline ChimeWebhookConfiguration& WithIamRoleArn(const Aws::String& value) { SetIamRoleArn(value); return *this;}
88 inline ChimeWebhookConfiguration& WithIamRoleArn(Aws::String&& value) { SetIamRoleArn(std::move(value)); return *this;}
89 inline ChimeWebhookConfiguration& WithIamRoleArn(const char* value) { SetIamRoleArn(value); return *this;}
91
93
97 inline const Aws::Vector<Aws::String>& GetSnsTopicArns() const{ return m_snsTopicArns; }
98 inline bool SnsTopicArnsHasBeenSet() const { return m_snsTopicArnsHasBeenSet; }
99 inline void SetSnsTopicArns(const Aws::Vector<Aws::String>& value) { m_snsTopicArnsHasBeenSet = true; m_snsTopicArns = value; }
100 inline void SetSnsTopicArns(Aws::Vector<Aws::String>&& value) { m_snsTopicArnsHasBeenSet = true; m_snsTopicArns = std::move(value); }
102 inline ChimeWebhookConfiguration& WithSnsTopicArns(Aws::Vector<Aws::String>&& value) { SetSnsTopicArns(std::move(value)); return *this;}
103 inline ChimeWebhookConfiguration& AddSnsTopicArns(const Aws::String& value) { m_snsTopicArnsHasBeenSet = true; m_snsTopicArns.push_back(value); return *this; }
104 inline ChimeWebhookConfiguration& AddSnsTopicArns(Aws::String&& value) { m_snsTopicArnsHasBeenSet = true; m_snsTopicArns.push_back(std::move(value)); return *this; }
105 inline ChimeWebhookConfiguration& AddSnsTopicArns(const char* value) { m_snsTopicArnsHasBeenSet = true; m_snsTopicArns.push_back(value); return *this; }
107
109
112 inline const Aws::String& GetConfigurationName() const{ return m_configurationName; }
113 inline bool ConfigurationNameHasBeenSet() const { return m_configurationNameHasBeenSet; }
114 inline void SetConfigurationName(const Aws::String& value) { m_configurationNameHasBeenSet = true; m_configurationName = value; }
115 inline void SetConfigurationName(Aws::String&& value) { m_configurationNameHasBeenSet = true; m_configurationName = std::move(value); }
116 inline void SetConfigurationName(const char* value) { m_configurationNameHasBeenSet = true; m_configurationName.assign(value); }
118 inline ChimeWebhookConfiguration& WithConfigurationName(Aws::String&& value) { SetConfigurationName(std::move(value)); return *this;}
119 inline ChimeWebhookConfiguration& WithConfigurationName(const char* value) { SetConfigurationName(value); return *this;}
121
123
127 inline const Aws::String& GetLoggingLevel() const{ return m_loggingLevel; }
128 inline bool LoggingLevelHasBeenSet() const { return m_loggingLevelHasBeenSet; }
129 inline void SetLoggingLevel(const Aws::String& value) { m_loggingLevelHasBeenSet = true; m_loggingLevel = value; }
130 inline void SetLoggingLevel(Aws::String&& value) { m_loggingLevelHasBeenSet = true; m_loggingLevel = std::move(value); }
131 inline void SetLoggingLevel(const char* value) { m_loggingLevelHasBeenSet = true; m_loggingLevel.assign(value); }
132 inline ChimeWebhookConfiguration& WithLoggingLevel(const Aws::String& value) { SetLoggingLevel(value); return *this;}
133 inline ChimeWebhookConfiguration& WithLoggingLevel(Aws::String&& value) { SetLoggingLevel(std::move(value)); return *this;}
134 inline ChimeWebhookConfiguration& WithLoggingLevel(const char* value) { SetLoggingLevel(value); return *this;}
136
138
142 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
143 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
144 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
145 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
146 inline ChimeWebhookConfiguration& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
147 inline ChimeWebhookConfiguration& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
148 inline ChimeWebhookConfiguration& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
149 inline ChimeWebhookConfiguration& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
151
153
158 inline const Aws::String& GetState() const{ return m_state; }
159 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
160 inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; }
161 inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
162 inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); }
163 inline ChimeWebhookConfiguration& WithState(const Aws::String& value) { SetState(value); return *this;}
164 inline ChimeWebhookConfiguration& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
165 inline ChimeWebhookConfiguration& WithState(const char* value) { SetState(value); return *this;}
167
169
173 inline const Aws::String& GetStateReason() const{ return m_stateReason; }
174 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
175 inline void SetStateReason(const Aws::String& value) { m_stateReasonHasBeenSet = true; m_stateReason = value; }
176 inline void SetStateReason(Aws::String&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::move(value); }
177 inline void SetStateReason(const char* value) { m_stateReasonHasBeenSet = true; m_stateReason.assign(value); }
178 inline ChimeWebhookConfiguration& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;}
179 inline ChimeWebhookConfiguration& WithStateReason(Aws::String&& value) { SetStateReason(std::move(value)); return *this;}
180 inline ChimeWebhookConfiguration& WithStateReason(const char* value) { SetStateReason(value); return *this;}
182 private:
183
184 Aws::String m_webhookDescription;
185 bool m_webhookDescriptionHasBeenSet = false;
186
187 Aws::String m_chatConfigurationArn;
188 bool m_chatConfigurationArnHasBeenSet = false;
189
190 Aws::String m_iamRoleArn;
191 bool m_iamRoleArnHasBeenSet = false;
192
193 Aws::Vector<Aws::String> m_snsTopicArns;
194 bool m_snsTopicArnsHasBeenSet = false;
195
196 Aws::String m_configurationName;
197 bool m_configurationNameHasBeenSet = false;
198
199 Aws::String m_loggingLevel;
200 bool m_loggingLevelHasBeenSet = false;
201
202 Aws::Vector<Tag> m_tags;
203 bool m_tagsHasBeenSet = false;
204
205 Aws::String m_state;
206 bool m_stateHasBeenSet = false;
207
208 Aws::String m_stateReason;
209 bool m_stateReasonHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace chatbot
214} // namespace Aws
ChimeWebhookConfiguration & WithState(Aws::String &&value)
ChimeWebhookConfiguration & AddSnsTopicArns(const Aws::String &value)
ChimeWebhookConfiguration & WithConfigurationName(const char *value)
ChimeWebhookConfiguration & WithIamRoleArn(Aws::String &&value)
ChimeWebhookConfiguration & WithSnsTopicArns(const Aws::Vector< Aws::String > &value)
ChimeWebhookConfiguration & WithStateReason(const Aws::String &value)
ChimeWebhookConfiguration & AddTags(const Tag &value)
ChimeWebhookConfiguration & WithLoggingLevel(Aws::String &&value)
void SetSnsTopicArns(Aws::Vector< Aws::String > &&value)
ChimeWebhookConfiguration & WithChatConfigurationArn(const char *value)
ChimeWebhookConfiguration & WithTags(const Aws::Vector< Tag > &value)
ChimeWebhookConfiguration & AddSnsTopicArns(Aws::String &&value)
ChimeWebhookConfiguration & WithState(const Aws::String &value)
ChimeWebhookConfiguration & WithConfigurationName(Aws::String &&value)
ChimeWebhookConfiguration & WithIamRoleArn(const Aws::String &value)
ChimeWebhookConfiguration & WithLoggingLevel(const char *value)
ChimeWebhookConfiguration & WithChatConfigurationArn(Aws::String &&value)
ChimeWebhookConfiguration & WithStateReason(Aws::String &&value)
ChimeWebhookConfiguration & AddTags(Tag &&value)
void SetSnsTopicArns(const Aws::Vector< Aws::String > &value)
ChimeWebhookConfiguration & WithWebhookDescription(Aws::String &&value)
ChimeWebhookConfiguration & WithWebhookDescription(const char *value)
const Aws::Vector< Aws::String > & GetSnsTopicArns() const
ChimeWebhookConfiguration & WithWebhookDescription(const Aws::String &value)
ChimeWebhookConfiguration & WithChatConfigurationArn(const Aws::String &value)
AWS_CHATBOT_API ChimeWebhookConfiguration(Aws::Utils::Json::JsonView jsonValue)
ChimeWebhookConfiguration & WithLoggingLevel(const Aws::String &value)
ChimeWebhookConfiguration & WithState(const char *value)
ChimeWebhookConfiguration & WithConfigurationName(const Aws::String &value)
ChimeWebhookConfiguration & WithIamRoleArn(const char *value)
ChimeWebhookConfiguration & WithSnsTopicArns(Aws::Vector< Aws::String > &&value)
AWS_CHATBOT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CHATBOT_API ChimeWebhookConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ChimeWebhookConfiguration & AddSnsTopicArns(const char *value)
ChimeWebhookConfiguration & WithStateReason(const char *value)
ChimeWebhookConfiguration & WithTags(Aws::Vector< Tag > &&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