AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
RevisionEntry.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 {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DataExchange {
21namespace Model {
22
30 public:
31 AWS_DATAEXCHANGE_API RevisionEntry() = default;
32 AWS_DATAEXCHANGE_API RevisionEntry(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DATAEXCHANGE_API RevisionEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetArn() const { return m_arn; }
41 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
42 template <typename ArnT = Aws::String>
43 void SetArn(ArnT&& value) {
44 m_arnHasBeenSet = true;
45 m_arn = std::forward<ArnT>(value);
46 }
47 template <typename ArnT = Aws::String>
48 RevisionEntry& WithArn(ArnT&& value) {
49 SetArn(std::forward<ArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetComment() const { return m_comment; }
59 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
60 template <typename CommentT = Aws::String>
61 void SetComment(CommentT&& value) {
62 m_commentHasBeenSet = true;
63 m_comment = std::forward<CommentT>(value);
64 }
65 template <typename CommentT = Aws::String>
66 RevisionEntry& WithComment(CommentT&& value) {
67 SetComment(std::forward<CommentT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
77 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
78 template <typename CreatedAtT = Aws::Utils::DateTime>
79 void SetCreatedAt(CreatedAtT&& value) {
80 m_createdAtHasBeenSet = true;
81 m_createdAt = std::forward<CreatedAtT>(value);
82 }
83 template <typename CreatedAtT = Aws::Utils::DateTime>
84 RevisionEntry& WithCreatedAt(CreatedAtT&& value) {
85 SetCreatedAt(std::forward<CreatedAtT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::String& GetDataSetId() const { return m_dataSetId; }
96 inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; }
97 template <typename DataSetIdT = Aws::String>
98 void SetDataSetId(DataSetIdT&& value) {
99 m_dataSetIdHasBeenSet = true;
100 m_dataSetId = std::forward<DataSetIdT>(value);
101 }
102 template <typename DataSetIdT = Aws::String>
103 RevisionEntry& WithDataSetId(DataSetIdT&& value) {
104 SetDataSetId(std::forward<DataSetIdT>(value));
105 return *this;
106 }
108
110
119 inline bool GetFinalized() const { return m_finalized; }
120 inline bool FinalizedHasBeenSet() const { return m_finalizedHasBeenSet; }
121 inline void SetFinalized(bool value) {
122 m_finalizedHasBeenSet = true;
123 m_finalized = value;
124 }
125 inline RevisionEntry& WithFinalized(bool value) {
126 SetFinalized(value);
127 return *this;
128 }
130
132
135 inline const Aws::String& GetId() const { return m_id; }
136 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
137 template <typename IdT = Aws::String>
138 void SetId(IdT&& value) {
139 m_idHasBeenSet = true;
140 m_id = std::forward<IdT>(value);
141 }
142 template <typename IdT = Aws::String>
143 RevisionEntry& WithId(IdT&& value) {
144 SetId(std::forward<IdT>(value));
145 return *this;
146 }
148
150
155 inline const Aws::String& GetSourceId() const { return m_sourceId; }
156 inline bool SourceIdHasBeenSet() const { return m_sourceIdHasBeenSet; }
157 template <typename SourceIdT = Aws::String>
158 void SetSourceId(SourceIdT&& value) {
159 m_sourceIdHasBeenSet = true;
160 m_sourceId = std::forward<SourceIdT>(value);
161 }
162 template <typename SourceIdT = Aws::String>
163 RevisionEntry& WithSourceId(SourceIdT&& value) {
164 SetSourceId(std::forward<SourceIdT>(value));
165 return *this;
166 }
168
170
173 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
174 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
175 template <typename UpdatedAtT = Aws::Utils::DateTime>
176 void SetUpdatedAt(UpdatedAtT&& value) {
177 m_updatedAtHasBeenSet = true;
178 m_updatedAt = std::forward<UpdatedAtT>(value);
179 }
180 template <typename UpdatedAtT = Aws::Utils::DateTime>
181 RevisionEntry& WithUpdatedAt(UpdatedAtT&& value) {
182 SetUpdatedAt(std::forward<UpdatedAtT>(value));
183 return *this;
184 }
186
188
192 inline const Aws::String& GetRevocationComment() const { return m_revocationComment; }
193 inline bool RevocationCommentHasBeenSet() const { return m_revocationCommentHasBeenSet; }
194 template <typename RevocationCommentT = Aws::String>
195 void SetRevocationComment(RevocationCommentT&& value) {
196 m_revocationCommentHasBeenSet = true;
197 m_revocationComment = std::forward<RevocationCommentT>(value);
198 }
199 template <typename RevocationCommentT = Aws::String>
200 RevisionEntry& WithRevocationComment(RevocationCommentT&& value) {
201 SetRevocationComment(std::forward<RevocationCommentT>(value));
202 return *this;
203 }
205
207
210 inline bool GetRevoked() const { return m_revoked; }
211 inline bool RevokedHasBeenSet() const { return m_revokedHasBeenSet; }
212 inline void SetRevoked(bool value) {
213 m_revokedHasBeenSet = true;
214 m_revoked = value;
215 }
216 inline RevisionEntry& WithRevoked(bool value) {
217 SetRevoked(value);
218 return *this;
219 }
221
223
226 inline const Aws::Utils::DateTime& GetRevokedAt() const { return m_revokedAt; }
227 inline bool RevokedAtHasBeenSet() const { return m_revokedAtHasBeenSet; }
228 template <typename RevokedAtT = Aws::Utils::DateTime>
229 void SetRevokedAt(RevokedAtT&& value) {
230 m_revokedAtHasBeenSet = true;
231 m_revokedAt = std::forward<RevokedAtT>(value);
232 }
233 template <typename RevokedAtT = Aws::Utils::DateTime>
234 RevisionEntry& WithRevokedAt(RevokedAtT&& value) {
235 SetRevokedAt(std::forward<RevokedAtT>(value));
236 return *this;
237 }
239 private:
240 Aws::String m_arn;
241
242 Aws::String m_comment;
243
244 Aws::Utils::DateTime m_createdAt{};
245
246 Aws::String m_dataSetId;
247
248 bool m_finalized{false};
249
250 Aws::String m_id;
251
252 Aws::String m_sourceId;
253
254 Aws::Utils::DateTime m_updatedAt{};
255
256 Aws::String m_revocationComment;
257
258 bool m_revoked{false};
259
260 Aws::Utils::DateTime m_revokedAt{};
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};
273
274} // namespace Model
275} // namespace DataExchange
276} // namespace Aws
const Aws::String & GetId() const
RevisionEntry & WithUpdatedAt(UpdatedAtT &&value)
void SetUpdatedAt(UpdatedAtT &&value)
void SetRevokedAt(RevokedAtT &&value)
bool RevocationCommentHasBeenSet() const
void SetDataSetId(DataSetIdT &&value)
void SetArn(ArnT &&value)
bool GetFinalized() const
const Aws::String & GetSourceId() const
RevisionEntry & WithFinalized(bool value)
const Aws::String & GetArn() const
const Aws::Utils::DateTime & GetUpdatedAt() const
AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DATAEXCHANGE_API RevisionEntry()=default
bool ArnHasBeenSet() const
bool CommentHasBeenSet() const
void SetCreatedAt(CreatedAtT &&value)
void SetSourceId(SourceIdT &&value)
const Aws::String & GetComment() const
bool FinalizedHasBeenSet() const
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::String & GetDataSetId() const
const Aws::String & GetRevocationComment() const
void SetId(IdT &&value)
bool DataSetIdHasBeenSet() const
bool CreatedAtHasBeenSet() const
AWS_DATAEXCHANGE_API RevisionEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetFinalized(bool value)
bool RevokedHasBeenSet() const
RevisionEntry & WithRevocationComment(RevocationCommentT &&value)
bool GetRevoked() const
RevisionEntry & WithArn(ArnT &&value)
void SetRevocationComment(RevocationCommentT &&value)
void SetComment(CommentT &&value)
bool IdHasBeenSet() const
bool SourceIdHasBeenSet() const
void SetRevoked(bool value)
RevisionEntry & WithComment(CommentT &&value)
RevisionEntry & WithId(IdT &&value)
bool RevokedAtHasBeenSet() const
const Aws::Utils::DateTime & GetRevokedAt() const
RevisionEntry & WithRevokedAt(RevokedAtT &&value)
AWS_DATAEXCHANGE_API RevisionEntry(Aws::Utils::Json::JsonView jsonValue)
RevisionEntry & WithRevoked(bool value)
bool UpdatedAtHasBeenSet() const
RevisionEntry & WithCreatedAt(CreatedAtT &&value)
RevisionEntry & WithSourceId(SourceIdT &&value)
RevisionEntry & WithDataSetId(DataSetIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue