AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
SlackChannelConfiguration.h
1
6#pragma once
7#include <aws/support-app/SupportApp_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/support-app/model/NotificationSeverityLevel.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SupportApp
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SUPPORTAPP_API SlackChannelConfiguration() = default;
39 AWS_SUPPORTAPP_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetChannelId() const { return m_channelId; }
48 inline bool ChannelIdHasBeenSet() const { return m_channelIdHasBeenSet; }
49 template<typename ChannelIdT = Aws::String>
50 void SetChannelId(ChannelIdT&& value) { m_channelIdHasBeenSet = true; m_channelId = std::forward<ChannelIdT>(value); }
51 template<typename ChannelIdT = Aws::String>
52 SlackChannelConfiguration& WithChannelId(ChannelIdT&& value) { SetChannelId(std::forward<ChannelIdT>(value)); return *this;}
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) { m_channelNameHasBeenSet = true; m_channelName = std::forward<ChannelNameT>(value); }
64 template<typename ChannelNameT = Aws::String>
65 SlackChannelConfiguration& WithChannelName(ChannelNameT&& value) { SetChannelName(std::forward<ChannelNameT>(value)); return *this;}
67
69
76 inline const Aws::String& GetChannelRoleArn() const { return m_channelRoleArn; }
77 inline bool ChannelRoleArnHasBeenSet() const { return m_channelRoleArnHasBeenSet; }
78 template<typename ChannelRoleArnT = Aws::String>
79 void SetChannelRoleArn(ChannelRoleArnT&& value) { m_channelRoleArnHasBeenSet = true; m_channelRoleArn = std::forward<ChannelRoleArnT>(value); }
80 template<typename ChannelRoleArnT = Aws::String>
81 SlackChannelConfiguration& WithChannelRoleArn(ChannelRoleArnT&& value) { SetChannelRoleArn(std::forward<ChannelRoleArnT>(value)); return *this;}
83
85
89 inline bool GetNotifyOnAddCorrespondenceToCase() const { return m_notifyOnAddCorrespondenceToCase; }
90 inline bool NotifyOnAddCorrespondenceToCaseHasBeenSet() const { return m_notifyOnAddCorrespondenceToCaseHasBeenSet; }
91 inline void SetNotifyOnAddCorrespondenceToCase(bool value) { m_notifyOnAddCorrespondenceToCaseHasBeenSet = true; m_notifyOnAddCorrespondenceToCase = value; }
94
96
100 inline NotificationSeverityLevel GetNotifyOnCaseSeverity() const { return m_notifyOnCaseSeverity; }
101 inline bool NotifyOnCaseSeverityHasBeenSet() const { return m_notifyOnCaseSeverityHasBeenSet; }
102 inline void SetNotifyOnCaseSeverity(NotificationSeverityLevel value) { m_notifyOnCaseSeverityHasBeenSet = true; m_notifyOnCaseSeverity = value; }
105
107
111 inline bool GetNotifyOnCreateOrReopenCase() const { return m_notifyOnCreateOrReopenCase; }
112 inline bool NotifyOnCreateOrReopenCaseHasBeenSet() const { return m_notifyOnCreateOrReopenCaseHasBeenSet; }
113 inline void SetNotifyOnCreateOrReopenCase(bool value) { m_notifyOnCreateOrReopenCaseHasBeenSet = true; m_notifyOnCreateOrReopenCase = value; }
116
118
121 inline bool GetNotifyOnResolveCase() const { return m_notifyOnResolveCase; }
122 inline bool NotifyOnResolveCaseHasBeenSet() const { return m_notifyOnResolveCaseHasBeenSet; }
123 inline void SetNotifyOnResolveCase(bool value) { m_notifyOnResolveCaseHasBeenSet = true; m_notifyOnResolveCase = value; }
126
128
132 inline const Aws::String& GetTeamId() const { return m_teamId; }
133 inline bool TeamIdHasBeenSet() const { return m_teamIdHasBeenSet; }
134 template<typename TeamIdT = Aws::String>
135 void SetTeamId(TeamIdT&& value) { m_teamIdHasBeenSet = true; m_teamId = std::forward<TeamIdT>(value); }
136 template<typename TeamIdT = Aws::String>
137 SlackChannelConfiguration& WithTeamId(TeamIdT&& value) { SetTeamId(std::forward<TeamIdT>(value)); return *this;}
139 private:
140
141 Aws::String m_channelId;
142 bool m_channelIdHasBeenSet = false;
143
144 Aws::String m_channelName;
145 bool m_channelNameHasBeenSet = false;
146
147 Aws::String m_channelRoleArn;
148 bool m_channelRoleArnHasBeenSet = false;
149
150 bool m_notifyOnAddCorrespondenceToCase{false};
151 bool m_notifyOnAddCorrespondenceToCaseHasBeenSet = false;
152
154 bool m_notifyOnCaseSeverityHasBeenSet = false;
155
156 bool m_notifyOnCreateOrReopenCase{false};
157 bool m_notifyOnCreateOrReopenCaseHasBeenSet = false;
158
159 bool m_notifyOnResolveCase{false};
160 bool m_notifyOnResolveCaseHasBeenSet = false;
161
162 Aws::String m_teamId;
163 bool m_teamIdHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace SupportApp
168} // 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