AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
RevisionEntry.h
1
6#pragma once
7#include <aws/dataexchange/DataExchange_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DataExchange
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_DATAEXCHANGE_API RevisionEntry() = default;
37 AWS_DATAEXCHANGE_API RevisionEntry(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DATAEXCHANGE_API RevisionEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetArn() const { return m_arn; }
47 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
48 template<typename ArnT = Aws::String>
49 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
50 template<typename ArnT = Aws::String>
51 RevisionEntry& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_commentHasBeenSet = true; m_comment = std::forward<CommentT>(value); }
62 template<typename CommentT = Aws::String>
63 RevisionEntry& WithComment(CommentT&& value) { SetComment(std::forward<CommentT>(value)); return *this;}
65
67
70 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
71 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
72 template<typename CreatedAtT = Aws::Utils::DateTime>
73 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
74 template<typename CreatedAtT = Aws::Utils::DateTime>
75 RevisionEntry& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
77
79
83 inline const Aws::String& GetDataSetId() const { return m_dataSetId; }
84 inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; }
85 template<typename DataSetIdT = Aws::String>
86 void SetDataSetId(DataSetIdT&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::forward<DataSetIdT>(value); }
87 template<typename DataSetIdT = Aws::String>
88 RevisionEntry& WithDataSetId(DataSetIdT&& value) { SetDataSetId(std::forward<DataSetIdT>(value)); return *this;}
90
92
101 inline bool GetFinalized() const { return m_finalized; }
102 inline bool FinalizedHasBeenSet() const { return m_finalizedHasBeenSet; }
103 inline void SetFinalized(bool value) { m_finalizedHasBeenSet = true; m_finalized = value; }
104 inline RevisionEntry& WithFinalized(bool value) { SetFinalized(value); return *this;}
106
108
111 inline const Aws::String& GetId() const { return m_id; }
112 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
113 template<typename IdT = Aws::String>
114 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
115 template<typename IdT = Aws::String>
116 RevisionEntry& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
118
120
125 inline const Aws::String& GetSourceId() const { return m_sourceId; }
126 inline bool SourceIdHasBeenSet() const { return m_sourceIdHasBeenSet; }
127 template<typename SourceIdT = Aws::String>
128 void SetSourceId(SourceIdT&& value) { m_sourceIdHasBeenSet = true; m_sourceId = std::forward<SourceIdT>(value); }
129 template<typename SourceIdT = Aws::String>
130 RevisionEntry& WithSourceId(SourceIdT&& value) { SetSourceId(std::forward<SourceIdT>(value)); return *this;}
132
134
137 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
138 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
139 template<typename UpdatedAtT = Aws::Utils::DateTime>
140 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
141 template<typename UpdatedAtT = Aws::Utils::DateTime>
142 RevisionEntry& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
144
146
150 inline const Aws::String& GetRevocationComment() const { return m_revocationComment; }
151 inline bool RevocationCommentHasBeenSet() const { return m_revocationCommentHasBeenSet; }
152 template<typename RevocationCommentT = Aws::String>
153 void SetRevocationComment(RevocationCommentT&& value) { m_revocationCommentHasBeenSet = true; m_revocationComment = std::forward<RevocationCommentT>(value); }
154 template<typename RevocationCommentT = Aws::String>
155 RevisionEntry& WithRevocationComment(RevocationCommentT&& value) { SetRevocationComment(std::forward<RevocationCommentT>(value)); return *this;}
157
159
162 inline bool GetRevoked() const { return m_revoked; }
163 inline bool RevokedHasBeenSet() const { return m_revokedHasBeenSet; }
164 inline void SetRevoked(bool value) { m_revokedHasBeenSet = true; m_revoked = value; }
165 inline RevisionEntry& WithRevoked(bool value) { SetRevoked(value); return *this;}
167
169
172 inline const Aws::Utils::DateTime& GetRevokedAt() const { return m_revokedAt; }
173 inline bool RevokedAtHasBeenSet() const { return m_revokedAtHasBeenSet; }
174 template<typename RevokedAtT = Aws::Utils::DateTime>
175 void SetRevokedAt(RevokedAtT&& value) { m_revokedAtHasBeenSet = true; m_revokedAt = std::forward<RevokedAtT>(value); }
176 template<typename RevokedAtT = Aws::Utils::DateTime>
177 RevisionEntry& WithRevokedAt(RevokedAtT&& value) { SetRevokedAt(std::forward<RevokedAtT>(value)); return *this;}
179 private:
180
181 Aws::String m_arn;
182 bool m_arnHasBeenSet = false;
183
184 Aws::String m_comment;
185 bool m_commentHasBeenSet = false;
186
187 Aws::Utils::DateTime m_createdAt{};
188 bool m_createdAtHasBeenSet = false;
189
190 Aws::String m_dataSetId;
191 bool m_dataSetIdHasBeenSet = false;
192
193 bool m_finalized{false};
194 bool m_finalizedHasBeenSet = false;
195
196 Aws::String m_id;
197 bool m_idHasBeenSet = false;
198
199 Aws::String m_sourceId;
200 bool m_sourceIdHasBeenSet = false;
201
202 Aws::Utils::DateTime m_updatedAt{};
203 bool m_updatedAtHasBeenSet = false;
204
205 Aws::String m_revocationComment;
206 bool m_revocationCommentHasBeenSet = false;
207
208 bool m_revoked{false};
209 bool m_revokedHasBeenSet = false;
210
211 Aws::Utils::DateTime m_revokedAt{};
212 bool m_revokedAtHasBeenSet = false;
213 };
214
215} // namespace Model
216} // namespace DataExchange
217} // 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