AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GetRevisionResult.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/dataexchange/DataExchange_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace DataExchange {
24namespace Model {
26 public:
27 AWS_DATAEXCHANGE_API GetRevisionResult() = default;
30
32
35 inline const Aws::String& GetArn() const { return m_arn; }
36 template <typename ArnT = Aws::String>
37 void SetArn(ArnT&& value) {
38 m_arnHasBeenSet = true;
39 m_arn = std::forward<ArnT>(value);
40 }
41 template <typename ArnT = Aws::String>
42 GetRevisionResult& WithArn(ArnT&& value) {
43 SetArn(std::forward<ArnT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::String& GetComment() const { return m_comment; }
53 template <typename CommentT = Aws::String>
54 void SetComment(CommentT&& value) {
55 m_commentHasBeenSet = true;
56 m_comment = std::forward<CommentT>(value);
57 }
58 template <typename CommentT = Aws::String>
59 GetRevisionResult& WithComment(CommentT&& value) {
60 SetComment(std::forward<CommentT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
70 template <typename CreatedAtT = Aws::Utils::DateTime>
71 void SetCreatedAt(CreatedAtT&& value) {
72 m_createdAtHasBeenSet = true;
73 m_createdAt = std::forward<CreatedAtT>(value);
74 }
75 template <typename CreatedAtT = Aws::Utils::DateTime>
76 GetRevisionResult& WithCreatedAt(CreatedAtT&& value) {
77 SetCreatedAt(std::forward<CreatedAtT>(value));
78 return *this;
79 }
81
83
87 inline const Aws::String& GetDataSetId() const { return m_dataSetId; }
88 template <typename DataSetIdT = Aws::String>
89 void SetDataSetId(DataSetIdT&& value) {
90 m_dataSetIdHasBeenSet = true;
91 m_dataSetId = std::forward<DataSetIdT>(value);
92 }
93 template <typename DataSetIdT = Aws::String>
94 GetRevisionResult& WithDataSetId(DataSetIdT&& value) {
95 SetDataSetId(std::forward<DataSetIdT>(value));
96 return *this;
97 }
99
101
110 inline bool GetFinalized() const { return m_finalized; }
111 inline void SetFinalized(bool value) {
112 m_finalizedHasBeenSet = true;
113 m_finalized = value;
114 }
115 inline GetRevisionResult& WithFinalized(bool value) {
116 SetFinalized(value);
117 return *this;
118 }
120
122
125 inline const Aws::String& GetId() const { return m_id; }
126 template <typename IdT = Aws::String>
127 void SetId(IdT&& value) {
128 m_idHasBeenSet = true;
129 m_id = std::forward<IdT>(value);
130 }
131 template <typename IdT = Aws::String>
132 GetRevisionResult& WithId(IdT&& value) {
133 SetId(std::forward<IdT>(value));
134 return *this;
135 }
137
139
144 inline const Aws::String& GetSourceId() const { return m_sourceId; }
145 template <typename SourceIdT = Aws::String>
146 void SetSourceId(SourceIdT&& value) {
147 m_sourceIdHasBeenSet = true;
148 m_sourceId = std::forward<SourceIdT>(value);
149 }
150 template <typename SourceIdT = Aws::String>
151 GetRevisionResult& WithSourceId(SourceIdT&& value) {
152 SetSourceId(std::forward<SourceIdT>(value));
153 return *this;
154 }
156
158
161 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
162 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
163 void SetTags(TagsT&& value) {
164 m_tagsHasBeenSet = true;
165 m_tags = std::forward<TagsT>(value);
166 }
167 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
168 GetRevisionResult& WithTags(TagsT&& value) {
169 SetTags(std::forward<TagsT>(value));
170 return *this;
171 }
172 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
173 GetRevisionResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
174 m_tagsHasBeenSet = true;
175 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
185 template <typename UpdatedAtT = Aws::Utils::DateTime>
186 void SetUpdatedAt(UpdatedAtT&& value) {
187 m_updatedAtHasBeenSet = true;
188 m_updatedAt = std::forward<UpdatedAtT>(value);
189 }
190 template <typename UpdatedAtT = Aws::Utils::DateTime>
191 GetRevisionResult& WithUpdatedAt(UpdatedAtT&& value) {
192 SetUpdatedAt(std::forward<UpdatedAtT>(value));
193 return *this;
194 }
196
198
202 inline const Aws::String& GetRevocationComment() const { return m_revocationComment; }
203 template <typename RevocationCommentT = Aws::String>
204 void SetRevocationComment(RevocationCommentT&& value) {
205 m_revocationCommentHasBeenSet = true;
206 m_revocationComment = std::forward<RevocationCommentT>(value);
207 }
208 template <typename RevocationCommentT = Aws::String>
209 GetRevisionResult& WithRevocationComment(RevocationCommentT&& value) {
210 SetRevocationComment(std::forward<RevocationCommentT>(value));
211 return *this;
212 }
214
216
219 inline bool GetRevoked() const { return m_revoked; }
220 inline void SetRevoked(bool value) {
221 m_revokedHasBeenSet = true;
222 m_revoked = value;
223 }
224 inline GetRevisionResult& WithRevoked(bool value) {
225 SetRevoked(value);
226 return *this;
227 }
229
231
234 inline const Aws::Utils::DateTime& GetRevokedAt() const { return m_revokedAt; }
235 template <typename RevokedAtT = Aws::Utils::DateTime>
236 void SetRevokedAt(RevokedAtT&& value) {
237 m_revokedAtHasBeenSet = true;
238 m_revokedAt = std::forward<RevokedAtT>(value);
239 }
240 template <typename RevokedAtT = Aws::Utils::DateTime>
241 GetRevisionResult& WithRevokedAt(RevokedAtT&& value) {
242 SetRevokedAt(std::forward<RevokedAtT>(value));
243 return *this;
244 }
246
248
249 inline const Aws::String& GetRequestId() const { return m_requestId; }
250 template <typename RequestIdT = Aws::String>
251 void SetRequestId(RequestIdT&& value) {
252 m_requestIdHasBeenSet = true;
253 m_requestId = std::forward<RequestIdT>(value);
254 }
255 template <typename RequestIdT = Aws::String>
256 GetRevisionResult& WithRequestId(RequestIdT&& value) {
257 SetRequestId(std::forward<RequestIdT>(value));
258 return *this;
259 }
261 private:
262 Aws::String m_arn;
263
264 Aws::String m_comment;
265
266 Aws::Utils::DateTime m_createdAt{};
267
268 Aws::String m_dataSetId;
269
270 bool m_finalized{false};
271
272 Aws::String m_id;
273
274 Aws::String m_sourceId;
275
277
278 Aws::Utils::DateTime m_updatedAt{};
279
280 Aws::String m_revocationComment;
281
282 bool m_revoked{false};
283
284 Aws::Utils::DateTime m_revokedAt{};
285
286 Aws::String m_requestId;
287 bool m_arnHasBeenSet = false;
288 bool m_commentHasBeenSet = false;
289 bool m_createdAtHasBeenSet = false;
290 bool m_dataSetIdHasBeenSet = false;
291 bool m_finalizedHasBeenSet = false;
292 bool m_idHasBeenSet = false;
293 bool m_sourceIdHasBeenSet = false;
294 bool m_tagsHasBeenSet = false;
295 bool m_updatedAtHasBeenSet = false;
296 bool m_revocationCommentHasBeenSet = false;
297 bool m_revokedHasBeenSet = false;
298 bool m_revokedAtHasBeenSet = false;
299 bool m_requestIdHasBeenSet = false;
300};
301
302} // namespace Model
303} // namespace DataExchange
304} // namespace Aws
void SetRevocationComment(RevocationCommentT &&value)
GetRevisionResult & WithTags(TagsT &&value)
AWS_DATAEXCHANGE_API GetRevisionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetRevokedAt() const
GetRevisionResult & WithComment(CommentT &&value)
GetRevisionResult & WithArn(ArnT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::Utils::DateTime & GetUpdatedAt() const
GetRevisionResult & WithId(IdT &&value)
GetRevisionResult & WithCreatedAt(CreatedAtT &&value)
AWS_DATAEXCHANGE_API GetRevisionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetRevisionResult & WithRevocationComment(RevocationCommentT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
GetRevisionResult & WithSourceId(SourceIdT &&value)
GetRevisionResult & WithRequestId(RequestIdT &&value)
GetRevisionResult & WithUpdatedAt(UpdatedAtT &&value)
AWS_DATAEXCHANGE_API GetRevisionResult()=default
GetRevisionResult & WithFinalized(bool value)
const Aws::String & GetRevocationComment() const
GetRevisionResult & WithRevokedAt(RevokedAtT &&value)
GetRevisionResult & WithDataSetId(DataSetIdT &&value)
GetRevisionResult & WithRevoked(bool value)
GetRevisionResult & AddTags(TagsKeyT &&key, TagsValueT &&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