AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
SlackChannelConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/support-app/SupportApp_EXPORTS.h>
9#include <aws/support-app/model/NotificationSeverityLevel.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SupportApp {
21namespace Model {
22
30 public:
31 AWS_SUPPORTAPP_API SlackChannelConfiguration() = default;
34 AWS_SUPPORTAPP_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetChannelId() const { return m_channelId; }
42 inline bool ChannelIdHasBeenSet() const { return m_channelIdHasBeenSet; }
43 template <typename ChannelIdT = Aws::String>
44 void SetChannelId(ChannelIdT&& value) {
45 m_channelIdHasBeenSet = true;
46 m_channelId = std::forward<ChannelIdT>(value);
47 }
48 template <typename ChannelIdT = Aws::String>
50 SetChannelId(std::forward<ChannelIdT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetChannelName() const { return m_channelName; }
61 inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
62 template <typename ChannelNameT = Aws::String>
63 void SetChannelName(ChannelNameT&& value) {
64 m_channelNameHasBeenSet = true;
65 m_channelName = std::forward<ChannelNameT>(value);
66 }
67 template <typename ChannelNameT = Aws::String>
69 SetChannelName(std::forward<ChannelNameT>(value));
70 return *this;
71 }
73
75
82 inline const Aws::String& GetChannelRoleArn() const { return m_channelRoleArn; }
83 inline bool ChannelRoleArnHasBeenSet() const { return m_channelRoleArnHasBeenSet; }
84 template <typename ChannelRoleArnT = Aws::String>
85 void SetChannelRoleArn(ChannelRoleArnT&& value) {
86 m_channelRoleArnHasBeenSet = true;
87 m_channelRoleArn = std::forward<ChannelRoleArnT>(value);
88 }
89 template <typename ChannelRoleArnT = Aws::String>
91 SetChannelRoleArn(std::forward<ChannelRoleArnT>(value));
92 return *this;
93 }
95
97
101 inline bool GetNotifyOnAddCorrespondenceToCase() const { return m_notifyOnAddCorrespondenceToCase; }
102 inline bool NotifyOnAddCorrespondenceToCaseHasBeenSet() const { return m_notifyOnAddCorrespondenceToCaseHasBeenSet; }
103 inline void SetNotifyOnAddCorrespondenceToCase(bool value) {
104 m_notifyOnAddCorrespondenceToCaseHasBeenSet = true;
105 m_notifyOnAddCorrespondenceToCase = value;
106 }
112
114
118 inline NotificationSeverityLevel GetNotifyOnCaseSeverity() const { return m_notifyOnCaseSeverity; }
119 inline bool NotifyOnCaseSeverityHasBeenSet() const { return m_notifyOnCaseSeverityHasBeenSet; }
121 m_notifyOnCaseSeverityHasBeenSet = true;
122 m_notifyOnCaseSeverity = value;
123 }
129
131
135 inline bool GetNotifyOnCreateOrReopenCase() const { return m_notifyOnCreateOrReopenCase; }
136 inline bool NotifyOnCreateOrReopenCaseHasBeenSet() const { return m_notifyOnCreateOrReopenCaseHasBeenSet; }
137 inline void SetNotifyOnCreateOrReopenCase(bool value) {
138 m_notifyOnCreateOrReopenCaseHasBeenSet = true;
139 m_notifyOnCreateOrReopenCase = value;
140 }
143 return *this;
144 }
146
148
151 inline bool GetNotifyOnResolveCase() const { return m_notifyOnResolveCase; }
152 inline bool NotifyOnResolveCaseHasBeenSet() const { return m_notifyOnResolveCaseHasBeenSet; }
153 inline void SetNotifyOnResolveCase(bool value) {
154 m_notifyOnResolveCaseHasBeenSet = true;
155 m_notifyOnResolveCase = value;
156 }
159 return *this;
160 }
162
164
168 inline const Aws::String& GetTeamId() const { return m_teamId; }
169 inline bool TeamIdHasBeenSet() const { return m_teamIdHasBeenSet; }
170 template <typename TeamIdT = Aws::String>
171 void SetTeamId(TeamIdT&& value) {
172 m_teamIdHasBeenSet = true;
173 m_teamId = std::forward<TeamIdT>(value);
174 }
175 template <typename TeamIdT = Aws::String>
177 SetTeamId(std::forward<TeamIdT>(value));
178 return *this;
179 }
181 private:
182 Aws::String m_channelId;
183
184 Aws::String m_channelName;
185
186 Aws::String m_channelRoleArn;
187
188 bool m_notifyOnAddCorrespondenceToCase{false};
189
191
192 bool m_notifyOnCreateOrReopenCase{false};
193
194 bool m_notifyOnResolveCase{false};
195
196 Aws::String m_teamId;
197 bool m_channelIdHasBeenSet = false;
198 bool m_channelNameHasBeenSet = false;
199 bool m_channelRoleArnHasBeenSet = false;
200 bool m_notifyOnAddCorrespondenceToCaseHasBeenSet = false;
201 bool m_notifyOnCaseSeverityHasBeenSet = false;
202 bool m_notifyOnCreateOrReopenCaseHasBeenSet = false;
203 bool m_notifyOnResolveCaseHasBeenSet = false;
204 bool m_teamIdHasBeenSet = false;
205};
206
207} // namespace Model
208} // namespace SupportApp
209} // namespace Aws
AWS_SUPPORTAPP_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SUPPORTAPP_API SlackChannelConfiguration(Aws::Utils::Json::JsonView jsonValue)
SlackChannelConfiguration & WithNotifyOnResolveCase(bool value)
AWS_SUPPORTAPP_API SlackChannelConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
SlackChannelConfiguration & WithChannelId(ChannelIdT &&value)
SlackChannelConfiguration & WithNotifyOnCaseSeverity(NotificationSeverityLevel value)
SlackChannelConfiguration & WithChannelName(ChannelNameT &&value)
SlackChannelConfiguration & WithNotifyOnCreateOrReopenCase(bool value)
SlackChannelConfiguration & WithTeamId(TeamIdT &&value)
SlackChannelConfiguration & WithChannelRoleArn(ChannelRoleArnT &&value)
void SetNotifyOnCaseSeverity(NotificationSeverityLevel value)
AWS_SUPPORTAPP_API SlackChannelConfiguration()=default
SlackChannelConfiguration & WithNotifyOnAddCorrespondenceToCase(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue