AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateChimeWebhookConfigurationRequest.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 CreateChimeWebhookConfigurationRequest() = 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 "CreateChimeWebhookConfiguration"; }
33
34 AWS_CHATBOT_API Aws::String SerializePayload() const override;
35
36
38
45 inline const Aws::String& GetWebhookDescription() const { return m_webhookDescription; }
46 inline bool WebhookDescriptionHasBeenSet() const { return m_webhookDescriptionHasBeenSet; }
47 template<typename WebhookDescriptionT = Aws::String>
48 void SetWebhookDescription(WebhookDescriptionT&& value) { m_webhookDescriptionHasBeenSet = true; m_webhookDescription = std::forward<WebhookDescriptionT>(value); }
49 template<typename WebhookDescriptionT = Aws::String>
50 CreateChimeWebhookConfigurationRequest& WithWebhookDescription(WebhookDescriptionT&& value) { SetWebhookDescription(std::forward<WebhookDescriptionT>(value)); return *this;}
52
54
57 inline const Aws::String& GetWebhookUrl() const { return m_webhookUrl; }
58 inline bool WebhookUrlHasBeenSet() const { return m_webhookUrlHasBeenSet; }
59 template<typename WebhookUrlT = Aws::String>
60 void SetWebhookUrl(WebhookUrlT&& value) { m_webhookUrlHasBeenSet = true; m_webhookUrl = std::forward<WebhookUrlT>(value); }
61 template<typename WebhookUrlT = Aws::String>
62 CreateChimeWebhookConfigurationRequest& WithWebhookUrl(WebhookUrlT&& value) { SetWebhookUrl(std::forward<WebhookUrlT>(value)); return *this;}
64
66
70 inline const Aws::Vector<Aws::String>& GetSnsTopicArns() const { return m_snsTopicArns; }
71 inline bool SnsTopicArnsHasBeenSet() const { return m_snsTopicArnsHasBeenSet; }
72 template<typename SnsTopicArnsT = Aws::Vector<Aws::String>>
73 void SetSnsTopicArns(SnsTopicArnsT&& value) { m_snsTopicArnsHasBeenSet = true; m_snsTopicArns = std::forward<SnsTopicArnsT>(value); }
74 template<typename SnsTopicArnsT = Aws::Vector<Aws::String>>
75 CreateChimeWebhookConfigurationRequest& WithSnsTopicArns(SnsTopicArnsT&& value) { SetSnsTopicArns(std::forward<SnsTopicArnsT>(value)); return *this;}
76 template<typename SnsTopicArnsT = Aws::String>
77 CreateChimeWebhookConfigurationRequest& AddSnsTopicArns(SnsTopicArnsT&& value) { m_snsTopicArnsHasBeenSet = true; m_snsTopicArns.emplace_back(std::forward<SnsTopicArnsT>(value)); return *this; }
79
81
88 inline const Aws::String& GetIamRoleArn() const { return m_iamRoleArn; }
89 inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
90 template<typename IamRoleArnT = Aws::String>
91 void SetIamRoleArn(IamRoleArnT&& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = std::forward<IamRoleArnT>(value); }
92 template<typename IamRoleArnT = Aws::String>
93 CreateChimeWebhookConfigurationRequest& WithIamRoleArn(IamRoleArnT&& value) { SetIamRoleArn(std::forward<IamRoleArnT>(value)); return *this;}
95
97
100 inline const Aws::String& GetConfigurationName() const { return m_configurationName; }
101 inline bool ConfigurationNameHasBeenSet() const { return m_configurationNameHasBeenSet; }
102 template<typename ConfigurationNameT = Aws::String>
103 void SetConfigurationName(ConfigurationNameT&& value) { m_configurationNameHasBeenSet = true; m_configurationName = std::forward<ConfigurationNameT>(value); }
104 template<typename ConfigurationNameT = Aws::String>
105 CreateChimeWebhookConfigurationRequest& WithConfigurationName(ConfigurationNameT&& value) { SetConfigurationName(std::forward<ConfigurationNameT>(value)); return *this;}
107
109
113 inline const Aws::String& GetLoggingLevel() const { return m_loggingLevel; }
114 inline bool LoggingLevelHasBeenSet() const { return m_loggingLevelHasBeenSet; }
115 template<typename LoggingLevelT = Aws::String>
116 void SetLoggingLevel(LoggingLevelT&& value) { m_loggingLevelHasBeenSet = true; m_loggingLevel = std::forward<LoggingLevelT>(value); }
117 template<typename LoggingLevelT = Aws::String>
118 CreateChimeWebhookConfigurationRequest& WithLoggingLevel(LoggingLevelT&& value) { SetLoggingLevel(std::forward<LoggingLevelT>(value)); return *this;}
120
122
126 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
127 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
128 template<typename TagsT = Aws::Vector<Tag>>
129 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
130 template<typename TagsT = Aws::Vector<Tag>>
131 CreateChimeWebhookConfigurationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
132 template<typename TagsT = Tag>
133 CreateChimeWebhookConfigurationRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
135 private:
136
137 Aws::String m_webhookDescription;
138 bool m_webhookDescriptionHasBeenSet = false;
139
140 Aws::String m_webhookUrl;
141 bool m_webhookUrlHasBeenSet = false;
142
143 Aws::Vector<Aws::String> m_snsTopicArns;
144 bool m_snsTopicArnsHasBeenSet = false;
145
146 Aws::String m_iamRoleArn;
147 bool m_iamRoleArnHasBeenSet = false;
148
149 Aws::String m_configurationName;
150 bool m_configurationNameHasBeenSet = false;
151
152 Aws::String m_loggingLevel;
153 bool m_loggingLevelHasBeenSet = false;
154
155 Aws::Vector<Tag> m_tags;
156 bool m_tagsHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace chatbot
161} // 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