AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
NotificationOutput.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/datazone/DataZone_EXPORTS.h>
11#include <aws/datazone/model/NotificationType.h>
12#include <aws/datazone/model/TaskStatus.h>
13#include <aws/datazone/model/Topic.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DataZone {
25namespace Model {
26
34 public:
35 AWS_DATAZONE_API NotificationOutput() = default;
38 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetIdentifier() const { return m_identifier; }
45 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
46 template <typename IdentifierT = Aws::String>
47 void SetIdentifier(IdentifierT&& value) {
48 m_identifierHasBeenSet = true;
49 m_identifier = std::forward<IdentifierT>(value);
50 }
51 template <typename IdentifierT = Aws::String>
52 NotificationOutput& WithIdentifier(IdentifierT&& value) {
53 SetIdentifier(std::forward<IdentifierT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
64 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
65 template <typename DomainIdentifierT = Aws::String>
66 void SetDomainIdentifier(DomainIdentifierT&& value) {
67 m_domainIdentifierHasBeenSet = true;
68 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
69 }
70 template <typename DomainIdentifierT = Aws::String>
71 NotificationOutput& WithDomainIdentifier(DomainIdentifierT&& value) {
72 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
73 return *this;
74 }
76
78
81 inline NotificationType GetType() const { return m_type; }
82 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
83 inline void SetType(NotificationType value) {
84 m_typeHasBeenSet = true;
85 m_type = value;
86 }
88 SetType(value);
89 return *this;
90 }
92
94
97 inline const Topic& GetTopic() const { return m_topic; }
98 inline bool TopicHasBeenSet() const { return m_topicHasBeenSet; }
99 template <typename TopicT = Topic>
100 void SetTopic(TopicT&& value) {
101 m_topicHasBeenSet = true;
102 m_topic = std::forward<TopicT>(value);
103 }
104 template <typename TopicT = Topic>
105 NotificationOutput& WithTopic(TopicT&& value) {
106 SetTopic(std::forward<TopicT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetTitle() const { return m_title; }
116 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
117 template <typename TitleT = Aws::String>
118 void SetTitle(TitleT&& value) {
119 m_titleHasBeenSet = true;
120 m_title = std::forward<TitleT>(value);
121 }
122 template <typename TitleT = Aws::String>
123 NotificationOutput& WithTitle(TitleT&& value) {
124 SetTitle(std::forward<TitleT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetMessage() const { return m_message; }
134 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
135 template <typename MessageT = Aws::String>
136 void SetMessage(MessageT&& value) {
137 m_messageHasBeenSet = true;
138 m_message = std::forward<MessageT>(value);
139 }
140 template <typename MessageT = Aws::String>
141 NotificationOutput& WithMessage(MessageT&& value) {
142 SetMessage(std::forward<MessageT>(value));
143 return *this;
144 }
146
148
151 inline TaskStatus GetStatus() const { return m_status; }
152 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
153 inline void SetStatus(TaskStatus value) {
154 m_statusHasBeenSet = true;
155 m_status = value;
156 }
158 SetStatus(value);
159 return *this;
160 }
162
164
167 inline const Aws::String& GetActionLink() const { return m_actionLink; }
168 inline bool ActionLinkHasBeenSet() const { return m_actionLinkHasBeenSet; }
169 template <typename ActionLinkT = Aws::String>
170 void SetActionLink(ActionLinkT&& value) {
171 m_actionLinkHasBeenSet = true;
172 m_actionLink = std::forward<ActionLinkT>(value);
173 }
174 template <typename ActionLinkT = Aws::String>
175 NotificationOutput& WithActionLink(ActionLinkT&& value) {
176 SetActionLink(std::forward<ActionLinkT>(value));
177 return *this;
178 }
180
182
185 inline const Aws::Utils::DateTime& GetCreationTimestamp() const { return m_creationTimestamp; }
186 inline bool CreationTimestampHasBeenSet() const { return m_creationTimestampHasBeenSet; }
187 template <typename CreationTimestampT = Aws::Utils::DateTime>
188 void SetCreationTimestamp(CreationTimestampT&& value) {
189 m_creationTimestampHasBeenSet = true;
190 m_creationTimestamp = std::forward<CreationTimestampT>(value);
191 }
192 template <typename CreationTimestampT = Aws::Utils::DateTime>
193 NotificationOutput& WithCreationTimestamp(CreationTimestampT&& value) {
194 SetCreationTimestamp(std::forward<CreationTimestampT>(value));
195 return *this;
196 }
198
200
203 inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const { return m_lastUpdatedTimestamp; }
204 inline bool LastUpdatedTimestampHasBeenSet() const { return m_lastUpdatedTimestampHasBeenSet; }
205 template <typename LastUpdatedTimestampT = Aws::Utils::DateTime>
206 void SetLastUpdatedTimestamp(LastUpdatedTimestampT&& value) {
207 m_lastUpdatedTimestampHasBeenSet = true;
208 m_lastUpdatedTimestamp = std::forward<LastUpdatedTimestampT>(value);
209 }
210 template <typename LastUpdatedTimestampT = Aws::Utils::DateTime>
211 NotificationOutput& WithLastUpdatedTimestamp(LastUpdatedTimestampT&& value) {
212 SetLastUpdatedTimestamp(std::forward<LastUpdatedTimestampT>(value));
213 return *this;
214 }
216
218
221 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const { return m_metadata; }
222 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
223 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
224 void SetMetadata(MetadataT&& value) {
225 m_metadataHasBeenSet = true;
226 m_metadata = std::forward<MetadataT>(value);
227 }
228 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
229 NotificationOutput& WithMetadata(MetadataT&& value) {
230 SetMetadata(std::forward<MetadataT>(value));
231 return *this;
232 }
233 template <typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::String>
234 NotificationOutput& AddMetadata(MetadataKeyT&& key, MetadataValueT&& value) {
235 m_metadataHasBeenSet = true;
236 m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
237 return *this;
238 }
240 private:
241 Aws::String m_identifier;
242
243 Aws::String m_domainIdentifier;
244
246
247 Topic m_topic;
248
249 Aws::String m_title;
250
251 Aws::String m_message;
252
254
255 Aws::String m_actionLink;
256
257 Aws::Utils::DateTime m_creationTimestamp{};
258
259 Aws::Utils::DateTime m_lastUpdatedTimestamp{};
260
262 bool m_identifierHasBeenSet = false;
263 bool m_domainIdentifierHasBeenSet = false;
264 bool m_typeHasBeenSet = false;
265 bool m_topicHasBeenSet = false;
266 bool m_titleHasBeenSet = false;
267 bool m_messageHasBeenSet = false;
268 bool m_statusHasBeenSet = false;
269 bool m_actionLinkHasBeenSet = false;
270 bool m_creationTimestampHasBeenSet = false;
271 bool m_lastUpdatedTimestampHasBeenSet = false;
272 bool m_metadataHasBeenSet = false;
273};
274
275} // namespace Model
276} // namespace DataZone
277} // namespace Aws
AWS_DATAZONE_API NotificationOutput & operator=(Aws::Utils::Json::JsonView jsonValue)
NotificationOutput & WithDomainIdentifier(DomainIdentifierT &&value)
NotificationOutput & WithIdentifier(IdentifierT &&value)
void SetLastUpdatedTimestamp(LastUpdatedTimestampT &&value)
NotificationOutput & WithTopic(TopicT &&value)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
NotificationOutput & WithLastUpdatedTimestamp(LastUpdatedTimestampT &&value)
NotificationOutput & WithStatus(TaskStatus value)
const Aws::String & GetIdentifier() const
NotificationOutput & WithCreationTimestamp(CreationTimestampT &&value)
const Aws::Utils::DateTime & GetLastUpdatedTimestamp() const
AWS_DATAZONE_API NotificationOutput()=default
NotificationOutput & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
void SetCreationTimestamp(CreationTimestampT &&value)
void SetDomainIdentifier(DomainIdentifierT &&value)
const Aws::Utils::DateTime & GetCreationTimestamp() const
NotificationOutput & WithMessage(MessageT &&value)
NotificationOutput & WithActionLink(ActionLinkT &&value)
AWS_DATAZONE_API NotificationOutput(Aws::Utils::Json::JsonView jsonValue)
NotificationOutput & WithTitle(TitleT &&value)
NotificationOutput & WithMetadata(MetadataT &&value)
NotificationOutput & WithType(NotificationType value)
const Aws::String & GetDomainIdentifier() const
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