AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
TeamsChannelConfiguration.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
35 {
36 public:
37 AWS_CHATBOT_API TeamsChannelConfiguration() = default;
40 AWS_CHATBOT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetChannelId() const { return m_channelId; }
48 inline bool ChannelIdHasBeenSet() const { return m_channelIdHasBeenSet; }
49 template<typename ChannelIdT = Aws::String>
50 void SetChannelId(ChannelIdT&& value) { m_channelIdHasBeenSet = true; m_channelId = std::forward<ChannelIdT>(value); }
51 template<typename ChannelIdT = Aws::String>
52 TeamsChannelConfiguration& WithChannelId(ChannelIdT&& value) { SetChannelId(std::forward<ChannelIdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetChannelName() const { return m_channelName; }
60 inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
61 template<typename ChannelNameT = Aws::String>
62 void SetChannelName(ChannelNameT&& value) { m_channelNameHasBeenSet = true; m_channelName = std::forward<ChannelNameT>(value); }
63 template<typename ChannelNameT = Aws::String>
64 TeamsChannelConfiguration& WithChannelName(ChannelNameT&& value) { SetChannelName(std::forward<ChannelNameT>(value)); return *this;}
66
68
77 inline const Aws::String& GetTeamId() const { return m_teamId; }
78 inline bool TeamIdHasBeenSet() const { return m_teamIdHasBeenSet; }
79 template<typename TeamIdT = Aws::String>
80 void SetTeamId(TeamIdT&& value) { m_teamIdHasBeenSet = true; m_teamId = std::forward<TeamIdT>(value); }
81 template<typename TeamIdT = Aws::String>
82 TeamsChannelConfiguration& WithTeamId(TeamIdT&& value) { SetTeamId(std::forward<TeamIdT>(value)); return *this;}
84
86
89 inline const Aws::String& GetTeamName() const { return m_teamName; }
90 inline bool TeamNameHasBeenSet() const { return m_teamNameHasBeenSet; }
91 template<typename TeamNameT = Aws::String>
92 void SetTeamName(TeamNameT&& value) { m_teamNameHasBeenSet = true; m_teamName = std::forward<TeamNameT>(value); }
93 template<typename TeamNameT = Aws::String>
94 TeamsChannelConfiguration& WithTeamName(TeamNameT&& value) { SetTeamName(std::forward<TeamNameT>(value)); return *this;}
96
98
101 inline const Aws::String& GetTenantId() const { return m_tenantId; }
102 inline bool TenantIdHasBeenSet() const { return m_tenantIdHasBeenSet; }
103 template<typename TenantIdT = Aws::String>
104 void SetTenantId(TenantIdT&& value) { m_tenantIdHasBeenSet = true; m_tenantId = std::forward<TenantIdT>(value); }
105 template<typename TenantIdT = Aws::String>
106 TeamsChannelConfiguration& WithTenantId(TenantIdT&& value) { SetTenantId(std::forward<TenantIdT>(value)); return *this;}
108
110
114 inline const Aws::String& GetChatConfigurationArn() const { return m_chatConfigurationArn; }
115 inline bool ChatConfigurationArnHasBeenSet() const { return m_chatConfigurationArnHasBeenSet; }
116 template<typename ChatConfigurationArnT = Aws::String>
117 void SetChatConfigurationArn(ChatConfigurationArnT&& value) { m_chatConfigurationArnHasBeenSet = true; m_chatConfigurationArn = std::forward<ChatConfigurationArnT>(value); }
118 template<typename ChatConfigurationArnT = Aws::String>
119 TeamsChannelConfiguration& WithChatConfigurationArn(ChatConfigurationArnT&& value) { SetChatConfigurationArn(std::forward<ChatConfigurationArnT>(value)); return *this;}
121
123
130 inline const Aws::String& GetIamRoleArn() const { return m_iamRoleArn; }
131 inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
132 template<typename IamRoleArnT = Aws::String>
133 void SetIamRoleArn(IamRoleArnT&& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = std::forward<IamRoleArnT>(value); }
134 template<typename IamRoleArnT = Aws::String>
135 TeamsChannelConfiguration& WithIamRoleArn(IamRoleArnT&& value) { SetIamRoleArn(std::forward<IamRoleArnT>(value)); return *this;}
137
139
143 inline const Aws::Vector<Aws::String>& GetSnsTopicArns() const { return m_snsTopicArns; }
144 inline bool SnsTopicArnsHasBeenSet() const { return m_snsTopicArnsHasBeenSet; }
145 template<typename SnsTopicArnsT = Aws::Vector<Aws::String>>
146 void SetSnsTopicArns(SnsTopicArnsT&& value) { m_snsTopicArnsHasBeenSet = true; m_snsTopicArns = std::forward<SnsTopicArnsT>(value); }
147 template<typename SnsTopicArnsT = Aws::Vector<Aws::String>>
148 TeamsChannelConfiguration& WithSnsTopicArns(SnsTopicArnsT&& value) { SetSnsTopicArns(std::forward<SnsTopicArnsT>(value)); return *this;}
149 template<typename SnsTopicArnsT = Aws::String>
150 TeamsChannelConfiguration& AddSnsTopicArns(SnsTopicArnsT&& value) { m_snsTopicArnsHasBeenSet = true; m_snsTopicArns.emplace_back(std::forward<SnsTopicArnsT>(value)); return *this; }
152
154
157 inline const Aws::String& GetConfigurationName() const { return m_configurationName; }
158 inline bool ConfigurationNameHasBeenSet() const { return m_configurationNameHasBeenSet; }
159 template<typename ConfigurationNameT = Aws::String>
160 void SetConfigurationName(ConfigurationNameT&& value) { m_configurationNameHasBeenSet = true; m_configurationName = std::forward<ConfigurationNameT>(value); }
161 template<typename ConfigurationNameT = Aws::String>
162 TeamsChannelConfiguration& WithConfigurationName(ConfigurationNameT&& value) { SetConfigurationName(std::forward<ConfigurationNameT>(value)); return *this;}
164
166
170 inline const Aws::String& GetLoggingLevel() const { return m_loggingLevel; }
171 inline bool LoggingLevelHasBeenSet() const { return m_loggingLevelHasBeenSet; }
172 template<typename LoggingLevelT = Aws::String>
173 void SetLoggingLevel(LoggingLevelT&& value) { m_loggingLevelHasBeenSet = true; m_loggingLevel = std::forward<LoggingLevelT>(value); }
174 template<typename LoggingLevelT = Aws::String>
175 TeamsChannelConfiguration& WithLoggingLevel(LoggingLevelT&& value) { SetLoggingLevel(std::forward<LoggingLevelT>(value)); return *this;}
177
179
184 inline const Aws::Vector<Aws::String>& GetGuardrailPolicyArns() const { return m_guardrailPolicyArns; }
185 inline bool GuardrailPolicyArnsHasBeenSet() const { return m_guardrailPolicyArnsHasBeenSet; }
186 template<typename GuardrailPolicyArnsT = Aws::Vector<Aws::String>>
187 void SetGuardrailPolicyArns(GuardrailPolicyArnsT&& value) { m_guardrailPolicyArnsHasBeenSet = true; m_guardrailPolicyArns = std::forward<GuardrailPolicyArnsT>(value); }
188 template<typename GuardrailPolicyArnsT = Aws::Vector<Aws::String>>
189 TeamsChannelConfiguration& WithGuardrailPolicyArns(GuardrailPolicyArnsT&& value) { SetGuardrailPolicyArns(std::forward<GuardrailPolicyArnsT>(value)); return *this;}
190 template<typename GuardrailPolicyArnsT = Aws::String>
191 TeamsChannelConfiguration& AddGuardrailPolicyArns(GuardrailPolicyArnsT&& value) { m_guardrailPolicyArnsHasBeenSet = true; m_guardrailPolicyArns.emplace_back(std::forward<GuardrailPolicyArnsT>(value)); return *this; }
193
195
198 inline bool GetUserAuthorizationRequired() const { return m_userAuthorizationRequired; }
199 inline bool UserAuthorizationRequiredHasBeenSet() const { return m_userAuthorizationRequiredHasBeenSet; }
200 inline void SetUserAuthorizationRequired(bool value) { m_userAuthorizationRequiredHasBeenSet = true; m_userAuthorizationRequired = value; }
203
205
209 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
210 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
211 template<typename TagsT = Aws::Vector<Tag>>
212 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
213 template<typename TagsT = Aws::Vector<Tag>>
214 TeamsChannelConfiguration& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
215 template<typename TagsT = Tag>
216 TeamsChannelConfiguration& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
218
220
225 inline const Aws::String& GetState() const { return m_state; }
226 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
227 template<typename StateT = Aws::String>
228 void SetState(StateT&& value) { m_stateHasBeenSet = true; m_state = std::forward<StateT>(value); }
229 template<typename StateT = Aws::String>
230 TeamsChannelConfiguration& WithState(StateT&& value) { SetState(std::forward<StateT>(value)); return *this;}
232
234
238 inline const Aws::String& GetStateReason() const { return m_stateReason; }
239 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
240 template<typename StateReasonT = Aws::String>
241 void SetStateReason(StateReasonT&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::forward<StateReasonT>(value); }
242 template<typename StateReasonT = Aws::String>
243 TeamsChannelConfiguration& WithStateReason(StateReasonT&& value) { SetStateReason(std::forward<StateReasonT>(value)); return *this;}
245 private:
246
247 Aws::String m_channelId;
248 bool m_channelIdHasBeenSet = false;
249
250 Aws::String m_channelName;
251 bool m_channelNameHasBeenSet = false;
252
253 Aws::String m_teamId;
254 bool m_teamIdHasBeenSet = false;
255
256 Aws::String m_teamName;
257 bool m_teamNameHasBeenSet = false;
258
259 Aws::String m_tenantId;
260 bool m_tenantIdHasBeenSet = 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{false};
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
TeamsChannelConfiguration & WithTags(TagsT &&value)
AWS_CHATBOT_API TeamsChannelConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
TeamsChannelConfiguration & WithChannelId(ChannelIdT &&value)
TeamsChannelConfiguration & WithIamRoleArn(IamRoleArnT &&value)
TeamsChannelConfiguration & WithConfigurationName(ConfigurationNameT &&value)
TeamsChannelConfiguration & WithState(StateT &&value)
AWS_CHATBOT_API TeamsChannelConfiguration(Aws::Utils::Json::JsonView jsonValue)
TeamsChannelConfiguration & WithTeamName(TeamNameT &&value)
void SetChatConfigurationArn(ChatConfigurationArnT &&value)
TeamsChannelConfiguration & AddSnsTopicArns(SnsTopicArnsT &&value)
TeamsChannelConfiguration & WithTenantId(TenantIdT &&value)
TeamsChannelConfiguration & WithSnsTopicArns(SnsTopicArnsT &&value)
TeamsChannelConfiguration & WithChatConfigurationArn(ChatConfigurationArnT &&value)
void SetGuardrailPolicyArns(GuardrailPolicyArnsT &&value)
TeamsChannelConfiguration & AddGuardrailPolicyArns(GuardrailPolicyArnsT &&value)
TeamsChannelConfiguration & AddTags(TagsT &&value)
TeamsChannelConfiguration & WithTeamId(TeamIdT &&value)
const Aws::Vector< Aws::String > & GetGuardrailPolicyArns() const
TeamsChannelConfiguration & WithLoggingLevel(LoggingLevelT &&value)
TeamsChannelConfiguration & WithUserAuthorizationRequired(bool value)
AWS_CHATBOT_API TeamsChannelConfiguration()=default
TeamsChannelConfiguration & WithChannelName(ChannelNameT &&value)
TeamsChannelConfiguration & WithGuardrailPolicyArns(GuardrailPolicyArnsT &&value)
TeamsChannelConfiguration & WithStateReason(StateReasonT &&value)
AWS_CHATBOT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetSnsTopicArns() 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