AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
CreateSlackChannelConfigurationRequest.h
1
6#pragma once
7#include <aws/support-app/SupportApp_EXPORTS.h>
8#include <aws/support-app/SupportAppRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/support-app/model/NotificationSeverityLevel.h>
11#include <utility>
12
13namespace Aws
14{
15namespace SupportApp
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_SUPPORTAPP_API CreateSlackChannelConfigurationRequest() = 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 "CreateSlackChannelConfiguration"; }
32
33 AWS_SUPPORTAPP_API Aws::String SerializePayload() const override;
34
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) { m_channelIdHasBeenSet = true; m_channelId = std::forward<ChannelIdT>(value); }
45 template<typename ChannelIdT = Aws::String>
46 CreateSlackChannelConfigurationRequest& WithChannelId(ChannelIdT&& value) { SetChannelId(std::forward<ChannelIdT>(value)); return *this;}
48
50
54 inline const Aws::String& GetChannelName() const { return m_channelName; }
55 inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
56 template<typename ChannelNameT = Aws::String>
57 void SetChannelName(ChannelNameT&& value) { m_channelNameHasBeenSet = true; m_channelName = std::forward<ChannelNameT>(value); }
58 template<typename ChannelNameT = Aws::String>
59 CreateSlackChannelConfigurationRequest& WithChannelName(ChannelNameT&& value) { SetChannelName(std::forward<ChannelNameT>(value)); return *this;}
61
63
70 inline const Aws::String& GetChannelRoleArn() const { return m_channelRoleArn; }
71 inline bool ChannelRoleArnHasBeenSet() const { return m_channelRoleArnHasBeenSet; }
72 template<typename ChannelRoleArnT = Aws::String>
73 void SetChannelRoleArn(ChannelRoleArnT&& value) { m_channelRoleArnHasBeenSet = true; m_channelRoleArn = std::forward<ChannelRoleArnT>(value); }
74 template<typename ChannelRoleArnT = Aws::String>
75 CreateSlackChannelConfigurationRequest& WithChannelRoleArn(ChannelRoleArnT&& value) { SetChannelRoleArn(std::forward<ChannelRoleArnT>(value)); return *this;}
77
79
83 inline bool GetNotifyOnAddCorrespondenceToCase() const { return m_notifyOnAddCorrespondenceToCase; }
84 inline bool NotifyOnAddCorrespondenceToCaseHasBeenSet() const { return m_notifyOnAddCorrespondenceToCaseHasBeenSet; }
85 inline void SetNotifyOnAddCorrespondenceToCase(bool value) { m_notifyOnAddCorrespondenceToCaseHasBeenSet = true; m_notifyOnAddCorrespondenceToCase = value; }
88
90
105 inline NotificationSeverityLevel GetNotifyOnCaseSeverity() const { return m_notifyOnCaseSeverity; }
106 inline bool NotifyOnCaseSeverityHasBeenSet() const { return m_notifyOnCaseSeverityHasBeenSet; }
107 inline void SetNotifyOnCaseSeverity(NotificationSeverityLevel value) { m_notifyOnCaseSeverityHasBeenSet = true; m_notifyOnCaseSeverity = value; }
110
112
116 inline bool GetNotifyOnCreateOrReopenCase() const { return m_notifyOnCreateOrReopenCase; }
117 inline bool NotifyOnCreateOrReopenCaseHasBeenSet() const { return m_notifyOnCreateOrReopenCaseHasBeenSet; }
118 inline void SetNotifyOnCreateOrReopenCase(bool value) { m_notifyOnCreateOrReopenCaseHasBeenSet = true; m_notifyOnCreateOrReopenCase = value; }
121
123
126 inline bool GetNotifyOnResolveCase() const { return m_notifyOnResolveCase; }
127 inline bool NotifyOnResolveCaseHasBeenSet() const { return m_notifyOnResolveCaseHasBeenSet; }
128 inline void SetNotifyOnResolveCase(bool value) { m_notifyOnResolveCaseHasBeenSet = true; m_notifyOnResolveCase = value; }
131
133
137 inline const Aws::String& GetTeamId() const { return m_teamId; }
138 inline bool TeamIdHasBeenSet() const { return m_teamIdHasBeenSet; }
139 template<typename TeamIdT = Aws::String>
140 void SetTeamId(TeamIdT&& value) { m_teamIdHasBeenSet = true; m_teamId = std::forward<TeamIdT>(value); }
141 template<typename TeamIdT = Aws::String>
142 CreateSlackChannelConfigurationRequest& WithTeamId(TeamIdT&& value) { SetTeamId(std::forward<TeamIdT>(value)); return *this;}
144 private:
145
146 Aws::String m_channelId;
147 bool m_channelIdHasBeenSet = false;
148
149 Aws::String m_channelName;
150 bool m_channelNameHasBeenSet = false;
151
152 Aws::String m_channelRoleArn;
153 bool m_channelRoleArnHasBeenSet = false;
154
155 bool m_notifyOnAddCorrespondenceToCase{false};
156 bool m_notifyOnAddCorrespondenceToCaseHasBeenSet = false;
157
159 bool m_notifyOnCaseSeverityHasBeenSet = false;
160
161 bool m_notifyOnCreateOrReopenCase{false};
162 bool m_notifyOnCreateOrReopenCaseHasBeenSet = false;
163
164 bool m_notifyOnResolveCase{false};
165 bool m_notifyOnResolveCaseHasBeenSet = false;
166
167 Aws::String m_teamId;
168 bool m_teamIdHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace SupportApp
173} // namespace Aws
CreateSlackChannelConfigurationRequest & WithNotifyOnCaseSeverity(NotificationSeverityLevel value)
CreateSlackChannelConfigurationRequest & WithNotifyOnCreateOrReopenCase(bool value)
CreateSlackChannelConfigurationRequest & WithChannelId(ChannelIdT &&value)
CreateSlackChannelConfigurationRequest & WithChannelName(ChannelNameT &&value)
CreateSlackChannelConfigurationRequest & WithChannelRoleArn(ChannelRoleArnT &&value)
CreateSlackChannelConfigurationRequest & WithNotifyOnAddCorrespondenceToCase(bool value)
CreateSlackChannelConfigurationRequest & WithTeamId(TeamIdT &&value)
AWS_SUPPORTAPP_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String