AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
Notification.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/LocaleCode.h>
9#include <aws/connect/model/NotificationPriority.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Connect {
25namespace Model {
26
34 public:
35 AWS_CONNECT_API Notification() = default;
36 AWS_CONNECT_API Notification(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline const Aws::Map<LocaleCode, Aws::String>& GetContent() const { return m_content; }
46 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
47 template <typename ContentT = Aws::Map<LocaleCode, Aws::String>>
48 void SetContent(ContentT&& value) {
49 m_contentHasBeenSet = true;
50 m_content = std::forward<ContentT>(value);
51 }
52 template <typename ContentT = Aws::Map<LocaleCode, Aws::String>>
53 Notification& WithContent(ContentT&& value) {
54 SetContent(std::forward<ContentT>(value));
55 return *this;
56 }
58 m_contentHasBeenSet = true;
59 m_content.emplace(key, value);
60 return *this;
61 }
63
65
68 inline const Aws::String& GetId() const { return m_id; }
69 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
70 template <typename IdT = Aws::String>
71 void SetId(IdT&& value) {
72 m_idHasBeenSet = true;
73 m_id = std::forward<IdT>(value);
74 }
75 template <typename IdT = Aws::String>
76 Notification& WithId(IdT&& value) {
77 SetId(std::forward<IdT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetArn() const { return m_arn; }
87 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
88 template <typename ArnT = Aws::String>
89 void SetArn(ArnT&& value) {
90 m_arnHasBeenSet = true;
91 m_arn = std::forward<ArnT>(value);
92 }
93 template <typename ArnT = Aws::String>
94 Notification& WithArn(ArnT&& value) {
95 SetArn(std::forward<ArnT>(value));
96 return *this;
97 }
99
101
105 inline NotificationPriority GetPriority() const { return m_priority; }
106 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
108 m_priorityHasBeenSet = true;
109 m_priority = value;
110 }
112 SetPriority(value);
113 return *this;
114 }
116
118
122 inline const Aws::Vector<Aws::String>& GetRecipients() const { return m_recipients; }
123 inline bool RecipientsHasBeenSet() const { return m_recipientsHasBeenSet; }
124 template <typename RecipientsT = Aws::Vector<Aws::String>>
125 void SetRecipients(RecipientsT&& value) {
126 m_recipientsHasBeenSet = true;
127 m_recipients = std::forward<RecipientsT>(value);
128 }
129 template <typename RecipientsT = Aws::Vector<Aws::String>>
130 Notification& WithRecipients(RecipientsT&& value) {
131 SetRecipients(std::forward<RecipientsT>(value));
132 return *this;
133 }
134 template <typename RecipientsT = Aws::String>
135 Notification& AddRecipients(RecipientsT&& value) {
136 m_recipientsHasBeenSet = true;
137 m_recipients.emplace_back(std::forward<RecipientsT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
147 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
148 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
149 void SetLastModifiedTime(LastModifiedTimeT&& value) {
150 m_lastModifiedTimeHasBeenSet = true;
151 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
152 }
153 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
154 Notification& WithLastModifiedTime(LastModifiedTimeT&& value) {
155 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
165 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
166 template <typename CreatedAtT = Aws::Utils::DateTime>
167 void SetCreatedAt(CreatedAtT&& value) {
168 m_createdAtHasBeenSet = true;
169 m_createdAt = std::forward<CreatedAtT>(value);
170 }
171 template <typename CreatedAtT = Aws::Utils::DateTime>
172 Notification& WithCreatedAt(CreatedAtT&& value) {
173 SetCreatedAt(std::forward<CreatedAtT>(value));
174 return *this;
175 }
177
179
183 inline const Aws::Utils::DateTime& GetExpiresAt() const { return m_expiresAt; }
184 inline bool ExpiresAtHasBeenSet() const { return m_expiresAtHasBeenSet; }
185 template <typename ExpiresAtT = Aws::Utils::DateTime>
186 void SetExpiresAt(ExpiresAtT&& value) {
187 m_expiresAtHasBeenSet = true;
188 m_expiresAt = std::forward<ExpiresAtT>(value);
189 }
190 template <typename ExpiresAtT = Aws::Utils::DateTime>
191 Notification& WithExpiresAt(ExpiresAtT&& value) {
192 SetExpiresAt(std::forward<ExpiresAtT>(value));
193 return *this;
194 }
196
198
201 inline const Aws::String& GetLastModifiedRegion() const { return m_lastModifiedRegion; }
202 inline bool LastModifiedRegionHasBeenSet() const { return m_lastModifiedRegionHasBeenSet; }
203 template <typename LastModifiedRegionT = Aws::String>
204 void SetLastModifiedRegion(LastModifiedRegionT&& value) {
205 m_lastModifiedRegionHasBeenSet = true;
206 m_lastModifiedRegion = std::forward<LastModifiedRegionT>(value);
207 }
208 template <typename LastModifiedRegionT = Aws::String>
209 Notification& WithLastModifiedRegion(LastModifiedRegionT&& value) {
210 SetLastModifiedRegion(std::forward<LastModifiedRegionT>(value));
211 return *this;
212 }
214
216
220 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
221 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
222 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
223 void SetTags(TagsT&& value) {
224 m_tagsHasBeenSet = true;
225 m_tags = std::forward<TagsT>(value);
226 }
227 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
228 Notification& WithTags(TagsT&& value) {
229 SetTags(std::forward<TagsT>(value));
230 return *this;
231 }
232 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
233 Notification& AddTags(TagsKeyT&& key, TagsValueT&& value) {
234 m_tagsHasBeenSet = true;
235 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
236 return *this;
237 }
239 private:
241
242 Aws::String m_id;
243
244 Aws::String m_arn;
245
247
248 Aws::Vector<Aws::String> m_recipients;
249
250 Aws::Utils::DateTime m_lastModifiedTime{};
251
252 Aws::Utils::DateTime m_createdAt{};
253
254 Aws::Utils::DateTime m_expiresAt{};
255
256 Aws::String m_lastModifiedRegion;
257
259 bool m_contentHasBeenSet = false;
260 bool m_idHasBeenSet = false;
261 bool m_arnHasBeenSet = false;
262 bool m_priorityHasBeenSet = false;
263 bool m_recipientsHasBeenSet = false;
264 bool m_lastModifiedTimeHasBeenSet = false;
265 bool m_createdAtHasBeenSet = false;
266 bool m_expiresAtHasBeenSet = false;
267 bool m_lastModifiedRegionHasBeenSet = false;
268 bool m_tagsHasBeenSet = false;
269};
270
271} // namespace Model
272} // namespace Connect
273} // namespace Aws
AWS_CONNECT_API Notification & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetExpiresAt(ExpiresAtT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
NotificationPriority GetPriority() const
Notification & WithTags(TagsT &&value)
const Aws::Map< LocaleCode, Aws::String > & GetContent() const
Notification & WithLastModifiedTime(LastModifiedTimeT &&value)
void SetRecipients(RecipientsT &&value)
Notification & WithCreatedAt(CreatedAtT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
Notification & AddRecipients(RecipientsT &&value)
void SetCreatedAt(CreatedAtT &&value)
Notification & WithLastModifiedRegion(LastModifiedRegionT &&value)
const Aws::Vector< Aws::String > & GetRecipients() const
const Aws::Utils::DateTime & GetExpiresAt() const
void SetPriority(NotificationPriority value)
Notification & WithPriority(NotificationPriority value)
const Aws::Utils::DateTime & GetCreatedAt() const
Notification & AddContent(LocaleCode key, Aws::String value)
void SetLastModifiedRegion(LastModifiedRegionT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
Notification & WithId(IdT &&value)
void SetContent(ContentT &&value)
const Aws::String & GetId() const
const Aws::String & GetLastModifiedRegion() const
Notification & WithArn(ArnT &&value)
Notification & WithExpiresAt(ExpiresAtT &&value)
Notification & WithContent(ContentT &&value)
AWS_CONNECT_API Notification()=default
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
Notification & WithRecipients(RecipientsT &&value)
const Aws::String & GetArn() const
Notification & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_CONNECT_API Notification(Aws::Utils::Json::JsonView jsonValue)
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
Aws::Utils::Json::JsonValue JsonValue