AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
UserNotificationSummary.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/connect/model/NotificationSource.h>
11#include <aws/connect/model/NotificationStatus.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Connect {
26namespace Model {
27
35 public:
36 AWS_CONNECT_API UserNotificationSummary() = default;
39 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetNotificationId() const { return m_notificationId; }
46 inline bool NotificationIdHasBeenSet() const { return m_notificationIdHasBeenSet; }
47 template <typename NotificationIdT = Aws::String>
48 void SetNotificationId(NotificationIdT&& value) {
49 m_notificationIdHasBeenSet = true;
50 m_notificationId = std::forward<NotificationIdT>(value);
51 }
52 template <typename NotificationIdT = Aws::String>
53 UserNotificationSummary& WithNotificationId(NotificationIdT&& value) {
54 SetNotificationId(std::forward<NotificationIdT>(value));
55 return *this;
56 }
58
60
64 inline NotificationStatus GetNotificationStatus() const { return m_notificationStatus; }
65 inline bool NotificationStatusHasBeenSet() const { return m_notificationStatusHasBeenSet; }
67 m_notificationStatusHasBeenSet = true;
68 m_notificationStatus = value;
69 }
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::String& GetRecipientId() const { return m_recipientId; }
99 inline bool RecipientIdHasBeenSet() const { return m_recipientIdHasBeenSet; }
100 template <typename RecipientIdT = Aws::String>
101 void SetRecipientId(RecipientIdT&& value) {
102 m_recipientIdHasBeenSet = true;
103 m_recipientId = std::forward<RecipientIdT>(value);
104 }
105 template <typename RecipientIdT = Aws::String>
107 SetRecipientId(std::forward<RecipientIdT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::Map<LocaleCode, Aws::String>& GetContent() const { return m_content; }
117 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
118 template <typename ContentT = Aws::Map<LocaleCode, Aws::String>>
119 void SetContent(ContentT&& value) {
120 m_contentHasBeenSet = true;
121 m_content = std::forward<ContentT>(value);
122 }
123 template <typename ContentT = Aws::Map<LocaleCode, Aws::String>>
125 SetContent(std::forward<ContentT>(value));
126 return *this;
127 }
129 m_contentHasBeenSet = true;
130 m_content.emplace(key, value);
131 return *this;
132 }
134
136
139 inline NotificationPriority GetPriority() const { return m_priority; }
140 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
142 m_priorityHasBeenSet = true;
143 m_priority = value;
144 }
146 SetPriority(value);
147 return *this;
148 }
150
152
156 inline NotificationSource GetSource() const { return m_source; }
157 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
158 inline void SetSource(NotificationSource value) {
159 m_sourceHasBeenSet = true;
160 m_source = value;
161 }
163 SetSource(value);
164 return *this;
165 }
167
169
172 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
173 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
174 template <typename CreatedAtT = Aws::Utils::DateTime>
175 void SetCreatedAt(CreatedAtT&& value) {
176 m_createdAtHasBeenSet = true;
177 m_createdAt = std::forward<CreatedAtT>(value);
178 }
179 template <typename CreatedAtT = Aws::Utils::DateTime>
181 SetCreatedAt(std::forward<CreatedAtT>(value));
182 return *this;
183 }
185
187
190 inline const Aws::Utils::DateTime& GetExpiresAt() const { return m_expiresAt; }
191 inline bool ExpiresAtHasBeenSet() const { return m_expiresAtHasBeenSet; }
192 template <typename ExpiresAtT = Aws::Utils::DateTime>
193 void SetExpiresAt(ExpiresAtT&& value) {
194 m_expiresAtHasBeenSet = true;
195 m_expiresAt = std::forward<ExpiresAtT>(value);
196 }
197 template <typename ExpiresAtT = Aws::Utils::DateTime>
199 SetExpiresAt(std::forward<ExpiresAtT>(value));
200 return *this;
201 }
203 private:
204 Aws::String m_notificationId;
205
207
208 Aws::String m_instanceId;
209
210 Aws::String m_recipientId;
211
213
215
217
218 Aws::Utils::DateTime m_createdAt{};
219
220 Aws::Utils::DateTime m_expiresAt{};
221 bool m_notificationIdHasBeenSet = false;
222 bool m_notificationStatusHasBeenSet = false;
223 bool m_instanceIdHasBeenSet = false;
224 bool m_recipientIdHasBeenSet = false;
225 bool m_contentHasBeenSet = false;
226 bool m_priorityHasBeenSet = false;
227 bool m_sourceHasBeenSet = false;
228 bool m_createdAtHasBeenSet = false;
229 bool m_expiresAtHasBeenSet = false;
230};
231
232} // namespace Model
233} // namespace Connect
234} // namespace Aws
UserNotificationSummary & WithInstanceId(InstanceIdT &&value)
UserNotificationSummary & WithExpiresAt(ExpiresAtT &&value)
UserNotificationSummary & WithCreatedAt(CreatedAtT &&value)
AWS_CONNECT_API UserNotificationSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API UserNotificationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECT_API UserNotificationSummary()=default
UserNotificationSummary & WithRecipientId(RecipientIdT &&value)
UserNotificationSummary & WithNotificationId(NotificationIdT &&value)
UserNotificationSummary & AddContent(LocaleCode key, Aws::String value)
UserNotificationSummary & WithContent(ContentT &&value)
const Aws::Utils::DateTime & GetExpiresAt() const
const Aws::Utils::DateTime & GetCreatedAt() const
UserNotificationSummary & WithPriority(NotificationPriority value)
UserNotificationSummary & WithNotificationStatus(NotificationStatus value)
const Aws::Map< LocaleCode, Aws::String > & GetContent() const
UserNotificationSummary & WithSource(NotificationSource 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
Aws::Utils::Json::JsonValue JsonValue