AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ChimeWebhookConfiguration.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
34 {
35 public:
36 AWS_CHATBOT_API ChimeWebhookConfiguration() = default;
39 AWS_CHATBOT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
50 inline const Aws::String& GetWebhookDescription() const { return m_webhookDescription; }
51 inline bool WebhookDescriptionHasBeenSet() const { return m_webhookDescriptionHasBeenSet; }
52 template<typename WebhookDescriptionT = Aws::String>
53 void SetWebhookDescription(WebhookDescriptionT&& value) { m_webhookDescriptionHasBeenSet = true; m_webhookDescription = std::forward<WebhookDescriptionT>(value); }
54 template<typename WebhookDescriptionT = Aws::String>
55 ChimeWebhookConfiguration& WithWebhookDescription(WebhookDescriptionT&& value) { SetWebhookDescription(std::forward<WebhookDescriptionT>(value)); return *this;}
57
59
62 inline const Aws::String& GetChatConfigurationArn() const { return m_chatConfigurationArn; }
63 inline bool ChatConfigurationArnHasBeenSet() const { return m_chatConfigurationArnHasBeenSet; }
64 template<typename ChatConfigurationArnT = Aws::String>
65 void SetChatConfigurationArn(ChatConfigurationArnT&& value) { m_chatConfigurationArnHasBeenSet = true; m_chatConfigurationArn = std::forward<ChatConfigurationArnT>(value); }
66 template<typename ChatConfigurationArnT = Aws::String>
67 ChimeWebhookConfiguration& WithChatConfigurationArn(ChatConfigurationArnT&& value) { SetChatConfigurationArn(std::forward<ChatConfigurationArnT>(value)); return *this;}
69
71
78 inline const Aws::String& GetIamRoleArn() const { return m_iamRoleArn; }
79 inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
80 template<typename IamRoleArnT = Aws::String>
81 void SetIamRoleArn(IamRoleArnT&& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = std::forward<IamRoleArnT>(value); }
82 template<typename IamRoleArnT = Aws::String>
83 ChimeWebhookConfiguration& WithIamRoleArn(IamRoleArnT&& value) { SetIamRoleArn(std::forward<IamRoleArnT>(value)); return *this;}
85
87
91 inline const Aws::Vector<Aws::String>& GetSnsTopicArns() const { return m_snsTopicArns; }
92 inline bool SnsTopicArnsHasBeenSet() const { return m_snsTopicArnsHasBeenSet; }
93 template<typename SnsTopicArnsT = Aws::Vector<Aws::String>>
94 void SetSnsTopicArns(SnsTopicArnsT&& value) { m_snsTopicArnsHasBeenSet = true; m_snsTopicArns = std::forward<SnsTopicArnsT>(value); }
95 template<typename SnsTopicArnsT = Aws::Vector<Aws::String>>
96 ChimeWebhookConfiguration& WithSnsTopicArns(SnsTopicArnsT&& value) { SetSnsTopicArns(std::forward<SnsTopicArnsT>(value)); return *this;}
97 template<typename SnsTopicArnsT = Aws::String>
98 ChimeWebhookConfiguration& AddSnsTopicArns(SnsTopicArnsT&& value) { m_snsTopicArnsHasBeenSet = true; m_snsTopicArns.emplace_back(std::forward<SnsTopicArnsT>(value)); return *this; }
100
102
105 inline const Aws::String& GetConfigurationName() const { return m_configurationName; }
106 inline bool ConfigurationNameHasBeenSet() const { return m_configurationNameHasBeenSet; }
107 template<typename ConfigurationNameT = Aws::String>
108 void SetConfigurationName(ConfigurationNameT&& value) { m_configurationNameHasBeenSet = true; m_configurationName = std::forward<ConfigurationNameT>(value); }
109 template<typename ConfigurationNameT = Aws::String>
110 ChimeWebhookConfiguration& WithConfigurationName(ConfigurationNameT&& value) { SetConfigurationName(std::forward<ConfigurationNameT>(value)); return *this;}
112
114
118 inline const Aws::String& GetLoggingLevel() const { return m_loggingLevel; }
119 inline bool LoggingLevelHasBeenSet() const { return m_loggingLevelHasBeenSet; }
120 template<typename LoggingLevelT = Aws::String>
121 void SetLoggingLevel(LoggingLevelT&& value) { m_loggingLevelHasBeenSet = true; m_loggingLevel = std::forward<LoggingLevelT>(value); }
122 template<typename LoggingLevelT = Aws::String>
123 ChimeWebhookConfiguration& WithLoggingLevel(LoggingLevelT&& value) { SetLoggingLevel(std::forward<LoggingLevelT>(value)); return *this;}
125
127
131 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
132 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
133 template<typename TagsT = Aws::Vector<Tag>>
134 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
135 template<typename TagsT = Aws::Vector<Tag>>
136 ChimeWebhookConfiguration& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
137 template<typename TagsT = Tag>
138 ChimeWebhookConfiguration& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
140
142
147 inline const Aws::String& GetState() const { return m_state; }
148 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
149 template<typename StateT = Aws::String>
150 void SetState(StateT&& value) { m_stateHasBeenSet = true; m_state = std::forward<StateT>(value); }
151 template<typename StateT = Aws::String>
152 ChimeWebhookConfiguration& WithState(StateT&& value) { SetState(std::forward<StateT>(value)); return *this;}
154
156
160 inline const Aws::String& GetStateReason() const { return m_stateReason; }
161 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
162 template<typename StateReasonT = Aws::String>
163 void SetStateReason(StateReasonT&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::forward<StateReasonT>(value); }
164 template<typename StateReasonT = Aws::String>
165 ChimeWebhookConfiguration& WithStateReason(StateReasonT&& value) { SetStateReason(std::forward<StateReasonT>(value)); return *this;}
167 private:
168
169 Aws::String m_webhookDescription;
170 bool m_webhookDescriptionHasBeenSet = false;
171
172 Aws::String m_chatConfigurationArn;
173 bool m_chatConfigurationArnHasBeenSet = false;
174
175 Aws::String m_iamRoleArn;
176 bool m_iamRoleArnHasBeenSet = false;
177
178 Aws::Vector<Aws::String> m_snsTopicArns;
179 bool m_snsTopicArnsHasBeenSet = false;
180
181 Aws::String m_configurationName;
182 bool m_configurationNameHasBeenSet = false;
183
184 Aws::String m_loggingLevel;
185 bool m_loggingLevelHasBeenSet = false;
186
187 Aws::Vector<Tag> m_tags;
188 bool m_tagsHasBeenSet = false;
189
190 Aws::String m_state;
191 bool m_stateHasBeenSet = false;
192
193 Aws::String m_stateReason;
194 bool m_stateReasonHasBeenSet = false;
195 };
196
197} // namespace Model
198} // namespace chatbot
199} // namespace Aws
ChimeWebhookConfiguration & WithStateReason(StateReasonT &&value)
ChimeWebhookConfiguration & WithSnsTopicArns(SnsTopicArnsT &&value)
AWS_CHATBOT_API ChimeWebhookConfiguration()=default
ChimeWebhookConfiguration & WithTags(TagsT &&value)
ChimeWebhookConfiguration & WithIamRoleArn(IamRoleArnT &&value)
ChimeWebhookConfiguration & AddTags(TagsT &&value)
ChimeWebhookConfiguration & WithWebhookDescription(WebhookDescriptionT &&value)
const Aws::Vector< Aws::String > & GetSnsTopicArns() const
ChimeWebhookConfiguration & WithState(StateT &&value)
AWS_CHATBOT_API ChimeWebhookConfiguration(Aws::Utils::Json::JsonView jsonValue)
ChimeWebhookConfiguration & WithConfigurationName(ConfigurationNameT &&value)
ChimeWebhookConfiguration & WithChatConfigurationArn(ChatConfigurationArnT &&value)
ChimeWebhookConfiguration & WithLoggingLevel(LoggingLevelT &&value)
AWS_CHATBOT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetChatConfigurationArn(ChatConfigurationArnT &&value)
AWS_CHATBOT_API ChimeWebhookConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetWebhookDescription(WebhookDescriptionT &&value)
ChimeWebhookConfiguration & AddSnsTopicArns(SnsTopicArnsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue