AWS SDK for C++

AWS SDK for C++ Version 1.11.684

Loading...
Searching...
No Matches
CreateChimeWebhookConfigurationRequest.h
1
6#pragma once
7#include <aws/chatbot/ChatbotRequest.h>
8#include <aws/chatbot/Chatbot_EXPORTS.h>
9#include <aws/chatbot/model/Tag.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace chatbot {
17namespace Model {
18
22 public:
23 AWS_CHATBOT_API CreateChimeWebhookConfigurationRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateChimeWebhookConfiguration"; }
30
31 AWS_CHATBOT_API Aws::String SerializePayload() const override;
32
34
41 inline const Aws::String& GetWebhookDescription() const { return m_webhookDescription; }
42 inline bool WebhookDescriptionHasBeenSet() const { return m_webhookDescriptionHasBeenSet; }
43 template <typename WebhookDescriptionT = Aws::String>
44 void SetWebhookDescription(WebhookDescriptionT&& value) {
45 m_webhookDescriptionHasBeenSet = true;
46 m_webhookDescription = std::forward<WebhookDescriptionT>(value);
47 }
48 template <typename WebhookDescriptionT = Aws::String>
50 SetWebhookDescription(std::forward<WebhookDescriptionT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetWebhookUrl() const { return m_webhookUrl; }
60 inline bool WebhookUrlHasBeenSet() const { return m_webhookUrlHasBeenSet; }
61 template <typename WebhookUrlT = Aws::String>
62 void SetWebhookUrl(WebhookUrlT&& value) {
63 m_webhookUrlHasBeenSet = true;
64 m_webhookUrl = std::forward<WebhookUrlT>(value);
65 }
66 template <typename WebhookUrlT = Aws::String>
68 SetWebhookUrl(std::forward<WebhookUrlT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::Vector<Aws::String>& GetSnsTopicArns() const { return m_snsTopicArns; }
79 inline bool SnsTopicArnsHasBeenSet() const { return m_snsTopicArnsHasBeenSet; }
80 template <typename SnsTopicArnsT = Aws::Vector<Aws::String>>
81 void SetSnsTopicArns(SnsTopicArnsT&& value) {
82 m_snsTopicArnsHasBeenSet = true;
83 m_snsTopicArns = std::forward<SnsTopicArnsT>(value);
84 }
85 template <typename SnsTopicArnsT = Aws::Vector<Aws::String>>
87 SetSnsTopicArns(std::forward<SnsTopicArnsT>(value));
88 return *this;
89 }
90 template <typename SnsTopicArnsT = Aws::String>
92 m_snsTopicArnsHasBeenSet = true;
93 m_snsTopicArns.emplace_back(std::forward<SnsTopicArnsT>(value));
94 return *this;
95 }
97
99
106 inline const Aws::String& GetIamRoleArn() const { return m_iamRoleArn; }
107 inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
108 template <typename IamRoleArnT = Aws::String>
109 void SetIamRoleArn(IamRoleArnT&& value) {
110 m_iamRoleArnHasBeenSet = true;
111 m_iamRoleArn = std::forward<IamRoleArnT>(value);
112 }
113 template <typename IamRoleArnT = Aws::String>
115 SetIamRoleArn(std::forward<IamRoleArnT>(value));
116 return *this;
117 }
119
121
124 inline const Aws::String& GetConfigurationName() const { return m_configurationName; }
125 inline bool ConfigurationNameHasBeenSet() const { return m_configurationNameHasBeenSet; }
126 template <typename ConfigurationNameT = Aws::String>
127 void SetConfigurationName(ConfigurationNameT&& value) {
128 m_configurationNameHasBeenSet = true;
129 m_configurationName = std::forward<ConfigurationNameT>(value);
130 }
131 template <typename ConfigurationNameT = Aws::String>
133 SetConfigurationName(std::forward<ConfigurationNameT>(value));
134 return *this;
135 }
137
139
143 inline const Aws::String& GetLoggingLevel() const { return m_loggingLevel; }
144 inline bool LoggingLevelHasBeenSet() const { return m_loggingLevelHasBeenSet; }
145 template <typename LoggingLevelT = Aws::String>
146 void SetLoggingLevel(LoggingLevelT&& value) {
147 m_loggingLevelHasBeenSet = true;
148 m_loggingLevel = std::forward<LoggingLevelT>(value);
149 }
150 template <typename LoggingLevelT = Aws::String>
152 SetLoggingLevel(std::forward<LoggingLevelT>(value));
153 return *this;
154 }
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) {
166 m_tagsHasBeenSet = true;
167 m_tags = std::forward<TagsT>(value);
168 }
169 template <typename TagsT = Aws::Vector<Tag>>
171 SetTags(std::forward<TagsT>(value));
172 return *this;
173 }
174 template <typename TagsT = Tag>
176 m_tagsHasBeenSet = true;
177 m_tags.emplace_back(std::forward<TagsT>(value));
178 return *this;
179 }
181 private:
182 Aws::String m_webhookDescription;
183 bool m_webhookDescriptionHasBeenSet = false;
184
185 Aws::String m_webhookUrl;
186 bool m_webhookUrlHasBeenSet = false;
187
188 Aws::Vector<Aws::String> m_snsTopicArns;
189 bool m_snsTopicArnsHasBeenSet = false;
190
191 Aws::String m_iamRoleArn;
192 bool m_iamRoleArnHasBeenSet = false;
193
194 Aws::String m_configurationName;
195 bool m_configurationNameHasBeenSet = false;
196
197 Aws::String m_loggingLevel;
198 bool m_loggingLevelHasBeenSet = false;
199
200 Aws::Vector<Tag> m_tags;
201 bool m_tagsHasBeenSet = false;
202};
203
204} // namespace Model
205} // namespace chatbot
206} // namespace Aws
CreateChimeWebhookConfigurationRequest & WithWebhookUrl(WebhookUrlT &&value)
AWS_CHATBOT_API Aws::String SerializePayload() const override
CreateChimeWebhookConfigurationRequest & WithSnsTopicArns(SnsTopicArnsT &&value)
CreateChimeWebhookConfigurationRequest & WithConfigurationName(ConfigurationNameT &&value)
CreateChimeWebhookConfigurationRequest & AddSnsTopicArns(SnsTopicArnsT &&value)
CreateChimeWebhookConfigurationRequest & WithLoggingLevel(LoggingLevelT &&value)
CreateChimeWebhookConfigurationRequest & WithWebhookDescription(WebhookDescriptionT &&value)
CreateChimeWebhookConfigurationRequest & WithIamRoleArn(IamRoleArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector