AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
GetRevisionResult.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 <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace DataExchange
26{
27namespace Model
28{
30 {
31 public:
32 AWS_DATAEXCHANGE_API GetRevisionResult() = default;
35
36
38
41 inline const Aws::String& GetArn() const { return m_arn; }
42 template<typename ArnT = Aws::String>
43 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
44 template<typename ArnT = Aws::String>
45 GetRevisionResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
47
49
52 inline const Aws::String& GetComment() const { return m_comment; }
53 template<typename CommentT = Aws::String>
54 void SetComment(CommentT&& value) { m_commentHasBeenSet = true; m_comment = std::forward<CommentT>(value); }
55 template<typename CommentT = Aws::String>
56 GetRevisionResult& WithComment(CommentT&& value) { SetComment(std::forward<CommentT>(value)); return *this;}
58
60
63 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
64 template<typename CreatedAtT = Aws::Utils::DateTime>
65 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
66 template<typename CreatedAtT = Aws::Utils::DateTime>
67 GetRevisionResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
69
71
75 inline const Aws::String& GetDataSetId() const { return m_dataSetId; }
76 template<typename DataSetIdT = Aws::String>
77 void SetDataSetId(DataSetIdT&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::forward<DataSetIdT>(value); }
78 template<typename DataSetIdT = Aws::String>
79 GetRevisionResult& WithDataSetId(DataSetIdT&& value) { SetDataSetId(std::forward<DataSetIdT>(value)); return *this;}
81
83
92 inline bool GetFinalized() const { return m_finalized; }
93 inline void SetFinalized(bool value) { m_finalizedHasBeenSet = true; m_finalized = value; }
94 inline GetRevisionResult& WithFinalized(bool value) { SetFinalized(value); return *this;}
96
98
101 inline const Aws::String& GetId() const { return m_id; }
102 template<typename IdT = Aws::String>
103 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
104 template<typename IdT = Aws::String>
105 GetRevisionResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
107
109
114 inline const Aws::String& GetSourceId() const { return m_sourceId; }
115 template<typename SourceIdT = Aws::String>
116 void SetSourceId(SourceIdT&& value) { m_sourceIdHasBeenSet = true; m_sourceId = std::forward<SourceIdT>(value); }
117 template<typename SourceIdT = Aws::String>
118 GetRevisionResult& WithSourceId(SourceIdT&& value) { SetSourceId(std::forward<SourceIdT>(value)); return *this;}
120
122
125 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
126 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
127 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
128 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
129 GetRevisionResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
130 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
131 GetRevisionResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
132 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
133 }
135
137
140 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
141 template<typename UpdatedAtT = Aws::Utils::DateTime>
142 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
143 template<typename UpdatedAtT = Aws::Utils::DateTime>
144 GetRevisionResult& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
146
148
152 inline const Aws::String& GetRevocationComment() const { return m_revocationComment; }
153 template<typename RevocationCommentT = Aws::String>
154 void SetRevocationComment(RevocationCommentT&& value) { m_revocationCommentHasBeenSet = true; m_revocationComment = std::forward<RevocationCommentT>(value); }
155 template<typename RevocationCommentT = Aws::String>
156 GetRevisionResult& WithRevocationComment(RevocationCommentT&& value) { SetRevocationComment(std::forward<RevocationCommentT>(value)); return *this;}
158
160
163 inline bool GetRevoked() const { return m_revoked; }
164 inline void SetRevoked(bool value) { m_revokedHasBeenSet = true; m_revoked = value; }
165 inline GetRevisionResult& WithRevoked(bool value) { SetRevoked(value); return *this;}
167
169
172 inline const Aws::Utils::DateTime& GetRevokedAt() const { return m_revokedAt; }
173 template<typename RevokedAtT = Aws::Utils::DateTime>
174 void SetRevokedAt(RevokedAtT&& value) { m_revokedAtHasBeenSet = true; m_revokedAt = std::forward<RevokedAtT>(value); }
175 template<typename RevokedAtT = Aws::Utils::DateTime>
176 GetRevisionResult& WithRevokedAt(RevokedAtT&& value) { SetRevokedAt(std::forward<RevokedAtT>(value)); return *this;}
178
180
181 inline const Aws::String& GetRequestId() const { return m_requestId; }
182 template<typename RequestIdT = Aws::String>
183 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
184 template<typename RequestIdT = Aws::String>
185 GetRevisionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
187 private:
188
189 Aws::String m_arn;
190 bool m_arnHasBeenSet = false;
191
192 Aws::String m_comment;
193 bool m_commentHasBeenSet = false;
194
195 Aws::Utils::DateTime m_createdAt{};
196 bool m_createdAtHasBeenSet = false;
197
198 Aws::String m_dataSetId;
199 bool m_dataSetIdHasBeenSet = false;
200
201 bool m_finalized{false};
202 bool m_finalizedHasBeenSet = false;
203
204 Aws::String m_id;
205 bool m_idHasBeenSet = false;
206
207 Aws::String m_sourceId;
208 bool m_sourceIdHasBeenSet = false;
209
211 bool m_tagsHasBeenSet = false;
212
213 Aws::Utils::DateTime m_updatedAt{};
214 bool m_updatedAtHasBeenSet = false;
215
216 Aws::String m_revocationComment;
217 bool m_revocationCommentHasBeenSet = false;
218
219 bool m_revoked{false};
220 bool m_revokedHasBeenSet = false;
221
222 Aws::Utils::DateTime m_revokedAt{};
223 bool m_revokedAtHasBeenSet = false;
224
225 Aws::String m_requestId;
226 bool m_requestIdHasBeenSet = false;
227 };
228
229} // namespace Model
230} // namespace DataExchange
231} // 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)
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