AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
NotificationSearchSummary.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 NotificationSearchSummary() = default;
38 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetId() const { return m_id; }
45 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
46 template <typename IdT = Aws::String>
47 void SetId(IdT&& value) {
48 m_idHasBeenSet = true;
49 m_id = std::forward<IdT>(value);
50 }
51 template <typename IdT = Aws::String>
53 SetId(std::forward<IdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetArn() const { return m_arn; }
63 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
64 template <typename ArnT = Aws::String>
65 void SetArn(ArnT&& value) {
66 m_arnHasBeenSet = true;
67 m_arn = std::forward<ArnT>(value);
68 }
69 template <typename ArnT = Aws::String>
71 SetArn(std::forward<ArnT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
81 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
82 template <typename InstanceIdT = Aws::String>
83 void SetInstanceId(InstanceIdT&& value) {
84 m_instanceIdHasBeenSet = true;
85 m_instanceId = std::forward<InstanceIdT>(value);
86 }
87 template <typename InstanceIdT = Aws::String>
89 SetInstanceId(std::forward<InstanceIdT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::Map<LocaleCode, Aws::String>& GetContent() const { return m_content; }
99 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
100 template <typename ContentT = Aws::Map<LocaleCode, Aws::String>>
101 void SetContent(ContentT&& value) {
102 m_contentHasBeenSet = true;
103 m_content = std::forward<ContentT>(value);
104 }
105 template <typename ContentT = Aws::Map<LocaleCode, Aws::String>>
107 SetContent(std::forward<ContentT>(value));
108 return *this;
109 }
111 m_contentHasBeenSet = true;
112 m_content.emplace(key, value);
113 return *this;
114 }
116
118
121 inline NotificationPriority GetPriority() const { return m_priority; }
122 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
124 m_priorityHasBeenSet = true;
125 m_priority = value;
126 }
128 SetPriority(value);
129 return *this;
130 }
132
134
137 inline const Aws::Vector<Aws::String>& GetRecipients() const { return m_recipients; }
138 inline bool RecipientsHasBeenSet() const { return m_recipientsHasBeenSet; }
139 template <typename RecipientsT = Aws::Vector<Aws::String>>
140 void SetRecipients(RecipientsT&& value) {
141 m_recipientsHasBeenSet = true;
142 m_recipients = std::forward<RecipientsT>(value);
143 }
144 template <typename RecipientsT = Aws::Vector<Aws::String>>
146 SetRecipients(std::forward<RecipientsT>(value));
147 return *this;
148 }
149 template <typename RecipientsT = Aws::String>
151 m_recipientsHasBeenSet = true;
152 m_recipients.emplace_back(std::forward<RecipientsT>(value));
153 return *this;
154 }
156
158
161 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
162 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
163 template <typename CreatedAtT = Aws::Utils::DateTime>
164 void SetCreatedAt(CreatedAtT&& value) {
165 m_createdAtHasBeenSet = true;
166 m_createdAt = std::forward<CreatedAtT>(value);
167 }
168 template <typename CreatedAtT = Aws::Utils::DateTime>
170 SetCreatedAt(std::forward<CreatedAtT>(value));
171 return *this;
172 }
174
176
179 inline const Aws::Utils::DateTime& GetExpiresAt() const { return m_expiresAt; }
180 inline bool ExpiresAtHasBeenSet() const { return m_expiresAtHasBeenSet; }
181 template <typename ExpiresAtT = Aws::Utils::DateTime>
182 void SetExpiresAt(ExpiresAtT&& value) {
183 m_expiresAtHasBeenSet = true;
184 m_expiresAt = std::forward<ExpiresAtT>(value);
185 }
186 template <typename ExpiresAtT = Aws::Utils::DateTime>
188 SetExpiresAt(std::forward<ExpiresAtT>(value));
189 return *this;
190 }
192
194
197 inline const Aws::String& GetLastModifiedRegion() const { return m_lastModifiedRegion; }
198 inline bool LastModifiedRegionHasBeenSet() const { return m_lastModifiedRegionHasBeenSet; }
199 template <typename LastModifiedRegionT = Aws::String>
200 void SetLastModifiedRegion(LastModifiedRegionT&& value) {
201 m_lastModifiedRegionHasBeenSet = true;
202 m_lastModifiedRegion = std::forward<LastModifiedRegionT>(value);
203 }
204 template <typename LastModifiedRegionT = Aws::String>
205 NotificationSearchSummary& WithLastModifiedRegion(LastModifiedRegionT&& value) {
206 SetLastModifiedRegion(std::forward<LastModifiedRegionT>(value));
207 return *this;
208 }
210
212
215 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
216 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
217 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
218 void SetLastModifiedTime(LastModifiedTimeT&& value) {
219 m_lastModifiedTimeHasBeenSet = true;
220 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
221 }
222 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
224 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
225 return *this;
226 }
228
230
233 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
234 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
235 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
236 void SetTags(TagsT&& value) {
237 m_tagsHasBeenSet = true;
238 m_tags = std::forward<TagsT>(value);
239 }
240 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
242 SetTags(std::forward<TagsT>(value));
243 return *this;
244 }
245 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
246 NotificationSearchSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
247 m_tagsHasBeenSet = true;
248 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
249 return *this;
250 }
252 private:
253 Aws::String m_id;
254
255 Aws::String m_arn;
256
257 Aws::String m_instanceId;
258
260
262
263 Aws::Vector<Aws::String> m_recipients;
264
265 Aws::Utils::DateTime m_createdAt{};
266
267 Aws::Utils::DateTime m_expiresAt{};
268
269 Aws::String m_lastModifiedRegion;
270
271 Aws::Utils::DateTime m_lastModifiedTime{};
272
274 bool m_idHasBeenSet = false;
275 bool m_arnHasBeenSet = false;
276 bool m_instanceIdHasBeenSet = false;
277 bool m_contentHasBeenSet = false;
278 bool m_priorityHasBeenSet = false;
279 bool m_recipientsHasBeenSet = false;
280 bool m_createdAtHasBeenSet = false;
281 bool m_expiresAtHasBeenSet = false;
282 bool m_lastModifiedRegionHasBeenSet = false;
283 bool m_lastModifiedTimeHasBeenSet = false;
284 bool m_tagsHasBeenSet = false;
285};
286
287} // namespace Model
288} // namespace Connect
289} // namespace Aws
const Aws::Vector< Aws::String > & GetRecipients() const
AWS_CONNECT_API NotificationSearchSummary()=default
AWS_CONNECT_API NotificationSearchSummary(Aws::Utils::Json::JsonView jsonValue)
NotificationSearchSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
NotificationSearchSummary & AddRecipients(RecipientsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
NotificationSearchSummary & WithId(IdT &&value)
NotificationSearchSummary & WithTags(TagsT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
NotificationSearchSummary & WithLastModifiedTime(LastModifiedTimeT &&value)
NotificationSearchSummary & WithPriority(NotificationPriority value)
NotificationSearchSummary & WithArn(ArnT &&value)
NotificationSearchSummary & WithCreatedAt(CreatedAtT &&value)
const Aws::Map< LocaleCode, Aws::String > & GetContent() const
NotificationSearchSummary & WithRecipients(RecipientsT &&value)
AWS_CONNECT_API NotificationSearchSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
NotificationSearchSummary & WithLastModifiedRegion(LastModifiedRegionT &&value)
NotificationSearchSummary & WithContent(ContentT &&value)
NotificationSearchSummary & AddContent(LocaleCode key, Aws::String value)
NotificationSearchSummary & WithInstanceId(InstanceIdT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
NotificationSearchSummary & WithExpiresAt(ExpiresAtT &&value)
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