AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetRevisionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/dataexchange/DataExchange_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace DataExchange {
25namespace Model {
27 public:
28 AWS_DATAEXCHANGE_API GetRevisionResult() = default;
31
33
36 inline const Aws::String& GetArn() const { return m_arn; }
37 template <typename ArnT = Aws::String>
38 void SetArn(ArnT&& value) {
39 m_arnHasBeenSet = true;
40 m_arn = std::forward<ArnT>(value);
41 }
42 template <typename ArnT = Aws::String>
43 GetRevisionResult& WithArn(ArnT&& value) {
44 SetArn(std::forward<ArnT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetComment() const { return m_comment; }
54 template <typename CommentT = Aws::String>
55 void SetComment(CommentT&& value) {
56 m_commentHasBeenSet = true;
57 m_comment = std::forward<CommentT>(value);
58 }
59 template <typename CommentT = Aws::String>
60 GetRevisionResult& WithComment(CommentT&& value) {
61 SetComment(std::forward<CommentT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
71 template <typename CreatedAtT = Aws::Utils::DateTime>
72 void SetCreatedAt(CreatedAtT&& value) {
73 m_createdAtHasBeenSet = true;
74 m_createdAt = std::forward<CreatedAtT>(value);
75 }
76 template <typename CreatedAtT = Aws::Utils::DateTime>
77 GetRevisionResult& WithCreatedAt(CreatedAtT&& value) {
78 SetCreatedAt(std::forward<CreatedAtT>(value));
79 return *this;
80 }
82
84
88 inline const Aws::String& GetDataSetId() const { return m_dataSetId; }
89 template <typename DataSetIdT = Aws::String>
90 void SetDataSetId(DataSetIdT&& value) {
91 m_dataSetIdHasBeenSet = true;
92 m_dataSetId = std::forward<DataSetIdT>(value);
93 }
94 template <typename DataSetIdT = Aws::String>
95 GetRevisionResult& WithDataSetId(DataSetIdT&& value) {
96 SetDataSetId(std::forward<DataSetIdT>(value));
97 return *this;
98 }
100
102
111 inline bool GetFinalized() const { return m_finalized; }
112 inline void SetFinalized(bool value) {
113 m_finalizedHasBeenSet = true;
114 m_finalized = value;
115 }
116 inline GetRevisionResult& WithFinalized(bool value) {
117 SetFinalized(value);
118 return *this;
119 }
121
123
126 inline const Aws::String& GetId() const { return m_id; }
127 template <typename IdT = Aws::String>
128 void SetId(IdT&& value) {
129 m_idHasBeenSet = true;
130 m_id = std::forward<IdT>(value);
131 }
132 template <typename IdT = Aws::String>
133 GetRevisionResult& WithId(IdT&& value) {
134 SetId(std::forward<IdT>(value));
135 return *this;
136 }
138
140
145 inline const Aws::String& GetSourceId() const { return m_sourceId; }
146 template <typename SourceIdT = Aws::String>
147 void SetSourceId(SourceIdT&& value) {
148 m_sourceIdHasBeenSet = true;
149 m_sourceId = std::forward<SourceIdT>(value);
150 }
151 template <typename SourceIdT = Aws::String>
152 GetRevisionResult& WithSourceId(SourceIdT&& value) {
153 SetSourceId(std::forward<SourceIdT>(value));
154 return *this;
155 }
157
159
162 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
163 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
164 void SetTags(TagsT&& value) {
165 m_tagsHasBeenSet = true;
166 m_tags = std::forward<TagsT>(value);
167 }
168 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
169 GetRevisionResult& WithTags(TagsT&& value) {
170 SetTags(std::forward<TagsT>(value));
171 return *this;
172 }
173 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
174 GetRevisionResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
175 m_tagsHasBeenSet = true;
176 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
177 return *this;
178 }
180
182
185 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
186 template <typename UpdatedAtT = Aws::Utils::DateTime>
187 void SetUpdatedAt(UpdatedAtT&& value) {
188 m_updatedAtHasBeenSet = true;
189 m_updatedAt = std::forward<UpdatedAtT>(value);
190 }
191 template <typename UpdatedAtT = Aws::Utils::DateTime>
192 GetRevisionResult& WithUpdatedAt(UpdatedAtT&& value) {
193 SetUpdatedAt(std::forward<UpdatedAtT>(value));
194 return *this;
195 }
197
199
203 inline const Aws::String& GetRevocationComment() const { return m_revocationComment; }
204 template <typename RevocationCommentT = Aws::String>
205 void SetRevocationComment(RevocationCommentT&& value) {
206 m_revocationCommentHasBeenSet = true;
207 m_revocationComment = std::forward<RevocationCommentT>(value);
208 }
209 template <typename RevocationCommentT = Aws::String>
210 GetRevisionResult& WithRevocationComment(RevocationCommentT&& value) {
211 SetRevocationComment(std::forward<RevocationCommentT>(value));
212 return *this;
213 }
215
217
220 inline bool GetRevoked() const { return m_revoked; }
221 inline void SetRevoked(bool value) {
222 m_revokedHasBeenSet = true;
223 m_revoked = value;
224 }
225 inline GetRevisionResult& WithRevoked(bool value) {
226 SetRevoked(value);
227 return *this;
228 }
230
232
235 inline const Aws::Utils::DateTime& GetRevokedAt() const { return m_revokedAt; }
236 template <typename RevokedAtT = Aws::Utils::DateTime>
237 void SetRevokedAt(RevokedAtT&& value) {
238 m_revokedAtHasBeenSet = true;
239 m_revokedAt = std::forward<RevokedAtT>(value);
240 }
241 template <typename RevokedAtT = Aws::Utils::DateTime>
242 GetRevisionResult& WithRevokedAt(RevokedAtT&& value) {
243 SetRevokedAt(std::forward<RevokedAtT>(value));
244 return *this;
245 }
247
249
250 inline const Aws::String& GetRequestId() const { return m_requestId; }
251 template <typename RequestIdT = Aws::String>
252 void SetRequestId(RequestIdT&& value) {
253 m_requestIdHasBeenSet = true;
254 m_requestId = std::forward<RequestIdT>(value);
255 }
256 template <typename RequestIdT = Aws::String>
257 GetRevisionResult& WithRequestId(RequestIdT&& value) {
258 SetRequestId(std::forward<RequestIdT>(value));
259 return *this;
260 }
262 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
263
264 private:
265 Aws::String m_arn;
266
267 Aws::String m_comment;
268
269 Aws::Utils::DateTime m_createdAt{};
270
271 Aws::String m_dataSetId;
272
273 bool m_finalized{false};
274
275 Aws::String m_id;
276
277 Aws::String m_sourceId;
278
280
281 Aws::Utils::DateTime m_updatedAt{};
282
283 Aws::String m_revocationComment;
284
285 bool m_revoked{false};
286
287 Aws::Utils::DateTime m_revokedAt{};
288
289 Aws::String m_requestId;
290 Aws::Http::HttpResponseCode m_HttpResponseCode;
291 bool m_arnHasBeenSet = false;
292 bool m_commentHasBeenSet = false;
293 bool m_createdAtHasBeenSet = false;
294 bool m_dataSetIdHasBeenSet = false;
295 bool m_finalizedHasBeenSet = false;
296 bool m_idHasBeenSet = false;
297 bool m_sourceIdHasBeenSet = false;
298 bool m_tagsHasBeenSet = false;
299 bool m_updatedAtHasBeenSet = false;
300 bool m_revocationCommentHasBeenSet = false;
301 bool m_revokedHasBeenSet = false;
302 bool m_revokedAtHasBeenSet = false;
303 bool m_requestIdHasBeenSet = false;
304};
305
306} // namespace Model
307} // namespace DataExchange
308} // 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)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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