AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
FpgaImage.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/PciId.h>
11#include <aws/ec2/model/FpgaImageState.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/ec2/model/ProductCode.h>
15#include <aws/ec2/model/Tag.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Xml
23{
24 class XmlNode;
25} // namespace Xml
26} // namespace Utils
27namespace EC2
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_EC2_API FpgaImage() = default;
41 AWS_EC2_API FpgaImage(const Aws::Utils::Xml::XmlNode& xmlNode);
42 AWS_EC2_API FpgaImage& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
47
49
52 inline const Aws::String& GetFpgaImageId() const { return m_fpgaImageId; }
53 inline bool FpgaImageIdHasBeenSet() const { return m_fpgaImageIdHasBeenSet; }
54 template<typename FpgaImageIdT = Aws::String>
55 void SetFpgaImageId(FpgaImageIdT&& value) { m_fpgaImageIdHasBeenSet = true; m_fpgaImageId = std::forward<FpgaImageIdT>(value); }
56 template<typename FpgaImageIdT = Aws::String>
57 FpgaImage& WithFpgaImageId(FpgaImageIdT&& value) { SetFpgaImageId(std::forward<FpgaImageIdT>(value)); return *this;}
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) { m_fpgaImageGlobalIdHasBeenSet = true; m_fpgaImageGlobalId = std::forward<FpgaImageGlobalIdT>(value); }
68 template<typename FpgaImageGlobalIdT = Aws::String>
69 FpgaImage& WithFpgaImageGlobalId(FpgaImageGlobalIdT&& value) { SetFpgaImageGlobalId(std::forward<FpgaImageGlobalIdT>(value)); return *this;}
71
73
76 inline const Aws::String& GetName() const { return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 template<typename NameT = Aws::String>
79 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
80 template<typename NameT = Aws::String>
81 FpgaImage& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
83
85
88 inline const Aws::String& GetDescription() const { return m_description; }
89 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
90 template<typename DescriptionT = Aws::String>
91 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
92 template<typename DescriptionT = Aws::String>
93 FpgaImage& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
95
97
101 inline const Aws::String& GetShellVersion() const { return m_shellVersion; }
102 inline bool ShellVersionHasBeenSet() const { return m_shellVersionHasBeenSet; }
103 template<typename ShellVersionT = Aws::String>
104 void SetShellVersion(ShellVersionT&& value) { m_shellVersionHasBeenSet = true; m_shellVersion = std::forward<ShellVersionT>(value); }
105 template<typename ShellVersionT = Aws::String>
106 FpgaImage& WithShellVersion(ShellVersionT&& value) { SetShellVersion(std::forward<ShellVersionT>(value)); return *this;}
108
110
113 inline const PciId& GetPciId() const { return m_pciId; }
114 inline bool PciIdHasBeenSet() const { return m_pciIdHasBeenSet; }
115 template<typename PciIdT = PciId>
116 void SetPciId(PciIdT&& value) { m_pciIdHasBeenSet = true; m_pciId = std::forward<PciIdT>(value); }
117 template<typename PciIdT = PciId>
118 FpgaImage& WithPciId(PciIdT&& value) { SetPciId(std::forward<PciIdT>(value)); return *this;}
120
122
125 inline const FpgaImageState& GetState() const { return m_state; }
126 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
127 template<typename StateT = FpgaImageState>
128 void SetState(StateT&& value) { m_stateHasBeenSet = true; m_state = std::forward<StateT>(value); }
129 template<typename StateT = FpgaImageState>
130 FpgaImage& WithState(StateT&& value) { SetState(std::forward<StateT>(value)); return *this;}
132
134
137 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
138 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
139 template<typename CreateTimeT = Aws::Utils::DateTime>
140 void SetCreateTime(CreateTimeT&& value) { m_createTimeHasBeenSet = true; m_createTime = std::forward<CreateTimeT>(value); }
141 template<typename CreateTimeT = Aws::Utils::DateTime>
142 FpgaImage& WithCreateTime(CreateTimeT&& value) { SetCreateTime(std::forward<CreateTimeT>(value)); return *this;}
144
146
149 inline const Aws::Utils::DateTime& GetUpdateTime() const { return m_updateTime; }
150 inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; }
151 template<typename UpdateTimeT = Aws::Utils::DateTime>
152 void SetUpdateTime(UpdateTimeT&& value) { m_updateTimeHasBeenSet = true; m_updateTime = std::forward<UpdateTimeT>(value); }
153 template<typename UpdateTimeT = Aws::Utils::DateTime>
154 FpgaImage& WithUpdateTime(UpdateTimeT&& value) { SetUpdateTime(std::forward<UpdateTimeT>(value)); return *this;}
156
158
161 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
162 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
163 template<typename OwnerIdT = Aws::String>
164 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
165 template<typename OwnerIdT = Aws::String>
166 FpgaImage& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
168
170
174 inline const Aws::String& GetOwnerAlias() const { return m_ownerAlias; }
175 inline bool OwnerAliasHasBeenSet() const { return m_ownerAliasHasBeenSet; }
176 template<typename OwnerAliasT = Aws::String>
177 void SetOwnerAlias(OwnerAliasT&& value) { m_ownerAliasHasBeenSet = true; m_ownerAlias = std::forward<OwnerAliasT>(value); }
178 template<typename OwnerAliasT = Aws::String>
179 FpgaImage& WithOwnerAlias(OwnerAliasT&& value) { SetOwnerAlias(std::forward<OwnerAliasT>(value)); return *this;}
181
183
186 inline const Aws::Vector<ProductCode>& GetProductCodes() const { return m_productCodes; }
187 inline bool ProductCodesHasBeenSet() const { return m_productCodesHasBeenSet; }
188 template<typename ProductCodesT = Aws::Vector<ProductCode>>
189 void SetProductCodes(ProductCodesT&& value) { m_productCodesHasBeenSet = true; m_productCodes = std::forward<ProductCodesT>(value); }
190 template<typename ProductCodesT = Aws::Vector<ProductCode>>
191 FpgaImage& WithProductCodes(ProductCodesT&& value) { SetProductCodes(std::forward<ProductCodesT>(value)); return *this;}
192 template<typename ProductCodesT = ProductCode>
193 FpgaImage& AddProductCodes(ProductCodesT&& value) { m_productCodesHasBeenSet = true; m_productCodes.emplace_back(std::forward<ProductCodesT>(value)); return *this; }
195
197
200 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
201 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
202 template<typename TagsT = Aws::Vector<Tag>>
203 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
204 template<typename TagsT = Aws::Vector<Tag>>
205 FpgaImage& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
206 template<typename TagsT = Tag>
207 FpgaImage& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
209
211
214 inline bool GetPublic() const { return m_public; }
215 inline bool PublicHasBeenSet() const { return m_publicHasBeenSet; }
216 inline void SetPublic(bool value) { m_publicHasBeenSet = true; m_public = value; }
217 inline FpgaImage& WithPublic(bool value) { SetPublic(value); return *this;}
219
221
224 inline bool GetDataRetentionSupport() const { return m_dataRetentionSupport; }
225 inline bool DataRetentionSupportHasBeenSet() const { return m_dataRetentionSupportHasBeenSet; }
226 inline void SetDataRetentionSupport(bool value) { m_dataRetentionSupportHasBeenSet = true; m_dataRetentionSupport = value; }
227 inline FpgaImage& WithDataRetentionSupport(bool value) { SetDataRetentionSupport(value); return *this;}
229
231
234 inline const Aws::Vector<Aws::String>& GetInstanceTypes() const { return m_instanceTypes; }
235 inline bool InstanceTypesHasBeenSet() const { return m_instanceTypesHasBeenSet; }
236 template<typename InstanceTypesT = Aws::Vector<Aws::String>>
237 void SetInstanceTypes(InstanceTypesT&& value) { m_instanceTypesHasBeenSet = true; m_instanceTypes = std::forward<InstanceTypesT>(value); }
238 template<typename InstanceTypesT = Aws::Vector<Aws::String>>
239 FpgaImage& WithInstanceTypes(InstanceTypesT&& value) { SetInstanceTypes(std::forward<InstanceTypesT>(value)); return *this;}
240 template<typename InstanceTypesT = Aws::String>
241 FpgaImage& AddInstanceTypes(InstanceTypesT&& value) { m_instanceTypesHasBeenSet = true; m_instanceTypes.emplace_back(std::forward<InstanceTypesT>(value)); return *this; }
243 private:
244
245 Aws::String m_fpgaImageId;
246 bool m_fpgaImageIdHasBeenSet = false;
247
248 Aws::String m_fpgaImageGlobalId;
249 bool m_fpgaImageGlobalIdHasBeenSet = false;
250
251 Aws::String m_name;
252 bool m_nameHasBeenSet = false;
253
254 Aws::String m_description;
255 bool m_descriptionHasBeenSet = false;
256
257 Aws::String m_shellVersion;
258 bool m_shellVersionHasBeenSet = false;
259
260 PciId m_pciId;
261 bool m_pciIdHasBeenSet = false;
262
263 FpgaImageState m_state;
264 bool m_stateHasBeenSet = false;
265
266 Aws::Utils::DateTime m_createTime{};
267 bool m_createTimeHasBeenSet = false;
268
269 Aws::Utils::DateTime m_updateTime{};
270 bool m_updateTimeHasBeenSet = false;
271
272 Aws::String m_ownerId;
273 bool m_ownerIdHasBeenSet = false;
274
275 Aws::String m_ownerAlias;
276 bool m_ownerAliasHasBeenSet = false;
277
278 Aws::Vector<ProductCode> m_productCodes;
279 bool m_productCodesHasBeenSet = false;
280
281 Aws::Vector<Tag> m_tags;
282 bool m_tagsHasBeenSet = false;
283
284 bool m_public{false};
285 bool m_publicHasBeenSet = false;
286
287 bool m_dataRetentionSupport{false};
288 bool m_dataRetentionSupportHasBeenSet = false;
289
290 Aws::Vector<Aws::String> m_instanceTypes;
291 bool m_instanceTypesHasBeenSet = false;
292 };
293
294} // namespace Model
295} // namespace EC2
296} // namespace Aws
FpgaImage & WithPciId(PciIdT &&value)
Definition FpgaImage.h:118
FpgaImage & AddProductCodes(ProductCodesT &&value)
Definition FpgaImage.h:193
bool InstanceTypesHasBeenSet() const
Definition FpgaImage.h:235
void SetState(StateT &&value)
Definition FpgaImage.h:128
bool OwnerAliasHasBeenSet() const
Definition FpgaImage.h:175
void SetOwnerId(OwnerIdT &&value)
Definition FpgaImage.h:164
bool DataRetentionSupportHasBeenSet() const
Definition FpgaImage.h:225
bool ShellVersionHasBeenSet() const
Definition FpgaImage.h:102
FpgaImage & WithFpgaImageId(FpgaImageIdT &&value)
Definition FpgaImage.h:57
void SetTags(TagsT &&value)
Definition FpgaImage.h:203
const Aws::Vector< Tag > & GetTags() const
Definition FpgaImage.h:200
const PciId & GetPciId() const
Definition FpgaImage.h:113
const Aws::String & GetFpgaImageGlobalId() const
Definition FpgaImage.h:64
bool TagsHasBeenSet() const
Definition FpgaImage.h:201
void SetFpgaImageId(FpgaImageIdT &&value)
Definition FpgaImage.h:55
void SetDescription(DescriptionT &&value)
Definition FpgaImage.h:91
bool FpgaImageGlobalIdHasBeenSet() const
Definition FpgaImage.h:65
FpgaImage & AddTags(TagsT &&value)
Definition FpgaImage.h:207
FpgaImage & AddInstanceTypes(InstanceTypesT &&value)
Definition FpgaImage.h:241
bool GetDataRetentionSupport() const
Definition FpgaImage.h:224
bool ProductCodesHasBeenSet() const
Definition FpgaImage.h:187
const Aws::String & GetOwnerId() const
Definition FpgaImage.h:161
bool UpdateTimeHasBeenSet() const
Definition FpgaImage.h:150
bool PciIdHasBeenSet() const
Definition FpgaImage.h:114
AWS_EC2_API FpgaImage(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Utils::DateTime & GetCreateTime() const
Definition FpgaImage.h:137
FpgaImage & WithOwnerAlias(OwnerAliasT &&value)
Definition FpgaImage.h:179
const Aws::Vector< ProductCode > & GetProductCodes() const
Definition FpgaImage.h:186
AWS_EC2_API FpgaImage & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDataRetentionSupport(bool value)
Definition FpgaImage.h:226
bool NameHasBeenSet() const
Definition FpgaImage.h:77
bool PublicHasBeenSet() const
Definition FpgaImage.h:215
FpgaImage & WithDescription(DescriptionT &&value)
Definition FpgaImage.h:93
const FpgaImageState & GetState() const
Definition FpgaImage.h:125
FpgaImage & WithName(NameT &&value)
Definition FpgaImage.h:81
void SetInstanceTypes(InstanceTypesT &&value)
Definition FpgaImage.h:237
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
FpgaImage & WithOwnerId(OwnerIdT &&value)
Definition FpgaImage.h:166
FpgaImage & WithPublic(bool value)
Definition FpgaImage.h:217
const Aws::String & GetFpgaImageId() const
Definition FpgaImage.h:52
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
FpgaImage & WithState(StateT &&value)
Definition FpgaImage.h:130
void SetUpdateTime(UpdateTimeT &&value)
Definition FpgaImage.h:152
void SetOwnerAlias(OwnerAliasT &&value)
Definition FpgaImage.h:177
const Aws::Vector< Aws::String > & GetInstanceTypes() const
Definition FpgaImage.h:234
const Aws::String & GetDescription() const
Definition FpgaImage.h:88
bool OwnerIdHasBeenSet() const
Definition FpgaImage.h:162
void SetProductCodes(ProductCodesT &&value)
Definition FpgaImage.h:189
void SetShellVersion(ShellVersionT &&value)
Definition FpgaImage.h:104
FpgaImage & WithDataRetentionSupport(bool value)
Definition FpgaImage.h:227
FpgaImage & WithShellVersion(ShellVersionT &&value)
Definition FpgaImage.h:106
const Aws::Utils::DateTime & GetUpdateTime() const
Definition FpgaImage.h:149
FpgaImage & WithFpgaImageGlobalId(FpgaImageGlobalIdT &&value)
Definition FpgaImage.h:69
void SetFpgaImageGlobalId(FpgaImageGlobalIdT &&value)
Definition FpgaImage.h:67
bool DescriptionHasBeenSet() const
Definition FpgaImage.h:89
const Aws::String & GetOwnerAlias() const
Definition FpgaImage.h:174
FpgaImage & WithCreateTime(CreateTimeT &&value)
Definition FpgaImage.h:142
const Aws::String & GetName() const
Definition FpgaImage.h:76
bool FpgaImageIdHasBeenSet() const
Definition FpgaImage.h:53
FpgaImage & WithUpdateTime(UpdateTimeT &&value)
Definition FpgaImage.h:154
void SetCreateTime(CreateTimeT &&value)
Definition FpgaImage.h:140
bool CreateTimeHasBeenSet() const
Definition FpgaImage.h:138
const Aws::String & GetShellVersion() const
Definition FpgaImage.h:101
AWS_EC2_API FpgaImage()=default
FpgaImage & WithInstanceTypes(InstanceTypesT &&value)
Definition FpgaImage.h:239
FpgaImage & WithTags(TagsT &&value)
Definition FpgaImage.h:205
void SetPciId(PciIdT &&value)
Definition FpgaImage.h:116
FpgaImage & WithProductCodes(ProductCodesT &&value)
Definition FpgaImage.h:191
void SetName(NameT &&value)
Definition FpgaImage.h:79
bool StateHasBeenSet() const
Definition FpgaImage.h:126
void SetPublic(bool value)
Definition FpgaImage.h:216
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