AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetChannelId(const Aws::String& value) { m_channelIdHasBeenSet = true; m_channelId = value; }
50 inline void SetChannelId(Aws::String&& value) { m_channelIdHasBeenSet = true; m_channelId = std::move(value); }
51 inline void SetChannelId(const char* value) { m_channelIdHasBeenSet = true; m_channelId.assign(value); }
52 inline SlackChannelConfiguration& WithChannelId(const Aws::String& value) { SetChannelId(value); return *this;}
53 inline SlackChannelConfiguration& WithChannelId(Aws::String&& value) { SetChannelId(std::move(value)); return *this;}
54 inline SlackChannelConfiguration& WithChannelId(const char* value) { SetChannelId(value); return *this;}
56
58
62 inline const Aws::String& GetChannelName() const{ return m_channelName; }
63 inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
64 inline void SetChannelName(const Aws::String& value) { m_channelNameHasBeenSet = true; m_channelName = value; }
65 inline void SetChannelName(Aws::String&& value) { m_channelNameHasBeenSet = true; m_channelName = std::move(value); }
66 inline void SetChannelName(const char* value) { m_channelNameHasBeenSet = true; m_channelName.assign(value); }
67 inline SlackChannelConfiguration& WithChannelName(const Aws::String& value) { SetChannelName(value); return *this;}
68 inline SlackChannelConfiguration& WithChannelName(Aws::String&& value) { SetChannelName(std::move(value)); return *this;}
69 inline SlackChannelConfiguration& WithChannelName(const char* value) { SetChannelName(value); return *this;}
71
73
80 inline const Aws::String& GetChannelRoleArn() const{ return m_channelRoleArn; }
81 inline bool ChannelRoleArnHasBeenSet() const { return m_channelRoleArnHasBeenSet; }
82 inline void SetChannelRoleArn(const Aws::String& value) { m_channelRoleArnHasBeenSet = true; m_channelRoleArn = value; }
83 inline void SetChannelRoleArn(Aws::String&& value) { m_channelRoleArnHasBeenSet = true; m_channelRoleArn = std::move(value); }
84 inline void SetChannelRoleArn(const char* value) { m_channelRoleArnHasBeenSet = true; m_channelRoleArn.assign(value); }
85 inline SlackChannelConfiguration& WithChannelRoleArn(const Aws::String& value) { SetChannelRoleArn(value); return *this;}
86 inline SlackChannelConfiguration& WithChannelRoleArn(Aws::String&& value) { SetChannelRoleArn(std::move(value)); return *this;}
87 inline SlackChannelConfiguration& WithChannelRoleArn(const char* value) { SetChannelRoleArn(value); return *this;}
89
91
95 inline bool GetNotifyOnAddCorrespondenceToCase() const{ return m_notifyOnAddCorrespondenceToCase; }
96 inline bool NotifyOnAddCorrespondenceToCaseHasBeenSet() const { return m_notifyOnAddCorrespondenceToCaseHasBeenSet; }
97 inline void SetNotifyOnAddCorrespondenceToCase(bool value) { m_notifyOnAddCorrespondenceToCaseHasBeenSet = true; m_notifyOnAddCorrespondenceToCase = value; }
100
102
106 inline const NotificationSeverityLevel& GetNotifyOnCaseSeverity() const{ return m_notifyOnCaseSeverity; }
107 inline bool NotifyOnCaseSeverityHasBeenSet() const { return m_notifyOnCaseSeverityHasBeenSet; }
108 inline void SetNotifyOnCaseSeverity(const NotificationSeverityLevel& value) { m_notifyOnCaseSeverityHasBeenSet = true; m_notifyOnCaseSeverity = value; }
109 inline void SetNotifyOnCaseSeverity(NotificationSeverityLevel&& value) { m_notifyOnCaseSeverityHasBeenSet = true; m_notifyOnCaseSeverity = std::move(value); }
113
115
119 inline bool GetNotifyOnCreateOrReopenCase() const{ return m_notifyOnCreateOrReopenCase; }
120 inline bool NotifyOnCreateOrReopenCaseHasBeenSet() const { return m_notifyOnCreateOrReopenCaseHasBeenSet; }
121 inline void SetNotifyOnCreateOrReopenCase(bool value) { m_notifyOnCreateOrReopenCaseHasBeenSet = true; m_notifyOnCreateOrReopenCase = value; }
124
126
129 inline bool GetNotifyOnResolveCase() const{ return m_notifyOnResolveCase; }
130 inline bool NotifyOnResolveCaseHasBeenSet() const { return m_notifyOnResolveCaseHasBeenSet; }
131 inline void SetNotifyOnResolveCase(bool value) { m_notifyOnResolveCaseHasBeenSet = true; m_notifyOnResolveCase = value; }
134
136
140 inline const Aws::String& GetTeamId() const{ return m_teamId; }
141 inline bool TeamIdHasBeenSet() const { return m_teamIdHasBeenSet; }
142 inline void SetTeamId(const Aws::String& value) { m_teamIdHasBeenSet = true; m_teamId = value; }
143 inline void SetTeamId(Aws::String&& value) { m_teamIdHasBeenSet = true; m_teamId = std::move(value); }
144 inline void SetTeamId(const char* value) { m_teamIdHasBeenSet = true; m_teamId.assign(value); }
145 inline SlackChannelConfiguration& WithTeamId(const Aws::String& value) { SetTeamId(value); return *this;}
146 inline SlackChannelConfiguration& WithTeamId(Aws::String&& value) { SetTeamId(std::move(value)); return *this;}
147 inline SlackChannelConfiguration& WithTeamId(const char* value) { SetTeamId(value); return *this;}
149 private:
150
151 Aws::String m_channelId;
152 bool m_channelIdHasBeenSet = false;
153
154 Aws::String m_channelName;
155 bool m_channelNameHasBeenSet = false;
156
157 Aws::String m_channelRoleArn;
158 bool m_channelRoleArnHasBeenSet = false;
159
160 bool m_notifyOnAddCorrespondenceToCase;
161 bool m_notifyOnAddCorrespondenceToCaseHasBeenSet = false;
162
163 NotificationSeverityLevel m_notifyOnCaseSeverity;
164 bool m_notifyOnCaseSeverityHasBeenSet = false;
165
166 bool m_notifyOnCreateOrReopenCase;
167 bool m_notifyOnCreateOrReopenCaseHasBeenSet = false;
168
169 bool m_notifyOnResolveCase;
170 bool m_notifyOnResolveCaseHasBeenSet = false;
171
172 Aws::String m_teamId;
173 bool m_teamIdHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace SupportApp
178} // namespace Aws
AWS_SUPPORTAPP_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SUPPORTAPP_API SlackChannelConfiguration(Aws::Utils::Json::JsonView jsonValue)
void SetNotifyOnCaseSeverity(const NotificationSeverityLevel &value)
SlackChannelConfiguration & WithNotifyOnResolveCase(bool value)
SlackChannelConfiguration & WithChannelId(const char *value)
SlackChannelConfiguration & WithChannelRoleArn(Aws::String &&value)
void SetNotifyOnCaseSeverity(NotificationSeverityLevel &&value)
SlackChannelConfiguration & WithChannelName(const Aws::String &value)
AWS_SUPPORTAPP_API SlackChannelConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
SlackChannelConfiguration & WithChannelRoleArn(const Aws::String &value)
SlackChannelConfiguration & WithChannelId(Aws::String &&value)
SlackChannelConfiguration & WithNotifyOnCreateOrReopenCase(bool value)
SlackChannelConfiguration & WithNotifyOnCaseSeverity(const NotificationSeverityLevel &value)
SlackChannelConfiguration & WithTeamId(const char *value)
SlackChannelConfiguration & WithChannelName(const char *value)
SlackChannelConfiguration & WithChannelId(const Aws::String &value)
SlackChannelConfiguration & WithTeamId(const Aws::String &value)
const NotificationSeverityLevel & GetNotifyOnCaseSeverity() const
SlackChannelConfiguration & WithChannelRoleArn(const char *value)
SlackChannelConfiguration & WithTeamId(Aws::String &&value)
SlackChannelConfiguration & WithNotifyOnAddCorrespondenceToCase(bool value)
SlackChannelConfiguration & WithChannelName(Aws::String &&value)
SlackChannelConfiguration & WithNotifyOnCaseSeverity(NotificationSeverityLevel &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue