AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AssetEntry.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#include <aws/dataexchange/model/AssetDetails.h>
11#include <aws/dataexchange/model/AssetType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DataExchange {
23namespace Model {
24
39 public:
40 AWS_DATAEXCHANGE_API AssetEntry() = default;
41 AWS_DATAEXCHANGE_API AssetEntry(Aws::Utils::Json::JsonView jsonValue);
42 AWS_DATAEXCHANGE_API AssetEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
49 inline const Aws::String& GetArn() const { return m_arn; }
50 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
51 template <typename ArnT = Aws::String>
52 void SetArn(ArnT&& value) {
53 m_arnHasBeenSet = true;
54 m_arn = std::forward<ArnT>(value);
55 }
56 template <typename ArnT = Aws::String>
57 AssetEntry& WithArn(ArnT&& value) {
58 SetArn(std::forward<ArnT>(value));
59 return *this;
60 }
62
64
67 inline const AssetDetails& GetAssetDetails() const { return m_assetDetails; }
68 inline bool AssetDetailsHasBeenSet() const { return m_assetDetailsHasBeenSet; }
69 template <typename AssetDetailsT = AssetDetails>
70 void SetAssetDetails(AssetDetailsT&& value) {
71 m_assetDetailsHasBeenSet = true;
72 m_assetDetails = std::forward<AssetDetailsT>(value);
73 }
74 template <typename AssetDetailsT = AssetDetails>
75 AssetEntry& WithAssetDetails(AssetDetailsT&& value) {
76 SetAssetDetails(std::forward<AssetDetailsT>(value));
77 return *this;
78 }
80
82
85 inline AssetType GetAssetType() const { return m_assetType; }
86 inline bool AssetTypeHasBeenSet() const { return m_assetTypeHasBeenSet; }
87 inline void SetAssetType(AssetType value) {
88 m_assetTypeHasBeenSet = true;
89 m_assetType = value;
90 }
92 SetAssetType(value);
93 return *this;
94 }
96
98
101 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
102 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
103 template <typename CreatedAtT = Aws::Utils::DateTime>
104 void SetCreatedAt(CreatedAtT&& value) {
105 m_createdAtHasBeenSet = true;
106 m_createdAt = std::forward<CreatedAtT>(value);
107 }
108 template <typename CreatedAtT = Aws::Utils::DateTime>
109 AssetEntry& WithCreatedAt(CreatedAtT&& value) {
110 SetCreatedAt(std::forward<CreatedAtT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::String& GetDataSetId() const { return m_dataSetId; }
120 inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; }
121 template <typename DataSetIdT = Aws::String>
122 void SetDataSetId(DataSetIdT&& value) {
123 m_dataSetIdHasBeenSet = true;
124 m_dataSetId = std::forward<DataSetIdT>(value);
125 }
126 template <typename DataSetIdT = Aws::String>
127 AssetEntry& WithDataSetId(DataSetIdT&& value) {
128 SetDataSetId(std::forward<DataSetIdT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::String& GetId() const { return m_id; }
138 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
139 template <typename IdT = Aws::String>
140 void SetId(IdT&& value) {
141 m_idHasBeenSet = true;
142 m_id = std::forward<IdT>(value);
143 }
144 template <typename IdT = Aws::String>
145 AssetEntry& WithId(IdT&& value) {
146 SetId(std::forward<IdT>(value));
147 return *this;
148 }
150
152
161 inline const Aws::String& GetName() const { return m_name; }
162 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
163 template <typename NameT = Aws::String>
164 void SetName(NameT&& value) {
165 m_nameHasBeenSet = true;
166 m_name = std::forward<NameT>(value);
167 }
168 template <typename NameT = Aws::String>
169 AssetEntry& WithName(NameT&& value) {
170 SetName(std::forward<NameT>(value));
171 return *this;
172 }
174
176
179 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
180 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
181 template <typename RevisionIdT = Aws::String>
182 void SetRevisionId(RevisionIdT&& value) {
183 m_revisionIdHasBeenSet = true;
184 m_revisionId = std::forward<RevisionIdT>(value);
185 }
186 template <typename RevisionIdT = Aws::String>
187 AssetEntry& WithRevisionId(RevisionIdT&& value) {
188 SetRevisionId(std::forward<RevisionIdT>(value));
189 return *this;
190 }
192
194
199 inline const Aws::String& GetSourceId() const { return m_sourceId; }
200 inline bool SourceIdHasBeenSet() const { return m_sourceIdHasBeenSet; }
201 template <typename SourceIdT = Aws::String>
202 void SetSourceId(SourceIdT&& value) {
203 m_sourceIdHasBeenSet = true;
204 m_sourceId = std::forward<SourceIdT>(value);
205 }
206 template <typename SourceIdT = Aws::String>
207 AssetEntry& WithSourceId(SourceIdT&& value) {
208 SetSourceId(std::forward<SourceIdT>(value));
209 return *this;
210 }
212
214
217 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
218 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
219 template <typename UpdatedAtT = Aws::Utils::DateTime>
220 void SetUpdatedAt(UpdatedAtT&& value) {
221 m_updatedAtHasBeenSet = true;
222 m_updatedAt = std::forward<UpdatedAtT>(value);
223 }
224 template <typename UpdatedAtT = Aws::Utils::DateTime>
225 AssetEntry& WithUpdatedAt(UpdatedAtT&& value) {
226 SetUpdatedAt(std::forward<UpdatedAtT>(value));
227 return *this;
228 }
230 private:
231 Aws::String m_arn;
232
233 AssetDetails m_assetDetails;
234
235 AssetType m_assetType{AssetType::NOT_SET};
236
237 Aws::Utils::DateTime m_createdAt{};
238
239 Aws::String m_dataSetId;
240
241 Aws::String m_id;
242
243 Aws::String m_name;
244
245 Aws::String m_revisionId;
246
247 Aws::String m_sourceId;
248
249 Aws::Utils::DateTime m_updatedAt{};
250 bool m_arnHasBeenSet = false;
251 bool m_assetDetailsHasBeenSet = false;
252 bool m_assetTypeHasBeenSet = false;
253 bool m_createdAtHasBeenSet = false;
254 bool m_dataSetIdHasBeenSet = false;
255 bool m_idHasBeenSet = false;
256 bool m_nameHasBeenSet = false;
257 bool m_revisionIdHasBeenSet = false;
258 bool m_sourceIdHasBeenSet = false;
259 bool m_updatedAtHasBeenSet = false;
260};
261
262} // namespace Model
263} // namespace DataExchange
264} // namespace Aws
Definition AssetEntry.h:38
const Aws::Utils::DateTime & GetCreatedAt() const
Definition AssetEntry.h:101
bool ArnHasBeenSet() const
Definition AssetEntry.h:50
AssetEntry & WithId(IdT &&value)
Definition AssetEntry.h:145
bool IdHasBeenSet() const
Definition AssetEntry.h:138
const Aws::String & GetArn() const
Definition AssetEntry.h:49
void SetCreatedAt(CreatedAtT &&value)
Definition AssetEntry.h:104
AssetEntry & WithName(NameT &&value)
Definition AssetEntry.h:169
const Aws::String & GetSourceId() const
Definition AssetEntry.h:199
const Aws::String & GetName() const
Definition AssetEntry.h:161
void SetId(IdT &&value)
Definition AssetEntry.h:140
void SetUpdatedAt(UpdatedAtT &&value)
Definition AssetEntry.h:220
bool NameHasBeenSet() const
Definition AssetEntry.h:162
bool AssetDetailsHasBeenSet() const
Definition AssetEntry.h:68
AWS_DATAEXCHANGE_API AssetEntry()=default
void SetDataSetId(DataSetIdT &&value)
Definition AssetEntry.h:122
void SetName(NameT &&value)
Definition AssetEntry.h:164
const Aws::String & GetId() const
Definition AssetEntry.h:137
bool AssetTypeHasBeenSet() const
Definition AssetEntry.h:86
AWS_DATAEXCHANGE_API AssetEntry(Aws::Utils::Json::JsonView jsonValue)
bool DataSetIdHasBeenSet() const
Definition AssetEntry.h:120
AssetEntry & WithAssetDetails(AssetDetailsT &&value)
Definition AssetEntry.h:75
AssetType GetAssetType() const
Definition AssetEntry.h:85
const AssetDetails & GetAssetDetails() const
Definition AssetEntry.h:67
bool CreatedAtHasBeenSet() const
Definition AssetEntry.h:102
void SetAssetType(AssetType value)
Definition AssetEntry.h:87
AssetEntry & WithArn(ArnT &&value)
Definition AssetEntry.h:57
void SetSourceId(SourceIdT &&value)
Definition AssetEntry.h:202
AssetEntry & WithDataSetId(DataSetIdT &&value)
Definition AssetEntry.h:127
AWS_DATAEXCHANGE_API AssetEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
AssetEntry & WithAssetType(AssetType value)
Definition AssetEntry.h:91
AssetEntry & WithCreatedAt(CreatedAtT &&value)
Definition AssetEntry.h:109
void SetArn(ArnT &&value)
Definition AssetEntry.h:52
AssetEntry & WithUpdatedAt(UpdatedAtT &&value)
Definition AssetEntry.h:225
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition AssetEntry.h:217
bool SourceIdHasBeenSet() const
Definition AssetEntry.h:200
AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const
bool RevisionIdHasBeenSet() const
Definition AssetEntry.h:180
bool UpdatedAtHasBeenSet() const
Definition AssetEntry.h:218
const Aws::String & GetRevisionId() const
Definition AssetEntry.h:179
AssetEntry & WithRevisionId(RevisionIdT &&value)
Definition AssetEntry.h:187
const Aws::String & GetDataSetId() const
Definition AssetEntry.h:119
void SetAssetDetails(AssetDetailsT &&value)
Definition AssetEntry.h:70
void SetRevisionId(RevisionIdT &&value)
Definition AssetEntry.h:182
AssetEntry & WithSourceId(SourceIdT &&value)
Definition AssetEntry.h:207
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue