AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
26 AWS_CHATBOT_API CreateSlackChannelConfigurationRequest() = default;
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 template<typename SlackTeamIdT = Aws::String>
44 void SetSlackTeamId(SlackTeamIdT&& value) { m_slackTeamIdHasBeenSet = true; m_slackTeamId = std::forward<SlackTeamIdT>(value); }
45 template<typename SlackTeamIdT = Aws::String>
46 CreateSlackChannelConfigurationRequest& WithSlackTeamId(SlackTeamIdT&& value) { SetSlackTeamId(std::forward<SlackTeamIdT>(value)); return *this;}
48
50
55 inline const Aws::String& GetSlackChannelId() const { return m_slackChannelId; }
56 inline bool SlackChannelIdHasBeenSet() const { return m_slackChannelIdHasBeenSet; }
57 template<typename SlackChannelIdT = Aws::String>
58 void SetSlackChannelId(SlackChannelIdT&& value) { m_slackChannelIdHasBeenSet = true; m_slackChannelId = std::forward<SlackChannelIdT>(value); }
59 template<typename SlackChannelIdT = Aws::String>
60 CreateSlackChannelConfigurationRequest& WithSlackChannelId(SlackChannelIdT&& value) { SetSlackChannelId(std::forward<SlackChannelIdT>(value)); return *this;}
62
64
67 inline const Aws::String& GetSlackChannelName() const { return m_slackChannelName; }
68 inline bool SlackChannelNameHasBeenSet() const { return m_slackChannelNameHasBeenSet; }
69 template<typename SlackChannelNameT = Aws::String>
70 void SetSlackChannelName(SlackChannelNameT&& value) { m_slackChannelNameHasBeenSet = true; m_slackChannelName = std::forward<SlackChannelNameT>(value); }
71 template<typename SlackChannelNameT = Aws::String>
72 CreateSlackChannelConfigurationRequest& WithSlackChannelName(SlackChannelNameT&& value) { SetSlackChannelName(std::forward<SlackChannelNameT>(value)); return *this;}
74
76
80 inline const Aws::Vector<Aws::String>& GetSnsTopicArns() const { return m_snsTopicArns; }
81 inline bool SnsTopicArnsHasBeenSet() const { return m_snsTopicArnsHasBeenSet; }
82 template<typename SnsTopicArnsT = Aws::Vector<Aws::String>>
83 void SetSnsTopicArns(SnsTopicArnsT&& value) { m_snsTopicArnsHasBeenSet = true; m_snsTopicArns = std::forward<SnsTopicArnsT>(value); }
84 template<typename SnsTopicArnsT = Aws::Vector<Aws::String>>
85 CreateSlackChannelConfigurationRequest& WithSnsTopicArns(SnsTopicArnsT&& value) { SetSnsTopicArns(std::forward<SnsTopicArnsT>(value)); return *this;}
86 template<typename SnsTopicArnsT = Aws::String>
87 CreateSlackChannelConfigurationRequest& AddSnsTopicArns(SnsTopicArnsT&& value) { m_snsTopicArnsHasBeenSet = true; m_snsTopicArns.emplace_back(std::forward<SnsTopicArnsT>(value)); return *this; }
89
91
98 inline const Aws::String& GetIamRoleArn() const { return m_iamRoleArn; }
99 inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
100 template<typename IamRoleArnT = Aws::String>
101 void SetIamRoleArn(IamRoleArnT&& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = std::forward<IamRoleArnT>(value); }
102 template<typename IamRoleArnT = Aws::String>
103 CreateSlackChannelConfigurationRequest& WithIamRoleArn(IamRoleArnT&& value) { SetIamRoleArn(std::forward<IamRoleArnT>(value)); return *this;}
105
107
110 inline const Aws::String& GetConfigurationName() const { return m_configurationName; }
111 inline bool ConfigurationNameHasBeenSet() const { return m_configurationNameHasBeenSet; }
112 template<typename ConfigurationNameT = Aws::String>
113 void SetConfigurationName(ConfigurationNameT&& value) { m_configurationNameHasBeenSet = true; m_configurationName = std::forward<ConfigurationNameT>(value); }
114 template<typename ConfigurationNameT = Aws::String>
115 CreateSlackChannelConfigurationRequest& WithConfigurationName(ConfigurationNameT&& value) { SetConfigurationName(std::forward<ConfigurationNameT>(value)); return *this;}
117
119
123 inline const Aws::String& GetLoggingLevel() const { return m_loggingLevel; }
124 inline bool LoggingLevelHasBeenSet() const { return m_loggingLevelHasBeenSet; }
125 template<typename LoggingLevelT = Aws::String>
126 void SetLoggingLevel(LoggingLevelT&& value) { m_loggingLevelHasBeenSet = true; m_loggingLevel = std::forward<LoggingLevelT>(value); }
127 template<typename LoggingLevelT = Aws::String>
128 CreateSlackChannelConfigurationRequest& WithLoggingLevel(LoggingLevelT&& value) { SetLoggingLevel(std::forward<LoggingLevelT>(value)); return *this;}
130
132
137 inline const Aws::Vector<Aws::String>& GetGuardrailPolicyArns() const { return m_guardrailPolicyArns; }
138 inline bool GuardrailPolicyArnsHasBeenSet() const { return m_guardrailPolicyArnsHasBeenSet; }
139 template<typename GuardrailPolicyArnsT = Aws::Vector<Aws::String>>
140 void SetGuardrailPolicyArns(GuardrailPolicyArnsT&& value) { m_guardrailPolicyArnsHasBeenSet = true; m_guardrailPolicyArns = std::forward<GuardrailPolicyArnsT>(value); }
141 template<typename GuardrailPolicyArnsT = Aws::Vector<Aws::String>>
142 CreateSlackChannelConfigurationRequest& WithGuardrailPolicyArns(GuardrailPolicyArnsT&& value) { SetGuardrailPolicyArns(std::forward<GuardrailPolicyArnsT>(value)); return *this;}
143 template<typename GuardrailPolicyArnsT = Aws::String>
144 CreateSlackChannelConfigurationRequest& AddGuardrailPolicyArns(GuardrailPolicyArnsT&& value) { m_guardrailPolicyArnsHasBeenSet = true; m_guardrailPolicyArns.emplace_back(std::forward<GuardrailPolicyArnsT>(value)); return *this; }
146
148
151 inline bool GetUserAuthorizationRequired() const { return m_userAuthorizationRequired; }
152 inline bool UserAuthorizationRequiredHasBeenSet() const { return m_userAuthorizationRequiredHasBeenSet; }
153 inline void SetUserAuthorizationRequired(bool value) { m_userAuthorizationRequiredHasBeenSet = true; m_userAuthorizationRequired = value; }
156
158
162 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
163 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
164 template<typename TagsT = Aws::Vector<Tag>>
165 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
166 template<typename TagsT = Aws::Vector<Tag>>
167 CreateSlackChannelConfigurationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
168 template<typename TagsT = Tag>
169 CreateSlackChannelConfigurationRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
171 private:
172
173 Aws::String m_slackTeamId;
174 bool m_slackTeamIdHasBeenSet = false;
175
176 Aws::String m_slackChannelId;
177 bool m_slackChannelIdHasBeenSet = false;
178
179 Aws::String m_slackChannelName;
180 bool m_slackChannelNameHasBeenSet = false;
181
182 Aws::Vector<Aws::String> m_snsTopicArns;
183 bool m_snsTopicArnsHasBeenSet = false;
184
185 Aws::String m_iamRoleArn;
186 bool m_iamRoleArnHasBeenSet = false;
187
188 Aws::String m_configurationName;
189 bool m_configurationNameHasBeenSet = false;
190
191 Aws::String m_loggingLevel;
192 bool m_loggingLevelHasBeenSet = false;
193
194 Aws::Vector<Aws::String> m_guardrailPolicyArns;
195 bool m_guardrailPolicyArnsHasBeenSet = false;
196
197 bool m_userAuthorizationRequired{false};
198 bool m_userAuthorizationRequiredHasBeenSet = false;
199
200 Aws::Vector<Tag> m_tags;
201 bool m_tagsHasBeenSet = false;
202 };
203
204} // namespace Model
205} // namespace chatbot
206} // namespace Aws
CreateSlackChannelConfigurationRequest & AddSnsTopicArns(SnsTopicArnsT &&value)
CreateSlackChannelConfigurationRequest & WithGuardrailPolicyArns(GuardrailPolicyArnsT &&value)
AWS_CHATBOT_API Aws::String SerializePayload() const override
CreateSlackChannelConfigurationRequest & WithSlackChannelId(SlackChannelIdT &&value)
CreateSlackChannelConfigurationRequest & WithSnsTopicArns(SnsTopicArnsT &&value)
CreateSlackChannelConfigurationRequest & WithSlackTeamId(SlackTeamIdT &&value)
CreateSlackChannelConfigurationRequest & WithConfigurationName(ConfigurationNameT &&value)
CreateSlackChannelConfigurationRequest & WithSlackChannelName(SlackChannelNameT &&value)
CreateSlackChannelConfigurationRequest & WithLoggingLevel(LoggingLevelT &&value)
CreateSlackChannelConfigurationRequest & WithIamRoleArn(IamRoleArnT &&value)
CreateSlackChannelConfigurationRequest & AddGuardrailPolicyArns(GuardrailPolicyArnsT &&value)
CreateSlackChannelConfigurationRequest & WithUserAuthorizationRequired(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector