AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
AssetEntry.h
1
6#pragma once
7#include <aws/dataexchange/DataExchange_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dataexchange/model/AssetDetails.h>
10#include <aws/dataexchange/model/AssetType.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DataExchange
25{
26namespace Model
27{
28
43 {
44 public:
45 AWS_DATAEXCHANGE_API AssetEntry() = default;
46 AWS_DATAEXCHANGE_API AssetEntry(Aws::Utils::Json::JsonView jsonValue);
47 AWS_DATAEXCHANGE_API AssetEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
48 AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
55 inline const Aws::String& GetArn() const { return m_arn; }
56 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
57 template<typename ArnT = Aws::String>
58 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
59 template<typename ArnT = Aws::String>
60 AssetEntry& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_assetDetailsHasBeenSet = true; m_assetDetails = std::forward<AssetDetailsT>(value); }
71 template<typename AssetDetailsT = AssetDetails>
72 AssetEntry& WithAssetDetails(AssetDetailsT&& value) { SetAssetDetails(std::forward<AssetDetailsT>(value)); return *this;}
74
76
79 inline AssetType GetAssetType() const { return m_assetType; }
80 inline bool AssetTypeHasBeenSet() const { return m_assetTypeHasBeenSet; }
81 inline void SetAssetType(AssetType value) { m_assetTypeHasBeenSet = true; m_assetType = value; }
82 inline AssetEntry& WithAssetType(AssetType value) { SetAssetType(value); return *this;}
84
86
89 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
90 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
91 template<typename CreatedAtT = Aws::Utils::DateTime>
92 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
93 template<typename CreatedAtT = Aws::Utils::DateTime>
94 AssetEntry& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
96
98
101 inline const Aws::String& GetDataSetId() const { return m_dataSetId; }
102 inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; }
103 template<typename DataSetIdT = Aws::String>
104 void SetDataSetId(DataSetIdT&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::forward<DataSetIdT>(value); }
105 template<typename DataSetIdT = Aws::String>
106 AssetEntry& WithDataSetId(DataSetIdT&& value) { SetDataSetId(std::forward<DataSetIdT>(value)); return *this;}
108
110
113 inline const Aws::String& GetId() const { return m_id; }
114 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
115 template<typename IdT = Aws::String>
116 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
117 template<typename IdT = Aws::String>
118 AssetEntry& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
120
122
131 inline const Aws::String& GetName() const { return m_name; }
132 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
133 template<typename NameT = Aws::String>
134 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
135 template<typename NameT = Aws::String>
136 AssetEntry& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
138
140
143 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
144 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
145 template<typename RevisionIdT = Aws::String>
146 void SetRevisionId(RevisionIdT&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::forward<RevisionIdT>(value); }
147 template<typename RevisionIdT = Aws::String>
148 AssetEntry& WithRevisionId(RevisionIdT&& value) { SetRevisionId(std::forward<RevisionIdT>(value)); return *this;}
150
152
157 inline const Aws::String& GetSourceId() const { return m_sourceId; }
158 inline bool SourceIdHasBeenSet() const { return m_sourceIdHasBeenSet; }
159 template<typename SourceIdT = Aws::String>
160 void SetSourceId(SourceIdT&& value) { m_sourceIdHasBeenSet = true; m_sourceId = std::forward<SourceIdT>(value); }
161 template<typename SourceIdT = Aws::String>
162 AssetEntry& WithSourceId(SourceIdT&& value) { SetSourceId(std::forward<SourceIdT>(value)); return *this;}
164
166
169 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
170 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
171 template<typename UpdatedAtT = Aws::Utils::DateTime>
172 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
173 template<typename UpdatedAtT = Aws::Utils::DateTime>
174 AssetEntry& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
176 private:
177
178 Aws::String m_arn;
179 bool m_arnHasBeenSet = false;
180
181 AssetDetails m_assetDetails;
182 bool m_assetDetailsHasBeenSet = false;
183
184 AssetType m_assetType{AssetType::NOT_SET};
185 bool m_assetTypeHasBeenSet = 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 Aws::String m_id;
194 bool m_idHasBeenSet = false;
195
196 Aws::String m_name;
197 bool m_nameHasBeenSet = false;
198
199 Aws::String m_revisionId;
200 bool m_revisionIdHasBeenSet = false;
201
202 Aws::String m_sourceId;
203 bool m_sourceIdHasBeenSet = false;
204
205 Aws::Utils::DateTime m_updatedAt{};
206 bool m_updatedAtHasBeenSet = false;
207 };
208
209} // namespace Model
210} // namespace DataExchange
211} // namespace Aws
Definition AssetEntry.h:43
const Aws::Utils::DateTime & GetCreatedAt() const
Definition AssetEntry.h:89
bool ArnHasBeenSet() const
Definition AssetEntry.h:56
AssetEntry & WithId(IdT &&value)
Definition AssetEntry.h:118
bool IdHasBeenSet() const
Definition AssetEntry.h:114
const Aws::String & GetArn() const
Definition AssetEntry.h:55
void SetCreatedAt(CreatedAtT &&value)
Definition AssetEntry.h:92
AssetEntry & WithName(NameT &&value)
Definition AssetEntry.h:136
const Aws::String & GetSourceId() const
Definition AssetEntry.h:157
const Aws::String & GetName() const
Definition AssetEntry.h:131
void SetId(IdT &&value)
Definition AssetEntry.h:116
void SetUpdatedAt(UpdatedAtT &&value)
Definition AssetEntry.h:172
bool NameHasBeenSet() const
Definition AssetEntry.h:132
bool AssetDetailsHasBeenSet() const
Definition AssetEntry.h:68
AWS_DATAEXCHANGE_API AssetEntry()=default
void SetDataSetId(DataSetIdT &&value)
Definition AssetEntry.h:104
void SetName(NameT &&value)
Definition AssetEntry.h:134
const Aws::String & GetId() const
Definition AssetEntry.h:113
bool AssetTypeHasBeenSet() const
Definition AssetEntry.h:80
AWS_DATAEXCHANGE_API AssetEntry(Aws::Utils::Json::JsonView jsonValue)
bool DataSetIdHasBeenSet() const
Definition AssetEntry.h:102
AssetEntry & WithAssetDetails(AssetDetailsT &&value)
Definition AssetEntry.h:72
AssetType GetAssetType() const
Definition AssetEntry.h:79
const AssetDetails & GetAssetDetails() const
Definition AssetEntry.h:67
bool CreatedAtHasBeenSet() const
Definition AssetEntry.h:90
void SetAssetType(AssetType value)
Definition AssetEntry.h:81
AssetEntry & WithArn(ArnT &&value)
Definition AssetEntry.h:60
void SetSourceId(SourceIdT &&value)
Definition AssetEntry.h:160
AssetEntry & WithDataSetId(DataSetIdT &&value)
Definition AssetEntry.h:106
AWS_DATAEXCHANGE_API AssetEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
AssetEntry & WithAssetType(AssetType value)
Definition AssetEntry.h:82
AssetEntry & WithCreatedAt(CreatedAtT &&value)
Definition AssetEntry.h:94
void SetArn(ArnT &&value)
Definition AssetEntry.h:58
AssetEntry & WithUpdatedAt(UpdatedAtT &&value)
Definition AssetEntry.h:174
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition AssetEntry.h:169
bool SourceIdHasBeenSet() const
Definition AssetEntry.h:158
AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const
bool RevisionIdHasBeenSet() const
Definition AssetEntry.h:144
bool UpdatedAtHasBeenSet() const
Definition AssetEntry.h:170
const Aws::String & GetRevisionId() const
Definition AssetEntry.h:143
AssetEntry & WithRevisionId(RevisionIdT &&value)
Definition AssetEntry.h:148
const Aws::String & GetDataSetId() const
Definition AssetEntry.h:101
void SetAssetDetails(AssetDetailsT &&value)
Definition AssetEntry.h:70
void SetRevisionId(RevisionIdT &&value)
Definition AssetEntry.h:146
AssetEntry & WithSourceId(SourceIdT &&value)
Definition AssetEntry.h:162
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue