AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
RevokeRevisionResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dataexchange/DataExchange_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace DataExchange {
23namespace Model {
25 public:
26 AWS_DATAEXCHANGE_API RevokeRevisionResult() = default;
29
31
34 inline const Aws::String& GetArn() const { return m_arn; }
35 template <typename ArnT = Aws::String>
36 void SetArn(ArnT&& value) {
37 m_arnHasBeenSet = true;
38 m_arn = std::forward<ArnT>(value);
39 }
40 template <typename ArnT = Aws::String>
42 SetArn(std::forward<ArnT>(value));
43 return *this;
44 }
46
48
51 inline const Aws::String& GetComment() const { return m_comment; }
52 template <typename CommentT = Aws::String>
53 void SetComment(CommentT&& value) {
54 m_commentHasBeenSet = true;
55 m_comment = std::forward<CommentT>(value);
56 }
57 template <typename CommentT = Aws::String>
58 RevokeRevisionResult& WithComment(CommentT&& value) {
59 SetComment(std::forward<CommentT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
69 template <typename CreatedAtT = Aws::Utils::DateTime>
70 void SetCreatedAt(CreatedAtT&& value) {
71 m_createdAtHasBeenSet = true;
72 m_createdAt = std::forward<CreatedAtT>(value);
73 }
74 template <typename CreatedAtT = Aws::Utils::DateTime>
75 RevokeRevisionResult& WithCreatedAt(CreatedAtT&& value) {
76 SetCreatedAt(std::forward<CreatedAtT>(value));
77 return *this;
78 }
80
82
86 inline const Aws::String& GetDataSetId() const { return m_dataSetId; }
87 template <typename DataSetIdT = Aws::String>
88 void SetDataSetId(DataSetIdT&& value) {
89 m_dataSetIdHasBeenSet = true;
90 m_dataSetId = std::forward<DataSetIdT>(value);
91 }
92 template <typename DataSetIdT = Aws::String>
93 RevokeRevisionResult& WithDataSetId(DataSetIdT&& value) {
94 SetDataSetId(std::forward<DataSetIdT>(value));
95 return *this;
96 }
98
100
109 inline bool GetFinalized() const { return m_finalized; }
110 inline void SetFinalized(bool value) {
111 m_finalizedHasBeenSet = true;
112 m_finalized = value;
113 }
115 SetFinalized(value);
116 return *this;
117 }
119
121
124 inline const Aws::String& GetId() const { return m_id; }
125 template <typename IdT = Aws::String>
126 void SetId(IdT&& value) {
127 m_idHasBeenSet = true;
128 m_id = std::forward<IdT>(value);
129 }
130 template <typename IdT = Aws::String>
132 SetId(std::forward<IdT>(value));
133 return *this;
134 }
136
138
143 inline const Aws::String& GetSourceId() const { return m_sourceId; }
144 template <typename SourceIdT = Aws::String>
145 void SetSourceId(SourceIdT&& value) {
146 m_sourceIdHasBeenSet = true;
147 m_sourceId = std::forward<SourceIdT>(value);
148 }
149 template <typename SourceIdT = Aws::String>
150 RevokeRevisionResult& WithSourceId(SourceIdT&& value) {
151 SetSourceId(std::forward<SourceIdT>(value));
152 return *this;
153 }
155
157
160 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
161 template <typename UpdatedAtT = Aws::Utils::DateTime>
162 void SetUpdatedAt(UpdatedAtT&& value) {
163 m_updatedAtHasBeenSet = true;
164 m_updatedAt = std::forward<UpdatedAtT>(value);
165 }
166 template <typename UpdatedAtT = Aws::Utils::DateTime>
167 RevokeRevisionResult& WithUpdatedAt(UpdatedAtT&& value) {
168 SetUpdatedAt(std::forward<UpdatedAtT>(value));
169 return *this;
170 }
172
174
178 inline const Aws::String& GetRevocationComment() const { return m_revocationComment; }
179 template <typename RevocationCommentT = Aws::String>
180 void SetRevocationComment(RevocationCommentT&& value) {
181 m_revocationCommentHasBeenSet = true;
182 m_revocationComment = std::forward<RevocationCommentT>(value);
183 }
184 template <typename RevocationCommentT = Aws::String>
185 RevokeRevisionResult& WithRevocationComment(RevocationCommentT&& value) {
186 SetRevocationComment(std::forward<RevocationCommentT>(value));
187 return *this;
188 }
190
192
195 inline bool GetRevoked() const { return m_revoked; }
196 inline void SetRevoked(bool value) {
197 m_revokedHasBeenSet = true;
198 m_revoked = value;
199 }
200 inline RevokeRevisionResult& WithRevoked(bool value) {
201 SetRevoked(value);
202 return *this;
203 }
205
207
210 inline const Aws::Utils::DateTime& GetRevokedAt() const { return m_revokedAt; }
211 template <typename RevokedAtT = Aws::Utils::DateTime>
212 void SetRevokedAt(RevokedAtT&& value) {
213 m_revokedAtHasBeenSet = true;
214 m_revokedAt = std::forward<RevokedAtT>(value);
215 }
216 template <typename RevokedAtT = Aws::Utils::DateTime>
217 RevokeRevisionResult& WithRevokedAt(RevokedAtT&& value) {
218 SetRevokedAt(std::forward<RevokedAtT>(value));
219 return *this;
220 }
222
224
225 inline const Aws::String& GetRequestId() const { return m_requestId; }
226 template <typename RequestIdT = Aws::String>
227 void SetRequestId(RequestIdT&& value) {
228 m_requestIdHasBeenSet = true;
229 m_requestId = std::forward<RequestIdT>(value);
230 }
231 template <typename RequestIdT = Aws::String>
232 RevokeRevisionResult& WithRequestId(RequestIdT&& value) {
233 SetRequestId(std::forward<RequestIdT>(value));
234 return *this;
235 }
237 private:
238 Aws::String m_arn;
239
240 Aws::String m_comment;
241
242 Aws::Utils::DateTime m_createdAt{};
243
244 Aws::String m_dataSetId;
245
246 bool m_finalized{false};
247
248 Aws::String m_id;
249
250 Aws::String m_sourceId;
251
252 Aws::Utils::DateTime m_updatedAt{};
253
254 Aws::String m_revocationComment;
255
256 bool m_revoked{false};
257
258 Aws::Utils::DateTime m_revokedAt{};
259
260 Aws::String m_requestId;
261 bool m_arnHasBeenSet = false;
262 bool m_commentHasBeenSet = false;
263 bool m_createdAtHasBeenSet = false;
264 bool m_dataSetIdHasBeenSet = false;
265 bool m_finalizedHasBeenSet = false;
266 bool m_idHasBeenSet = false;
267 bool m_sourceIdHasBeenSet = false;
268 bool m_updatedAtHasBeenSet = false;
269 bool m_revocationCommentHasBeenSet = false;
270 bool m_revokedHasBeenSet = false;
271 bool m_revokedAtHasBeenSet = false;
272 bool m_requestIdHasBeenSet = false;
273};
274
275} // namespace Model
276} // namespace DataExchange
277} // namespace Aws
RevokeRevisionResult & WithComment(CommentT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::Utils::DateTime & GetUpdatedAt() const
RevokeRevisionResult & WithRevokedAt(RevokedAtT &&value)
RevokeRevisionResult & WithRequestId(RequestIdT &&value)
AWS_DATAEXCHANGE_API RevokeRevisionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
RevokeRevisionResult & WithUpdatedAt(UpdatedAtT &&value)
AWS_DATAEXCHANGE_API RevokeRevisionResult()=default
const Aws::Utils::DateTime & GetRevokedAt() const
RevokeRevisionResult & WithRevocationComment(RevocationCommentT &&value)
RevokeRevisionResult & WithRevoked(bool value)
AWS_DATAEXCHANGE_API RevokeRevisionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
RevokeRevisionResult & WithDataSetId(DataSetIdT &&value)
void SetRevocationComment(RevocationCommentT &&value)
RevokeRevisionResult & WithSourceId(SourceIdT &&value)
RevokeRevisionResult & WithCreatedAt(CreatedAtT &&value)
RevokeRevisionResult & WithFinalized(bool value)
RevokeRevisionResult & WithArn(ArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue