AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
FpgaImage.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/EC2_EXPORTS.h>
12#include <aws/ec2/model/FpgaImageState.h>
13#include <aws/ec2/model/PciId.h>
14#include <aws/ec2/model/ProductCode.h>
15#include <aws/ec2/model/Tag.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Xml {
22class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace EC2 {
26namespace Model {
27
33class FpgaImage {
34 public:
35 AWS_EC2_API FpgaImage() = default;
36 AWS_EC2_API FpgaImage(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_EC2_API FpgaImage& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
43
46 inline const Aws::String& GetFpgaImageId() const { return m_fpgaImageId; }
47 inline bool FpgaImageIdHasBeenSet() const { return m_fpgaImageIdHasBeenSet; }
48 template <typename FpgaImageIdT = Aws::String>
49 void SetFpgaImageId(FpgaImageIdT&& value) {
50 m_fpgaImageIdHasBeenSet = true;
51 m_fpgaImageId = std::forward<FpgaImageIdT>(value);
52 }
53 template <typename FpgaImageIdT = Aws::String>
54 FpgaImage& WithFpgaImageId(FpgaImageIdT&& value) {
55 SetFpgaImageId(std::forward<FpgaImageIdT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetFpgaImageGlobalId() const { return m_fpgaImageGlobalId; }
65 inline bool FpgaImageGlobalIdHasBeenSet() const { return m_fpgaImageGlobalIdHasBeenSet; }
66 template <typename FpgaImageGlobalIdT = Aws::String>
67 void SetFpgaImageGlobalId(FpgaImageGlobalIdT&& value) {
68 m_fpgaImageGlobalIdHasBeenSet = true;
69 m_fpgaImageGlobalId = std::forward<FpgaImageGlobalIdT>(value);
70 }
71 template <typename FpgaImageGlobalIdT = Aws::String>
72 FpgaImage& WithFpgaImageGlobalId(FpgaImageGlobalIdT&& value) {
73 SetFpgaImageGlobalId(std::forward<FpgaImageGlobalIdT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetName() const { return m_name; }
83 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
84 template <typename NameT = Aws::String>
85 void SetName(NameT&& value) {
86 m_nameHasBeenSet = true;
87 m_name = std::forward<NameT>(value);
88 }
89 template <typename NameT = Aws::String>
90 FpgaImage& WithName(NameT&& value) {
91 SetName(std::forward<NameT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetDescription() const { return m_description; }
101 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
102 template <typename DescriptionT = Aws::String>
103 void SetDescription(DescriptionT&& value) {
104 m_descriptionHasBeenSet = true;
105 m_description = std::forward<DescriptionT>(value);
106 }
107 template <typename DescriptionT = Aws::String>
108 FpgaImage& WithDescription(DescriptionT&& value) {
109 SetDescription(std::forward<DescriptionT>(value));
110 return *this;
111 }
113
115
119 inline const Aws::String& GetShellVersion() const { return m_shellVersion; }
120 inline bool ShellVersionHasBeenSet() const { return m_shellVersionHasBeenSet; }
121 template <typename ShellVersionT = Aws::String>
122 void SetShellVersion(ShellVersionT&& value) {
123 m_shellVersionHasBeenSet = true;
124 m_shellVersion = std::forward<ShellVersionT>(value);
125 }
126 template <typename ShellVersionT = Aws::String>
127 FpgaImage& WithShellVersion(ShellVersionT&& value) {
128 SetShellVersion(std::forward<ShellVersionT>(value));
129 return *this;
130 }
132
134
137 inline const PciId& GetPciId() const { return m_pciId; }
138 inline bool PciIdHasBeenSet() const { return m_pciIdHasBeenSet; }
139 template <typename PciIdT = PciId>
140 void SetPciId(PciIdT&& value) {
141 m_pciIdHasBeenSet = true;
142 m_pciId = std::forward<PciIdT>(value);
143 }
144 template <typename PciIdT = PciId>
145 FpgaImage& WithPciId(PciIdT&& value) {
146 SetPciId(std::forward<PciIdT>(value));
147 return *this;
148 }
150
152
155 inline const FpgaImageState& GetState() const { return m_state; }
156 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
157 template <typename StateT = FpgaImageState>
158 void SetState(StateT&& value) {
159 m_stateHasBeenSet = true;
160 m_state = std::forward<StateT>(value);
161 }
162 template <typename StateT = FpgaImageState>
163 FpgaImage& WithState(StateT&& value) {
164 SetState(std::forward<StateT>(value));
165 return *this;
166 }
168
170
173 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
174 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
175 template <typename CreateTimeT = Aws::Utils::DateTime>
176 void SetCreateTime(CreateTimeT&& value) {
177 m_createTimeHasBeenSet = true;
178 m_createTime = std::forward<CreateTimeT>(value);
179 }
180 template <typename CreateTimeT = Aws::Utils::DateTime>
181 FpgaImage& WithCreateTime(CreateTimeT&& value) {
182 SetCreateTime(std::forward<CreateTimeT>(value));
183 return *this;
184 }
186
188
191 inline const Aws::Utils::DateTime& GetUpdateTime() const { return m_updateTime; }
192 inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; }
193 template <typename UpdateTimeT = Aws::Utils::DateTime>
194 void SetUpdateTime(UpdateTimeT&& value) {
195 m_updateTimeHasBeenSet = true;
196 m_updateTime = std::forward<UpdateTimeT>(value);
197 }
198 template <typename UpdateTimeT = Aws::Utils::DateTime>
199 FpgaImage& WithUpdateTime(UpdateTimeT&& value) {
200 SetUpdateTime(std::forward<UpdateTimeT>(value));
201 return *this;
202 }
204
206
209 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
210 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
211 template <typename OwnerIdT = Aws::String>
212 void SetOwnerId(OwnerIdT&& value) {
213 m_ownerIdHasBeenSet = true;
214 m_ownerId = std::forward<OwnerIdT>(value);
215 }
216 template <typename OwnerIdT = Aws::String>
217 FpgaImage& WithOwnerId(OwnerIdT&& value) {
218 SetOwnerId(std::forward<OwnerIdT>(value));
219 return *this;
220 }
222
224
228 inline const Aws::String& GetOwnerAlias() const { return m_ownerAlias; }
229 inline bool OwnerAliasHasBeenSet() const { return m_ownerAliasHasBeenSet; }
230 template <typename OwnerAliasT = Aws::String>
231 void SetOwnerAlias(OwnerAliasT&& value) {
232 m_ownerAliasHasBeenSet = true;
233 m_ownerAlias = std::forward<OwnerAliasT>(value);
234 }
235 template <typename OwnerAliasT = Aws::String>
236 FpgaImage& WithOwnerAlias(OwnerAliasT&& value) {
237 SetOwnerAlias(std::forward<OwnerAliasT>(value));
238 return *this;
239 }
241
243
246 inline const Aws::Vector<ProductCode>& GetProductCodes() const { return m_productCodes; }
247 inline bool ProductCodesHasBeenSet() const { return m_productCodesHasBeenSet; }
248 template <typename ProductCodesT = Aws::Vector<ProductCode>>
249 void SetProductCodes(ProductCodesT&& value) {
250 m_productCodesHasBeenSet = true;
251 m_productCodes = std::forward<ProductCodesT>(value);
252 }
253 template <typename ProductCodesT = Aws::Vector<ProductCode>>
254 FpgaImage& WithProductCodes(ProductCodesT&& value) {
255 SetProductCodes(std::forward<ProductCodesT>(value));
256 return *this;
257 }
258 template <typename ProductCodesT = ProductCode>
259 FpgaImage& AddProductCodes(ProductCodesT&& value) {
260 m_productCodesHasBeenSet = true;
261 m_productCodes.emplace_back(std::forward<ProductCodesT>(value));
262 return *this;
263 }
265
267
270 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
271 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
272 template <typename TagsT = Aws::Vector<Tag>>
273 void SetTags(TagsT&& value) {
274 m_tagsHasBeenSet = true;
275 m_tags = std::forward<TagsT>(value);
276 }
277 template <typename TagsT = Aws::Vector<Tag>>
278 FpgaImage& WithTags(TagsT&& value) {
279 SetTags(std::forward<TagsT>(value));
280 return *this;
281 }
282 template <typename TagsT = Tag>
283 FpgaImage& AddTags(TagsT&& value) {
284 m_tagsHasBeenSet = true;
285 m_tags.emplace_back(std::forward<TagsT>(value));
286 return *this;
287 }
289
291
294 inline bool GetPublic() const { return m_public; }
295 inline bool PublicHasBeenSet() const { return m_publicHasBeenSet; }
296 inline void SetPublic(bool value) {
297 m_publicHasBeenSet = true;
298 m_public = value;
299 }
300 inline FpgaImage& WithPublic(bool value) {
301 SetPublic(value);
302 return *this;
303 }
305
307
310 inline bool GetDataRetentionSupport() const { return m_dataRetentionSupport; }
311 inline bool DataRetentionSupportHasBeenSet() const { return m_dataRetentionSupportHasBeenSet; }
312 inline void SetDataRetentionSupport(bool value) {
313 m_dataRetentionSupportHasBeenSet = true;
314 m_dataRetentionSupport = value;
315 }
318 return *this;
319 }
321
323
326 inline const Aws::Vector<Aws::String>& GetInstanceTypes() const { return m_instanceTypes; }
327 inline bool InstanceTypesHasBeenSet() const { return m_instanceTypesHasBeenSet; }
328 template <typename InstanceTypesT = Aws::Vector<Aws::String>>
329 void SetInstanceTypes(InstanceTypesT&& value) {
330 m_instanceTypesHasBeenSet = true;
331 m_instanceTypes = std::forward<InstanceTypesT>(value);
332 }
333 template <typename InstanceTypesT = Aws::Vector<Aws::String>>
334 FpgaImage& WithInstanceTypes(InstanceTypesT&& value) {
335 SetInstanceTypes(std::forward<InstanceTypesT>(value));
336 return *this;
337 }
338 template <typename InstanceTypesT = Aws::String>
339 FpgaImage& AddInstanceTypes(InstanceTypesT&& value) {
340 m_instanceTypesHasBeenSet = true;
341 m_instanceTypes.emplace_back(std::forward<InstanceTypesT>(value));
342 return *this;
343 }
345 private:
346 Aws::String m_fpgaImageId;
347
348 Aws::String m_fpgaImageGlobalId;
349
350 Aws::String m_name;
351
352 Aws::String m_description;
353
354 Aws::String m_shellVersion;
355
356 PciId m_pciId;
357
358 FpgaImageState m_state;
359
360 Aws::Utils::DateTime m_createTime{};
361
362 Aws::Utils::DateTime m_updateTime{};
363
364 Aws::String m_ownerId;
365
366 Aws::String m_ownerAlias;
367
368 Aws::Vector<ProductCode> m_productCodes;
369
370 Aws::Vector<Tag> m_tags;
371
372 bool m_public{false};
373
374 bool m_dataRetentionSupport{false};
375
376 Aws::Vector<Aws::String> m_instanceTypes;
377 bool m_fpgaImageIdHasBeenSet = false;
378 bool m_fpgaImageGlobalIdHasBeenSet = false;
379 bool m_nameHasBeenSet = false;
380 bool m_descriptionHasBeenSet = false;
381 bool m_shellVersionHasBeenSet = false;
382 bool m_pciIdHasBeenSet = false;
383 bool m_stateHasBeenSet = false;
384 bool m_createTimeHasBeenSet = false;
385 bool m_updateTimeHasBeenSet = false;
386 bool m_ownerIdHasBeenSet = false;
387 bool m_ownerAliasHasBeenSet = false;
388 bool m_productCodesHasBeenSet = false;
389 bool m_tagsHasBeenSet = false;
390 bool m_publicHasBeenSet = false;
391 bool m_dataRetentionSupportHasBeenSet = false;
392 bool m_instanceTypesHasBeenSet = false;
393};
394
395} // namespace Model
396} // namespace EC2
397} // namespace Aws
FpgaImage & WithPciId(PciIdT &&value)
Definition FpgaImage.h:145
FpgaImage & AddProductCodes(ProductCodesT &&value)
Definition FpgaImage.h:259
bool InstanceTypesHasBeenSet() const
Definition FpgaImage.h:327
void SetState(StateT &&value)
Definition FpgaImage.h:158
bool OwnerAliasHasBeenSet() const
Definition FpgaImage.h:229
void SetOwnerId(OwnerIdT &&value)
Definition FpgaImage.h:212
bool DataRetentionSupportHasBeenSet() const
Definition FpgaImage.h:311
bool ShellVersionHasBeenSet() const
Definition FpgaImage.h:120
FpgaImage & WithFpgaImageId(FpgaImageIdT &&value)
Definition FpgaImage.h:54
void SetTags(TagsT &&value)
Definition FpgaImage.h:273
const Aws::Vector< Tag > & GetTags() const
Definition FpgaImage.h:270
const PciId & GetPciId() const
Definition FpgaImage.h:137
const Aws::String & GetFpgaImageGlobalId() const
Definition FpgaImage.h:64
bool TagsHasBeenSet() const
Definition FpgaImage.h:271
void SetFpgaImageId(FpgaImageIdT &&value)
Definition FpgaImage.h:49
void SetDescription(DescriptionT &&value)
Definition FpgaImage.h:103
bool FpgaImageGlobalIdHasBeenSet() const
Definition FpgaImage.h:65
FpgaImage & AddTags(TagsT &&value)
Definition FpgaImage.h:283
FpgaImage & AddInstanceTypes(InstanceTypesT &&value)
Definition FpgaImage.h:339
bool GetDataRetentionSupport() const
Definition FpgaImage.h:310
bool ProductCodesHasBeenSet() const
Definition FpgaImage.h:247
const Aws::String & GetOwnerId() const
Definition FpgaImage.h:209
bool UpdateTimeHasBeenSet() const
Definition FpgaImage.h:192
bool PciIdHasBeenSet() const
Definition FpgaImage.h:138
AWS_EC2_API FpgaImage(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Utils::DateTime & GetCreateTime() const
Definition FpgaImage.h:173
FpgaImage & WithOwnerAlias(OwnerAliasT &&value)
Definition FpgaImage.h:236
const Aws::Vector< ProductCode > & GetProductCodes() const
Definition FpgaImage.h:246
AWS_EC2_API FpgaImage & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDataRetentionSupport(bool value)
Definition FpgaImage.h:312
bool NameHasBeenSet() const
Definition FpgaImage.h:83
bool PublicHasBeenSet() const
Definition FpgaImage.h:295
FpgaImage & WithDescription(DescriptionT &&value)
Definition FpgaImage.h:108
const FpgaImageState & GetState() const
Definition FpgaImage.h:155
FpgaImage & WithName(NameT &&value)
Definition FpgaImage.h:90
void SetInstanceTypes(InstanceTypesT &&value)
Definition FpgaImage.h:329
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
FpgaImage & WithOwnerId(OwnerIdT &&value)
Definition FpgaImage.h:217
FpgaImage & WithPublic(bool value)
Definition FpgaImage.h:300
const Aws::String & GetFpgaImageId() const
Definition FpgaImage.h:46
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
FpgaImage & WithState(StateT &&value)
Definition FpgaImage.h:163
void SetUpdateTime(UpdateTimeT &&value)
Definition FpgaImage.h:194
void SetOwnerAlias(OwnerAliasT &&value)
Definition FpgaImage.h:231
const Aws::Vector< Aws::String > & GetInstanceTypes() const
Definition FpgaImage.h:326
const Aws::String & GetDescription() const
Definition FpgaImage.h:100
bool OwnerIdHasBeenSet() const
Definition FpgaImage.h:210
void SetProductCodes(ProductCodesT &&value)
Definition FpgaImage.h:249
void SetShellVersion(ShellVersionT &&value)
Definition FpgaImage.h:122
FpgaImage & WithDataRetentionSupport(bool value)
Definition FpgaImage.h:316
FpgaImage & WithShellVersion(ShellVersionT &&value)
Definition FpgaImage.h:127
const Aws::Utils::DateTime & GetUpdateTime() const
Definition FpgaImage.h:191
FpgaImage & WithFpgaImageGlobalId(FpgaImageGlobalIdT &&value)
Definition FpgaImage.h:72
void SetFpgaImageGlobalId(FpgaImageGlobalIdT &&value)
Definition FpgaImage.h:67
bool DescriptionHasBeenSet() const
Definition FpgaImage.h:101
const Aws::String & GetOwnerAlias() const
Definition FpgaImage.h:228
FpgaImage & WithCreateTime(CreateTimeT &&value)
Definition FpgaImage.h:181
const Aws::String & GetName() const
Definition FpgaImage.h:82
bool FpgaImageIdHasBeenSet() const
Definition FpgaImage.h:47
FpgaImage & WithUpdateTime(UpdateTimeT &&value)
Definition FpgaImage.h:199
void SetCreateTime(CreateTimeT &&value)
Definition FpgaImage.h:176
bool CreateTimeHasBeenSet() const
Definition FpgaImage.h:174
const Aws::String & GetShellVersion() const
Definition FpgaImage.h:119
AWS_EC2_API FpgaImage()=default
FpgaImage & WithInstanceTypes(InstanceTypesT &&value)
Definition FpgaImage.h:334
FpgaImage & WithTags(TagsT &&value)
Definition FpgaImage.h:278
void SetPciId(PciIdT &&value)
Definition FpgaImage.h:140
FpgaImage & WithProductCodes(ProductCodesT &&value)
Definition FpgaImage.h:254
void SetName(NameT &&value)
Definition FpgaImage.h:85
bool StateHasBeenSet() const
Definition FpgaImage.h:156
void SetPublic(bool value)
Definition FpgaImage.h:296
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream