AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateSlackChannelConfigurationRequest.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 <utility>
12
13namespace Aws
14{
15namespace chatbot
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CHATBOT_API UpdateSlackChannelConfigurationRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateSlackChannelConfiguration"; }
32
33 AWS_CHATBOT_API Aws::String SerializePayload() const override;
34
35
37
41 inline const Aws::String& GetChatConfigurationArn() const { return m_chatConfigurationArn; }
42 inline bool ChatConfigurationArnHasBeenSet() const { return m_chatConfigurationArnHasBeenSet; }
43 template<typename ChatConfigurationArnT = Aws::String>
44 void SetChatConfigurationArn(ChatConfigurationArnT&& value) { m_chatConfigurationArnHasBeenSet = true; m_chatConfigurationArn = std::forward<ChatConfigurationArnT>(value); }
45 template<typename ChatConfigurationArnT = Aws::String>
46 UpdateSlackChannelConfigurationRequest& WithChatConfigurationArn(ChatConfigurationArnT&& value) { SetChatConfigurationArn(std::forward<ChatConfigurationArnT>(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 UpdateSlackChannelConfigurationRequest& 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 UpdateSlackChannelConfigurationRequest& 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 UpdateSlackChannelConfigurationRequest& WithSnsTopicArns(SnsTopicArnsT&& value) { SetSnsTopicArns(std::forward<SnsTopicArnsT>(value)); return *this;}
86 template<typename SnsTopicArnsT = Aws::String>
87 UpdateSlackChannelConfigurationRequest& 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 UpdateSlackChannelConfigurationRequest& WithIamRoleArn(IamRoleArnT&& value) { SetIamRoleArn(std::forward<IamRoleArnT>(value)); return *this;}
105
107
111 inline const Aws::String& GetLoggingLevel() const { return m_loggingLevel; }
112 inline bool LoggingLevelHasBeenSet() const { return m_loggingLevelHasBeenSet; }
113 template<typename LoggingLevelT = Aws::String>
114 void SetLoggingLevel(LoggingLevelT&& value) { m_loggingLevelHasBeenSet = true; m_loggingLevel = std::forward<LoggingLevelT>(value); }
115 template<typename LoggingLevelT = Aws::String>
116 UpdateSlackChannelConfigurationRequest& WithLoggingLevel(LoggingLevelT&& value) { SetLoggingLevel(std::forward<LoggingLevelT>(value)); return *this;}
118
120
125 inline const Aws::Vector<Aws::String>& GetGuardrailPolicyArns() const { return m_guardrailPolicyArns; }
126 inline bool GuardrailPolicyArnsHasBeenSet() const { return m_guardrailPolicyArnsHasBeenSet; }
127 template<typename GuardrailPolicyArnsT = Aws::Vector<Aws::String>>
128 void SetGuardrailPolicyArns(GuardrailPolicyArnsT&& value) { m_guardrailPolicyArnsHasBeenSet = true; m_guardrailPolicyArns = std::forward<GuardrailPolicyArnsT>(value); }
129 template<typename GuardrailPolicyArnsT = Aws::Vector<Aws::String>>
130 UpdateSlackChannelConfigurationRequest& WithGuardrailPolicyArns(GuardrailPolicyArnsT&& value) { SetGuardrailPolicyArns(std::forward<GuardrailPolicyArnsT>(value)); return *this;}
131 template<typename GuardrailPolicyArnsT = Aws::String>
132 UpdateSlackChannelConfigurationRequest& AddGuardrailPolicyArns(GuardrailPolicyArnsT&& value) { m_guardrailPolicyArnsHasBeenSet = true; m_guardrailPolicyArns.emplace_back(std::forward<GuardrailPolicyArnsT>(value)); return *this; }
134
136
139 inline bool GetUserAuthorizationRequired() const { return m_userAuthorizationRequired; }
140 inline bool UserAuthorizationRequiredHasBeenSet() const { return m_userAuthorizationRequiredHasBeenSet; }
141 inline void SetUserAuthorizationRequired(bool value) { m_userAuthorizationRequiredHasBeenSet = true; m_userAuthorizationRequired = value; }
144 private:
145
146 Aws::String m_chatConfigurationArn;
147 bool m_chatConfigurationArnHasBeenSet = false;
148
149 Aws::String m_slackChannelId;
150 bool m_slackChannelIdHasBeenSet = false;
151
152 Aws::String m_slackChannelName;
153 bool m_slackChannelNameHasBeenSet = false;
154
155 Aws::Vector<Aws::String> m_snsTopicArns;
156 bool m_snsTopicArnsHasBeenSet = false;
157
158 Aws::String m_iamRoleArn;
159 bool m_iamRoleArnHasBeenSet = false;
160
161 Aws::String m_loggingLevel;
162 bool m_loggingLevelHasBeenSet = false;
163
164 Aws::Vector<Aws::String> m_guardrailPolicyArns;
165 bool m_guardrailPolicyArnsHasBeenSet = false;
166
167 bool m_userAuthorizationRequired{false};
168 bool m_userAuthorizationRequiredHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace chatbot
173} // namespace Aws
UpdateSlackChannelConfigurationRequest & AddSnsTopicArns(SnsTopicArnsT &&value)
UpdateSlackChannelConfigurationRequest & WithIamRoleArn(IamRoleArnT &&value)
UpdateSlackChannelConfigurationRequest & WithSlackChannelId(SlackChannelIdT &&value)
UpdateSlackChannelConfigurationRequest & WithUserAuthorizationRequired(bool value)
UpdateSlackChannelConfigurationRequest & AddGuardrailPolicyArns(GuardrailPolicyArnsT &&value)
UpdateSlackChannelConfigurationRequest & WithLoggingLevel(LoggingLevelT &&value)
AWS_CHATBOT_API Aws::String SerializePayload() const override
UpdateSlackChannelConfigurationRequest & WithGuardrailPolicyArns(GuardrailPolicyArnsT &&value)
UpdateSlackChannelConfigurationRequest & WithSlackChannelName(SlackChannelNameT &&value)
UpdateSlackChannelConfigurationRequest & WithChatConfigurationArn(ChatConfigurationArnT &&value)
UpdateSlackChannelConfigurationRequest & WithSnsTopicArns(SnsTopicArnsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector