AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
UpdateRevisionResult.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/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 UpdateRevisionResult() = 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>
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 UpdateRevisionResult& 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 UpdateRevisionResult& 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 UpdateRevisionResult& 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 }
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>
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 UpdateRevisionResult& WithSourceId(SourceIdT&& value) {
152 SetSourceId(std::forward<SourceIdT>(value));
153 return *this;
154 }
156
158
161 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
162 template <typename UpdatedAtT = Aws::Utils::DateTime>
163 void SetUpdatedAt(UpdatedAtT&& value) {
164 m_updatedAtHasBeenSet = true;
165 m_updatedAt = std::forward<UpdatedAtT>(value);
166 }
167 template <typename UpdatedAtT = Aws::Utils::DateTime>
168 UpdateRevisionResult& WithUpdatedAt(UpdatedAtT&& value) {
169 SetUpdatedAt(std::forward<UpdatedAtT>(value));
170 return *this;
171 }
173
175
179 inline const Aws::String& GetRevocationComment() const { return m_revocationComment; }
180 template <typename RevocationCommentT = Aws::String>
181 void SetRevocationComment(RevocationCommentT&& value) {
182 m_revocationCommentHasBeenSet = true;
183 m_revocationComment = std::forward<RevocationCommentT>(value);
184 }
185 template <typename RevocationCommentT = Aws::String>
186 UpdateRevisionResult& WithRevocationComment(RevocationCommentT&& value) {
187 SetRevocationComment(std::forward<RevocationCommentT>(value));
188 return *this;
189 }
191
193
196 inline bool GetRevoked() const { return m_revoked; }
197 inline void SetRevoked(bool value) {
198 m_revokedHasBeenSet = true;
199 m_revoked = value;
200 }
201 inline UpdateRevisionResult& WithRevoked(bool value) {
202 SetRevoked(value);
203 return *this;
204 }
206
208
211 inline const Aws::Utils::DateTime& GetRevokedAt() const { return m_revokedAt; }
212 template <typename RevokedAtT = Aws::Utils::DateTime>
213 void SetRevokedAt(RevokedAtT&& value) {
214 m_revokedAtHasBeenSet = true;
215 m_revokedAt = std::forward<RevokedAtT>(value);
216 }
217 template <typename RevokedAtT = Aws::Utils::DateTime>
218 UpdateRevisionResult& WithRevokedAt(RevokedAtT&& value) {
219 SetRevokedAt(std::forward<RevokedAtT>(value));
220 return *this;
221 }
223
225
226 inline const Aws::String& GetRequestId() const { return m_requestId; }
227 template <typename RequestIdT = Aws::String>
228 void SetRequestId(RequestIdT&& value) {
229 m_requestIdHasBeenSet = true;
230 m_requestId = std::forward<RequestIdT>(value);
231 }
232 template <typename RequestIdT = Aws::String>
233 UpdateRevisionResult& WithRequestId(RequestIdT&& value) {
234 SetRequestId(std::forward<RequestIdT>(value));
235 return *this;
236 }
238 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
239
240 private:
241 Aws::String m_arn;
242
243 Aws::String m_comment;
244
245 Aws::Utils::DateTime m_createdAt{};
246
247 Aws::String m_dataSetId;
248
249 bool m_finalized{false};
250
251 Aws::String m_id;
252
253 Aws::String m_sourceId;
254
255 Aws::Utils::DateTime m_updatedAt{};
256
257 Aws::String m_revocationComment;
258
259 bool m_revoked{false};
260
261 Aws::Utils::DateTime m_revokedAt{};
262
263 Aws::String m_requestId;
264 Aws::Http::HttpResponseCode m_HttpResponseCode;
265 bool m_arnHasBeenSet = false;
266 bool m_commentHasBeenSet = false;
267 bool m_createdAtHasBeenSet = false;
268 bool m_dataSetIdHasBeenSet = false;
269 bool m_finalizedHasBeenSet = false;
270 bool m_idHasBeenSet = false;
271 bool m_sourceIdHasBeenSet = false;
272 bool m_updatedAtHasBeenSet = false;
273 bool m_revocationCommentHasBeenSet = false;
274 bool m_revokedHasBeenSet = false;
275 bool m_revokedAtHasBeenSet = false;
276 bool m_requestIdHasBeenSet = false;
277};
278
279} // namespace Model
280} // namespace DataExchange
281} // namespace Aws
AWS_DATAEXCHANGE_API UpdateRevisionResult()=default
UpdateRevisionResult & WithCreatedAt(CreatedAtT &&value)
UpdateRevisionResult & WithComment(CommentT &&value)
UpdateRevisionResult & WithRequestId(RequestIdT &&value)
UpdateRevisionResult & WithFinalized(bool value)
UpdateRevisionResult & WithDataSetId(DataSetIdT &&value)
UpdateRevisionResult & WithRevocationComment(RevocationCommentT &&value)
UpdateRevisionResult & WithSourceId(SourceIdT &&value)
UpdateRevisionResult & WithRevokedAt(RevokedAtT &&value)
AWS_DATAEXCHANGE_API UpdateRevisionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetRevocationComment(RevocationCommentT &&value)
UpdateRevisionResult & WithArn(ArnT &&value)
UpdateRevisionResult & WithUpdatedAt(UpdatedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
UpdateRevisionResult & WithRevoked(bool value)
const Aws::Utils::DateTime & GetRevokedAt() const
AWS_DATAEXCHANGE_API UpdateRevisionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue