AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateSlackChannelConfigurationRequest.h
1
6#pragma once
7#include <aws/chatbot/Chatbot_EXPORTS.h>
8#include <aws/chatbot/ChatbotRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/chatbot/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace chatbot
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateSlackChannelConfiguration"; }
33
34 AWS_CHATBOT_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetSlackTeamId() const{ return m_slackTeamId; }
42 inline bool SlackTeamIdHasBeenSet() const { return m_slackTeamIdHasBeenSet; }
43 inline void SetSlackTeamId(const Aws::String& value) { m_slackTeamIdHasBeenSet = true; m_slackTeamId = value; }
44 inline void SetSlackTeamId(Aws::String&& value) { m_slackTeamIdHasBeenSet = true; m_slackTeamId = std::move(value); }
45 inline void SetSlackTeamId(const char* value) { m_slackTeamIdHasBeenSet = true; m_slackTeamId.assign(value); }
47 inline CreateSlackChannelConfigurationRequest& WithSlackTeamId(Aws::String&& value) { SetSlackTeamId(std::move(value)); return *this;}
48 inline CreateSlackChannelConfigurationRequest& WithSlackTeamId(const char* value) { SetSlackTeamId(value); return *this;}
50
52
57 inline const Aws::String& GetSlackChannelId() const{ return m_slackChannelId; }
58 inline bool SlackChannelIdHasBeenSet() const { return m_slackChannelIdHasBeenSet; }
59 inline void SetSlackChannelId(const Aws::String& value) { m_slackChannelIdHasBeenSet = true; m_slackChannelId = value; }
60 inline void SetSlackChannelId(Aws::String&& value) { m_slackChannelIdHasBeenSet = true; m_slackChannelId = std::move(value); }
61 inline void SetSlackChannelId(const char* value) { m_slackChannelIdHasBeenSet = true; m_slackChannelId.assign(value); }
64 inline CreateSlackChannelConfigurationRequest& WithSlackChannelId(const char* value) { SetSlackChannelId(value); return *this;}
66
68
71 inline const Aws::String& GetSlackChannelName() const{ return m_slackChannelName; }
72 inline bool SlackChannelNameHasBeenSet() const { return m_slackChannelNameHasBeenSet; }
73 inline void SetSlackChannelName(const Aws::String& value) { m_slackChannelNameHasBeenSet = true; m_slackChannelName = value; }
74 inline void SetSlackChannelName(Aws::String&& value) { m_slackChannelNameHasBeenSet = true; m_slackChannelName = std::move(value); }
75 inline void SetSlackChannelName(const char* value) { m_slackChannelNameHasBeenSet = true; m_slackChannelName.assign(value); }
78 inline CreateSlackChannelConfigurationRequest& WithSlackChannelName(const char* value) { SetSlackChannelName(value); return *this;}
80
82
86 inline const Aws::Vector<Aws::String>& GetSnsTopicArns() const{ return m_snsTopicArns; }
87 inline bool SnsTopicArnsHasBeenSet() const { return m_snsTopicArnsHasBeenSet; }
88 inline void SetSnsTopicArns(const Aws::Vector<Aws::String>& value) { m_snsTopicArnsHasBeenSet = true; m_snsTopicArns = value; }
89 inline void SetSnsTopicArns(Aws::Vector<Aws::String>&& value) { m_snsTopicArnsHasBeenSet = true; m_snsTopicArns = std::move(value); }
92 inline CreateSlackChannelConfigurationRequest& AddSnsTopicArns(const Aws::String& value) { m_snsTopicArnsHasBeenSet = true; m_snsTopicArns.push_back(value); return *this; }
93 inline CreateSlackChannelConfigurationRequest& AddSnsTopicArns(Aws::String&& value) { m_snsTopicArnsHasBeenSet = true; m_snsTopicArns.push_back(std::move(value)); return *this; }
94 inline CreateSlackChannelConfigurationRequest& AddSnsTopicArns(const char* value) { m_snsTopicArnsHasBeenSet = true; m_snsTopicArns.push_back(value); return *this; }
96
98
105 inline const Aws::String& GetIamRoleArn() const{ return m_iamRoleArn; }
106 inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
107 inline void SetIamRoleArn(const Aws::String& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = value; }
108 inline void SetIamRoleArn(Aws::String&& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = std::move(value); }
109 inline void SetIamRoleArn(const char* value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn.assign(value); }
111 inline CreateSlackChannelConfigurationRequest& WithIamRoleArn(Aws::String&& value) { SetIamRoleArn(std::move(value)); return *this;}
112 inline CreateSlackChannelConfigurationRequest& WithIamRoleArn(const char* value) { SetIamRoleArn(value); return *this;}
114
116
119 inline const Aws::String& GetConfigurationName() const{ return m_configurationName; }
120 inline bool ConfigurationNameHasBeenSet() const { return m_configurationNameHasBeenSet; }
121 inline void SetConfigurationName(const Aws::String& value) { m_configurationNameHasBeenSet = true; m_configurationName = value; }
122 inline void SetConfigurationName(Aws::String&& value) { m_configurationNameHasBeenSet = true; m_configurationName = std::move(value); }
123 inline void SetConfigurationName(const char* value) { m_configurationNameHasBeenSet = true; m_configurationName.assign(value); }
128
130
134 inline const Aws::String& GetLoggingLevel() const{ return m_loggingLevel; }
135 inline bool LoggingLevelHasBeenSet() const { return m_loggingLevelHasBeenSet; }
136 inline void SetLoggingLevel(const Aws::String& value) { m_loggingLevelHasBeenSet = true; m_loggingLevel = value; }
137 inline void SetLoggingLevel(Aws::String&& value) { m_loggingLevelHasBeenSet = true; m_loggingLevel = std::move(value); }
138 inline void SetLoggingLevel(const char* value) { m_loggingLevelHasBeenSet = true; m_loggingLevel.assign(value); }
140 inline CreateSlackChannelConfigurationRequest& WithLoggingLevel(Aws::String&& value) { SetLoggingLevel(std::move(value)); return *this;}
141 inline CreateSlackChannelConfigurationRequest& WithLoggingLevel(const char* value) { SetLoggingLevel(value); return *this;}
143
145
150 inline const Aws::Vector<Aws::String>& GetGuardrailPolicyArns() const{ return m_guardrailPolicyArns; }
151 inline bool GuardrailPolicyArnsHasBeenSet() const { return m_guardrailPolicyArnsHasBeenSet; }
152 inline void SetGuardrailPolicyArns(const Aws::Vector<Aws::String>& value) { m_guardrailPolicyArnsHasBeenSet = true; m_guardrailPolicyArns = value; }
153 inline void SetGuardrailPolicyArns(Aws::Vector<Aws::String>&& value) { m_guardrailPolicyArnsHasBeenSet = true; m_guardrailPolicyArns = std::move(value); }
156 inline CreateSlackChannelConfigurationRequest& AddGuardrailPolicyArns(const Aws::String& value) { m_guardrailPolicyArnsHasBeenSet = true; m_guardrailPolicyArns.push_back(value); return *this; }
157 inline CreateSlackChannelConfigurationRequest& AddGuardrailPolicyArns(Aws::String&& value) { m_guardrailPolicyArnsHasBeenSet = true; m_guardrailPolicyArns.push_back(std::move(value)); return *this; }
158 inline CreateSlackChannelConfigurationRequest& AddGuardrailPolicyArns(const char* value) { m_guardrailPolicyArnsHasBeenSet = true; m_guardrailPolicyArns.push_back(value); return *this; }
160
162
165 inline bool GetUserAuthorizationRequired() const{ return m_userAuthorizationRequired; }
166 inline bool UserAuthorizationRequiredHasBeenSet() const { return m_userAuthorizationRequiredHasBeenSet; }
167 inline void SetUserAuthorizationRequired(bool value) { m_userAuthorizationRequiredHasBeenSet = true; m_userAuthorizationRequired = value; }
170
172
176 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
177 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
178 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
179 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
180 inline CreateSlackChannelConfigurationRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
181 inline CreateSlackChannelConfigurationRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
182 inline CreateSlackChannelConfigurationRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
183 inline CreateSlackChannelConfigurationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
185 private:
186
187 Aws::String m_slackTeamId;
188 bool m_slackTeamIdHasBeenSet = false;
189
190 Aws::String m_slackChannelId;
191 bool m_slackChannelIdHasBeenSet = false;
192
193 Aws::String m_slackChannelName;
194 bool m_slackChannelNameHasBeenSet = false;
195
196 Aws::Vector<Aws::String> m_snsTopicArns;
197 bool m_snsTopicArnsHasBeenSet = false;
198
199 Aws::String m_iamRoleArn;
200 bool m_iamRoleArnHasBeenSet = false;
201
202 Aws::String m_configurationName;
203 bool m_configurationNameHasBeenSet = false;
204
205 Aws::String m_loggingLevel;
206 bool m_loggingLevelHasBeenSet = false;
207
208 Aws::Vector<Aws::String> m_guardrailPolicyArns;
209 bool m_guardrailPolicyArnsHasBeenSet = false;
210
211 bool m_userAuthorizationRequired;
212 bool m_userAuthorizationRequiredHasBeenSet = false;
213
214 Aws::Vector<Tag> m_tags;
215 bool m_tagsHasBeenSet = false;
216 };
217
218} // namespace Model
219} // namespace chatbot
220} // namespace Aws
CreateSlackChannelConfigurationRequest & WithTags(const Aws::Vector< Tag > &value)
CreateSlackChannelConfigurationRequest & WithTags(Aws::Vector< Tag > &&value)
CreateSlackChannelConfigurationRequest & WithLoggingLevel(const char *value)
CreateSlackChannelConfigurationRequest & WithSlackTeamId(const char *value)
CreateSlackChannelConfigurationRequest & WithSnsTopicArns(Aws::Vector< Aws::String > &&value)
CreateSlackChannelConfigurationRequest & AddGuardrailPolicyArns(const Aws::String &value)
AWS_CHATBOT_API Aws::String SerializePayload() const override
CreateSlackChannelConfigurationRequest & WithSlackTeamId(Aws::String &&value)
CreateSlackChannelConfigurationRequest & AddGuardrailPolicyArns(Aws::String &&value)
CreateSlackChannelConfigurationRequest & WithSlackTeamId(const Aws::String &value)
CreateSlackChannelConfigurationRequest & WithIamRoleArn(Aws::String &&value)
CreateSlackChannelConfigurationRequest & WithConfigurationName(const Aws::String &value)
CreateSlackChannelConfigurationRequest & WithGuardrailPolicyArns(const Aws::Vector< Aws::String > &value)
CreateSlackChannelConfigurationRequest & WithSlackChannelId(const Aws::String &value)
CreateSlackChannelConfigurationRequest & WithSlackChannelName(const char *value)
CreateSlackChannelConfigurationRequest & WithSlackChannelName(Aws::String &&value)
CreateSlackChannelConfigurationRequest & AddTags(const Tag &value)
CreateSlackChannelConfigurationRequest & WithLoggingLevel(Aws::String &&value)
CreateSlackChannelConfigurationRequest & WithSnsTopicArns(const Aws::Vector< Aws::String > &value)
CreateSlackChannelConfigurationRequest & WithIamRoleArn(const char *value)
CreateSlackChannelConfigurationRequest & WithSlackChannelName(const Aws::String &value)
CreateSlackChannelConfigurationRequest & WithIamRoleArn(const Aws::String &value)
CreateSlackChannelConfigurationRequest & AddSnsTopicArns(Aws::String &&value)
CreateSlackChannelConfigurationRequest & WithGuardrailPolicyArns(Aws::Vector< Aws::String > &&value)
CreateSlackChannelConfigurationRequest & WithSlackChannelId(Aws::String &&value)
CreateSlackChannelConfigurationRequest & WithConfigurationName(Aws::String &&value)
CreateSlackChannelConfigurationRequest & WithLoggingLevel(const Aws::String &value)
CreateSlackChannelConfigurationRequest & WithSlackChannelId(const char *value)
CreateSlackChannelConfigurationRequest & AddSnsTopicArns(const Aws::String &value)
CreateSlackChannelConfigurationRequest & AddGuardrailPolicyArns(const char *value)
CreateSlackChannelConfigurationRequest & WithUserAuthorizationRequired(bool value)
CreateSlackChannelConfigurationRequest & WithConfigurationName(const char *value)
CreateSlackChannelConfigurationRequest & AddSnsTopicArns(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector