AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
CreateNotificationRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/connect/model/ConfigurableNotificationPriority.h>
10#include <aws/connect/model/LocaleCode.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/UUID.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Connect {
21namespace Model {
22
26 public:
27 AWS_CONNECT_API CreateNotificationRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateNotification"; }
34
35 AWS_CONNECT_API Aws::String SerializePayload() const override;
36
38
43 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
44 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
45 template <typename InstanceIdT = Aws::String>
46 void SetInstanceId(InstanceIdT&& value) {
47 m_instanceIdHasBeenSet = true;
48 m_instanceId = std::forward<InstanceIdT>(value);
49 }
50 template <typename InstanceIdT = Aws::String>
52 SetInstanceId(std::forward<InstanceIdT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::Utils::DateTime& GetExpiresAt() const { return m_expiresAt; }
63 inline bool ExpiresAtHasBeenSet() const { return m_expiresAtHasBeenSet; }
64 template <typename ExpiresAtT = Aws::Utils::DateTime>
65 void SetExpiresAt(ExpiresAtT&& value) {
66 m_expiresAtHasBeenSet = true;
67 m_expiresAt = std::forward<ExpiresAtT>(value);
68 }
69 template <typename ExpiresAtT = Aws::Utils::DateTime>
71 SetExpiresAt(std::forward<ExpiresAtT>(value));
72 return *this;
73 }
75
77
82 inline const Aws::Vector<Aws::String>& GetRecipients() const { return m_recipients; }
83 inline bool RecipientsHasBeenSet() const { return m_recipientsHasBeenSet; }
84 template <typename RecipientsT = Aws::Vector<Aws::String>>
85 void SetRecipients(RecipientsT&& value) {
86 m_recipientsHasBeenSet = true;
87 m_recipients = std::forward<RecipientsT>(value);
88 }
89 template <typename RecipientsT = Aws::Vector<Aws::String>>
91 SetRecipients(std::forward<RecipientsT>(value));
92 return *this;
93 }
94 template <typename RecipientsT = Aws::String>
96 m_recipientsHasBeenSet = true;
97 m_recipients.emplace_back(std::forward<RecipientsT>(value));
98 return *this;
99 }
101
103
107 inline ConfigurableNotificationPriority GetPriority() const { return m_priority; }
108 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
110 m_priorityHasBeenSet = true;
111 m_priority = value;
112 }
114 SetPriority(value);
115 return *this;
116 }
118
120
125 inline const Aws::Map<LocaleCode, Aws::String>& GetContent() const { return m_content; }
126 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
127 template <typename ContentT = Aws::Map<LocaleCode, Aws::String>>
128 void SetContent(ContentT&& value) {
129 m_contentHasBeenSet = true;
130 m_content = std::forward<ContentT>(value);
131 }
132 template <typename ContentT = Aws::Map<LocaleCode, Aws::String>>
134 SetContent(std::forward<ContentT>(value));
135 return *this;
136 }
138 m_contentHasBeenSet = true;
139 m_content.emplace(key, value);
140 return *this;
141 }
143
145
149 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
150 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
151 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
152 void SetTags(TagsT&& value) {
153 m_tagsHasBeenSet = true;
154 m_tags = std::forward<TagsT>(value);
155 }
156 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
158 SetTags(std::forward<TagsT>(value));
159 return *this;
160 }
161 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
162 CreateNotificationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
163 m_tagsHasBeenSet = true;
164 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
165 return *this;
166 }
168
170
171 inline const Aws::String& GetPredefinedNotificationId() const { return m_predefinedNotificationId; }
172 inline bool PredefinedNotificationIdHasBeenSet() const { return m_predefinedNotificationIdHasBeenSet; }
173 template <typename PredefinedNotificationIdT = Aws::String>
174 void SetPredefinedNotificationId(PredefinedNotificationIdT&& value) {
175 m_predefinedNotificationIdHasBeenSet = true;
176 m_predefinedNotificationId = std::forward<PredefinedNotificationIdT>(value);
177 }
178 template <typename PredefinedNotificationIdT = Aws::String>
179 CreateNotificationRequest& WithPredefinedNotificationId(PredefinedNotificationIdT&& value) {
180 SetPredefinedNotificationId(std::forward<PredefinedNotificationIdT>(value));
181 return *this;
182 }
184
186
193 inline const Aws::String& GetClientToken() const { return m_clientToken; }
194 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
195 template <typename ClientTokenT = Aws::String>
196 void SetClientToken(ClientTokenT&& value) {
197 m_clientTokenHasBeenSet = true;
198 m_clientToken = std::forward<ClientTokenT>(value);
199 }
200 template <typename ClientTokenT = Aws::String>
202 SetClientToken(std::forward<ClientTokenT>(value));
203 return *this;
204 }
206 private:
207 Aws::String m_instanceId;
208
209 Aws::Utils::DateTime m_expiresAt{};
210
211 Aws::Vector<Aws::String> m_recipients;
212
214
216
218
219 Aws::String m_predefinedNotificationId;
220
222 bool m_instanceIdHasBeenSet = false;
223 bool m_expiresAtHasBeenSet = false;
224 bool m_recipientsHasBeenSet = false;
225 bool m_priorityHasBeenSet = false;
226 bool m_contentHasBeenSet = false;
227 bool m_tagsHasBeenSet = false;
228 bool m_predefinedNotificationIdHasBeenSet = false;
229 bool m_clientTokenHasBeenSet = true;
230};
231
232} // namespace Model
233} // namespace Connect
234} // namespace Aws
CreateNotificationRequest & AddRecipients(RecipientsT &&value)
CreateNotificationRequest & WithPredefinedNotificationId(PredefinedNotificationIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::Map< LocaleCode, Aws::String > & GetContent() const
CreateNotificationRequest & WithClientToken(ClientTokenT &&value)
CreateNotificationRequest & AddContent(LocaleCode key, Aws::String value)
CreateNotificationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Utils::DateTime & GetExpiresAt() const
CreateNotificationRequest & WithRecipients(RecipientsT &&value)
CreateNotificationRequest & WithExpiresAt(ExpiresAtT &&value)
CreateNotificationRequest & WithInstanceId(InstanceIdT &&value)
CreateNotificationRequest & WithPriority(ConfigurableNotificationPriority value)
ConfigurableNotificationPriority GetPriority() const
const Aws::Vector< Aws::String > & GetRecipients() const
CreateNotificationRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_CONNECT_API Aws::String SerializePayload() const override
void SetPredefinedNotificationId(PredefinedNotificationIdT &&value)
AWS_CONNECT_API CreateNotificationRequest()=default
CreateNotificationRequest & WithContent(ContentT &&value)
void SetPriority(ConfigurableNotificationPriority value)
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector