AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SlackChannelConfiguration.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 SlackChannelConfiguration();
39 AWS_CHATBOT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetSlackTeamName() const{ return m_slackTeamName; }
47 inline bool SlackTeamNameHasBeenSet() const { return m_slackTeamNameHasBeenSet; }
48 inline void SetSlackTeamName(const Aws::String& value) { m_slackTeamNameHasBeenSet = true; m_slackTeamName = value; }
49 inline void SetSlackTeamName(Aws::String&& value) { m_slackTeamNameHasBeenSet = true; m_slackTeamName = std::move(value); }
50 inline void SetSlackTeamName(const char* value) { m_slackTeamNameHasBeenSet = true; m_slackTeamName.assign(value); }
51 inline SlackChannelConfiguration& WithSlackTeamName(const Aws::String& value) { SetSlackTeamName(value); return *this;}
52 inline SlackChannelConfiguration& WithSlackTeamName(Aws::String&& value) { SetSlackTeamName(std::move(value)); return *this;}
53 inline SlackChannelConfiguration& WithSlackTeamName(const char* value) { SetSlackTeamName(value); return *this;}
55
57
60 inline const Aws::String& GetSlackTeamId() const{ return m_slackTeamId; }
61 inline bool SlackTeamIdHasBeenSet() const { return m_slackTeamIdHasBeenSet; }
62 inline void SetSlackTeamId(const Aws::String& value) { m_slackTeamIdHasBeenSet = true; m_slackTeamId = value; }
63 inline void SetSlackTeamId(Aws::String&& value) { m_slackTeamIdHasBeenSet = true; m_slackTeamId = std::move(value); }
64 inline void SetSlackTeamId(const char* value) { m_slackTeamIdHasBeenSet = true; m_slackTeamId.assign(value); }
65 inline SlackChannelConfiguration& WithSlackTeamId(const Aws::String& value) { SetSlackTeamId(value); return *this;}
66 inline SlackChannelConfiguration& WithSlackTeamId(Aws::String&& value) { SetSlackTeamId(std::move(value)); return *this;}
67 inline SlackChannelConfiguration& WithSlackTeamId(const char* value) { SetSlackTeamId(value); return *this;}
69
71
76 inline const Aws::String& GetSlackChannelId() const{ return m_slackChannelId; }
77 inline bool SlackChannelIdHasBeenSet() const { return m_slackChannelIdHasBeenSet; }
78 inline void SetSlackChannelId(const Aws::String& value) { m_slackChannelIdHasBeenSet = true; m_slackChannelId = value; }
79 inline void SetSlackChannelId(Aws::String&& value) { m_slackChannelIdHasBeenSet = true; m_slackChannelId = std::move(value); }
80 inline void SetSlackChannelId(const char* value) { m_slackChannelIdHasBeenSet = true; m_slackChannelId.assign(value); }
81 inline SlackChannelConfiguration& WithSlackChannelId(const Aws::String& value) { SetSlackChannelId(value); return *this;}
82 inline SlackChannelConfiguration& WithSlackChannelId(Aws::String&& value) { SetSlackChannelId(std::move(value)); return *this;}
83 inline SlackChannelConfiguration& WithSlackChannelId(const char* value) { SetSlackChannelId(value); return *this;}
85
87
90 inline const Aws::String& GetSlackChannelName() const{ return m_slackChannelName; }
91 inline bool SlackChannelNameHasBeenSet() const { return m_slackChannelNameHasBeenSet; }
92 inline void SetSlackChannelName(const Aws::String& value) { m_slackChannelNameHasBeenSet = true; m_slackChannelName = value; }
93 inline void SetSlackChannelName(Aws::String&& value) { m_slackChannelNameHasBeenSet = true; m_slackChannelName = std::move(value); }
94 inline void SetSlackChannelName(const char* value) { m_slackChannelNameHasBeenSet = true; m_slackChannelName.assign(value); }
96 inline SlackChannelConfiguration& WithSlackChannelName(Aws::String&& value) { SetSlackChannelName(std::move(value)); return *this;}
97 inline SlackChannelConfiguration& WithSlackChannelName(const char* value) { SetSlackChannelName(value); return *this;}
99
101
104 inline const Aws::String& GetChatConfigurationArn() const{ return m_chatConfigurationArn; }
105 inline bool ChatConfigurationArnHasBeenSet() const { return m_chatConfigurationArnHasBeenSet; }
106 inline void SetChatConfigurationArn(const Aws::String& value) { m_chatConfigurationArnHasBeenSet = true; m_chatConfigurationArn = value; }
107 inline void SetChatConfigurationArn(Aws::String&& value) { m_chatConfigurationArnHasBeenSet = true; m_chatConfigurationArn = std::move(value); }
108 inline void SetChatConfigurationArn(const char* value) { m_chatConfigurationArnHasBeenSet = true; m_chatConfigurationArn.assign(value); }
111 inline SlackChannelConfiguration& WithChatConfigurationArn(const char* value) { SetChatConfigurationArn(value); return *this;}
113
115
122 inline const Aws::String& GetIamRoleArn() const{ return m_iamRoleArn; }
123 inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
124 inline void SetIamRoleArn(const Aws::String& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = value; }
125 inline void SetIamRoleArn(Aws::String&& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = std::move(value); }
126 inline void SetIamRoleArn(const char* value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn.assign(value); }
127 inline SlackChannelConfiguration& WithIamRoleArn(const Aws::String& value) { SetIamRoleArn(value); return *this;}
128 inline SlackChannelConfiguration& WithIamRoleArn(Aws::String&& value) { SetIamRoleArn(std::move(value)); return *this;}
129 inline SlackChannelConfiguration& WithIamRoleArn(const char* value) { SetIamRoleArn(value); return *this;}
131
133
136 inline const Aws::Vector<Aws::String>& GetSnsTopicArns() const{ return m_snsTopicArns; }
137 inline bool SnsTopicArnsHasBeenSet() const { return m_snsTopicArnsHasBeenSet; }
138 inline void SetSnsTopicArns(const Aws::Vector<Aws::String>& value) { m_snsTopicArnsHasBeenSet = true; m_snsTopicArns = value; }
139 inline void SetSnsTopicArns(Aws::Vector<Aws::String>&& value) { m_snsTopicArnsHasBeenSet = true; m_snsTopicArns = std::move(value); }
141 inline SlackChannelConfiguration& WithSnsTopicArns(Aws::Vector<Aws::String>&& value) { SetSnsTopicArns(std::move(value)); return *this;}
142 inline SlackChannelConfiguration& AddSnsTopicArns(const Aws::String& value) { m_snsTopicArnsHasBeenSet = true; m_snsTopicArns.push_back(value); return *this; }
143 inline SlackChannelConfiguration& AddSnsTopicArns(Aws::String&& value) { m_snsTopicArnsHasBeenSet = true; m_snsTopicArns.push_back(std::move(value)); return *this; }
144 inline SlackChannelConfiguration& AddSnsTopicArns(const char* value) { m_snsTopicArnsHasBeenSet = true; m_snsTopicArns.push_back(value); return *this; }
146
148
151 inline const Aws::String& GetConfigurationName() const{ return m_configurationName; }
152 inline bool ConfigurationNameHasBeenSet() const { return m_configurationNameHasBeenSet; }
153 inline void SetConfigurationName(const Aws::String& value) { m_configurationNameHasBeenSet = true; m_configurationName = value; }
154 inline void SetConfigurationName(Aws::String&& value) { m_configurationNameHasBeenSet = true; m_configurationName = std::move(value); }
155 inline void SetConfigurationName(const char* value) { m_configurationNameHasBeenSet = true; m_configurationName.assign(value); }
157 inline SlackChannelConfiguration& WithConfigurationName(Aws::String&& value) { SetConfigurationName(std::move(value)); return *this;}
158 inline SlackChannelConfiguration& WithConfigurationName(const char* value) { SetConfigurationName(value); return *this;}
160
162
166 inline const Aws::String& GetLoggingLevel() const{ return m_loggingLevel; }
167 inline bool LoggingLevelHasBeenSet() const { return m_loggingLevelHasBeenSet; }
168 inline void SetLoggingLevel(const Aws::String& value) { m_loggingLevelHasBeenSet = true; m_loggingLevel = value; }
169 inline void SetLoggingLevel(Aws::String&& value) { m_loggingLevelHasBeenSet = true; m_loggingLevel = std::move(value); }
170 inline void SetLoggingLevel(const char* value) { m_loggingLevelHasBeenSet = true; m_loggingLevel.assign(value); }
171 inline SlackChannelConfiguration& WithLoggingLevel(const Aws::String& value) { SetLoggingLevel(value); return *this;}
172 inline SlackChannelConfiguration& WithLoggingLevel(Aws::String&& value) { SetLoggingLevel(std::move(value)); return *this;}
173 inline SlackChannelConfiguration& WithLoggingLevel(const char* value) { SetLoggingLevel(value); return *this;}
175
177
182 inline const Aws::Vector<Aws::String>& GetGuardrailPolicyArns() const{ return m_guardrailPolicyArns; }
183 inline bool GuardrailPolicyArnsHasBeenSet() const { return m_guardrailPolicyArnsHasBeenSet; }
184 inline void SetGuardrailPolicyArns(const Aws::Vector<Aws::String>& value) { m_guardrailPolicyArnsHasBeenSet = true; m_guardrailPolicyArns = value; }
185 inline void SetGuardrailPolicyArns(Aws::Vector<Aws::String>&& value) { m_guardrailPolicyArnsHasBeenSet = true; m_guardrailPolicyArns = std::move(value); }
188 inline SlackChannelConfiguration& AddGuardrailPolicyArns(const Aws::String& value) { m_guardrailPolicyArnsHasBeenSet = true; m_guardrailPolicyArns.push_back(value); return *this; }
189 inline SlackChannelConfiguration& AddGuardrailPolicyArns(Aws::String&& value) { m_guardrailPolicyArnsHasBeenSet = true; m_guardrailPolicyArns.push_back(std::move(value)); return *this; }
190 inline SlackChannelConfiguration& AddGuardrailPolicyArns(const char* value) { m_guardrailPolicyArnsHasBeenSet = true; m_guardrailPolicyArns.push_back(value); return *this; }
192
194
197 inline bool GetUserAuthorizationRequired() const{ return m_userAuthorizationRequired; }
198 inline bool UserAuthorizationRequiredHasBeenSet() const { return m_userAuthorizationRequiredHasBeenSet; }
199 inline void SetUserAuthorizationRequired(bool value) { m_userAuthorizationRequiredHasBeenSet = true; m_userAuthorizationRequired = value; }
202
204
208 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
209 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
210 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
211 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
212 inline SlackChannelConfiguration& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
213 inline SlackChannelConfiguration& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
214 inline SlackChannelConfiguration& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
215 inline SlackChannelConfiguration& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
217
219
224 inline const Aws::String& GetState() const{ return m_state; }
225 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
226 inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; }
227 inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
228 inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); }
229 inline SlackChannelConfiguration& WithState(const Aws::String& value) { SetState(value); return *this;}
230 inline SlackChannelConfiguration& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
231 inline SlackChannelConfiguration& WithState(const char* value) { SetState(value); return *this;}
233
235
239 inline const Aws::String& GetStateReason() const{ return m_stateReason; }
240 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
241 inline void SetStateReason(const Aws::String& value) { m_stateReasonHasBeenSet = true; m_stateReason = value; }
242 inline void SetStateReason(Aws::String&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::move(value); }
243 inline void SetStateReason(const char* value) { m_stateReasonHasBeenSet = true; m_stateReason.assign(value); }
244 inline SlackChannelConfiguration& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;}
245 inline SlackChannelConfiguration& WithStateReason(Aws::String&& value) { SetStateReason(std::move(value)); return *this;}
246 inline SlackChannelConfiguration& WithStateReason(const char* value) { SetStateReason(value); return *this;}
248 private:
249
250 Aws::String m_slackTeamName;
251 bool m_slackTeamNameHasBeenSet = false;
252
253 Aws::String m_slackTeamId;
254 bool m_slackTeamIdHasBeenSet = false;
255
256 Aws::String m_slackChannelId;
257 bool m_slackChannelIdHasBeenSet = false;
258
259 Aws::String m_slackChannelName;
260 bool m_slackChannelNameHasBeenSet = false;
261
262 Aws::String m_chatConfigurationArn;
263 bool m_chatConfigurationArnHasBeenSet = false;
264
265 Aws::String m_iamRoleArn;
266 bool m_iamRoleArnHasBeenSet = false;
267
268 Aws::Vector<Aws::String> m_snsTopicArns;
269 bool m_snsTopicArnsHasBeenSet = false;
270
271 Aws::String m_configurationName;
272 bool m_configurationNameHasBeenSet = false;
273
274 Aws::String m_loggingLevel;
275 bool m_loggingLevelHasBeenSet = false;
276
277 Aws::Vector<Aws::String> m_guardrailPolicyArns;
278 bool m_guardrailPolicyArnsHasBeenSet = false;
279
280 bool m_userAuthorizationRequired;
281 bool m_userAuthorizationRequiredHasBeenSet = false;
282
283 Aws::Vector<Tag> m_tags;
284 bool m_tagsHasBeenSet = false;
285
286 Aws::String m_state;
287 bool m_stateHasBeenSet = false;
288
289 Aws::String m_stateReason;
290 bool m_stateReasonHasBeenSet = false;
291 };
292
293} // namespace Model
294} // namespace chatbot
295} // namespace Aws
SlackChannelConfiguration & WithSlackChannelName(const char *value)
SlackChannelConfiguration & WithStateReason(const Aws::String &value)
SlackChannelConfiguration & WithState(const char *value)
SlackChannelConfiguration & WithTags(const Aws::Vector< Tag > &value)
SlackChannelConfiguration & WithSlackTeamId(const char *value)
SlackChannelConfiguration & AddSnsTopicArns(const Aws::String &value)
SlackChannelConfiguration & WithIamRoleArn(const Aws::String &value)
SlackChannelConfiguration & WithConfigurationName(const Aws::String &value)
SlackChannelConfiguration & AddGuardrailPolicyArns(const char *value)
SlackChannelConfiguration & AddSnsTopicArns(Aws::String &&value)
SlackChannelConfiguration & WithSlackChannelName(Aws::String &&value)
SlackChannelConfiguration & WithChatConfigurationArn(Aws::String &&value)
SlackChannelConfiguration & WithSnsTopicArns(Aws::Vector< Aws::String > &&value)
SlackChannelConfiguration & WithIamRoleArn(const char *value)
SlackChannelConfiguration & AddSnsTopicArns(const char *value)
SlackChannelConfiguration & WithChatConfigurationArn(const char *value)
SlackChannelConfiguration & WithIamRoleArn(Aws::String &&value)
AWS_CHATBOT_API SlackChannelConfiguration(Aws::Utils::Json::JsonView jsonValue)
SlackChannelConfiguration & WithGuardrailPolicyArns(const Aws::Vector< Aws::String > &value)
SlackChannelConfiguration & WithState(Aws::String &&value)
SlackChannelConfiguration & WithSlackTeamId(const Aws::String &value)
void SetSnsTopicArns(Aws::Vector< Aws::String > &&value)
SlackChannelConfiguration & WithSlackChannelName(const Aws::String &value)
SlackChannelConfiguration & WithSlackTeamName(const Aws::String &value)
void SetGuardrailPolicyArns(const Aws::Vector< Aws::String > &value)
SlackChannelConfiguration & WithGuardrailPolicyArns(Aws::Vector< Aws::String > &&value)
SlackChannelConfiguration & WithConfigurationName(Aws::String &&value)
SlackChannelConfiguration & WithTags(Aws::Vector< Tag > &&value)
SlackChannelConfiguration & WithSnsTopicArns(const Aws::Vector< Aws::String > &value)
SlackChannelConfiguration & AddTags(Tag &&value)
SlackChannelConfiguration & AddGuardrailPolicyArns(const Aws::String &value)
const Aws::Vector< Aws::String > & GetSnsTopicArns() const
SlackChannelConfiguration & WithSlackTeamName(const char *value)
SlackChannelConfiguration & WithChatConfigurationArn(const Aws::String &value)
SlackChannelConfiguration & WithSlackChannelId(const char *value)
SlackChannelConfiguration & WithConfigurationName(const char *value)
SlackChannelConfiguration & WithSlackChannelId(Aws::String &&value)
SlackChannelConfiguration & WithUserAuthorizationRequired(bool value)
AWS_CHATBOT_API SlackChannelConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
SlackChannelConfiguration & WithSlackChannelId(const Aws::String &value)
SlackChannelConfiguration & WithStateReason(Aws::String &&value)
SlackChannelConfiguration & WithLoggingLevel(const char *value)
void SetSnsTopicArns(const Aws::Vector< Aws::String > &value)
SlackChannelConfiguration & WithLoggingLevel(Aws::String &&value)
SlackChannelConfiguration & WithLoggingLevel(const Aws::String &value)
SlackChannelConfiguration & WithSlackTeamName(Aws::String &&value)
SlackChannelConfiguration & WithSlackTeamId(Aws::String &&value)
SlackChannelConfiguration & WithStateReason(const char *value)
const Aws::Vector< Aws::String > & GetGuardrailPolicyArns() const
void SetGuardrailPolicyArns(Aws::Vector< Aws::String > &&value)
SlackChannelConfiguration & AddTags(const Tag &value)
SlackChannelConfiguration & AddGuardrailPolicyArns(Aws::String &&value)
SlackChannelConfiguration & WithState(const Aws::String &value)
AWS_CHATBOT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue