AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RegisterImageRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/BootModeValues.h>
12#include <aws/ec2/model/TpmSupportValues.h>
13#include <aws/ec2/model/ImdsSupportValues.h>
14#include <aws/ec2/model/ArchitectureValues.h>
15#include <aws/ec2/model/TagSpecification.h>
16#include <aws/ec2/model/BlockDeviceMapping.h>
17#include <utility>
18
19namespace Aws
20{
21namespace EC2
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_EC2_API RegisterImageRequest();
35
36 // Service request name is the Operation name which will send this request out,
37 // each operation should has unique request name, so that we can get operation's name from this request.
38 // Note: this is not true for response, multiple operations may have the same response name,
39 // so we can not get operation's name from response.
40 inline virtual const char* GetServiceRequestName() const override { return "RegisterImage"; }
41
42 AWS_EC2_API Aws::String SerializePayload() const override;
43
44 protected:
45 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
46
47 public:
48
50
57 inline const Aws::String& GetImageLocation() const{ return m_imageLocation; }
58 inline bool ImageLocationHasBeenSet() const { return m_imageLocationHasBeenSet; }
59 inline void SetImageLocation(const Aws::String& value) { m_imageLocationHasBeenSet = true; m_imageLocation = value; }
60 inline void SetImageLocation(Aws::String&& value) { m_imageLocationHasBeenSet = true; m_imageLocation = std::move(value); }
61 inline void SetImageLocation(const char* value) { m_imageLocationHasBeenSet = true; m_imageLocation.assign(value); }
62 inline RegisterImageRequest& WithImageLocation(const Aws::String& value) { SetImageLocation(value); return *this;}
63 inline RegisterImageRequest& WithImageLocation(Aws::String&& value) { SetImageLocation(std::move(value)); return *this;}
64 inline RegisterImageRequest& WithImageLocation(const char* value) { SetImageLocation(value); return *this;}
66
68
79 inline const Aws::Vector<Aws::String>& GetBillingProducts() const{ return m_billingProducts; }
80 inline bool BillingProductsHasBeenSet() const { return m_billingProductsHasBeenSet; }
81 inline void SetBillingProducts(const Aws::Vector<Aws::String>& value) { m_billingProductsHasBeenSet = true; m_billingProducts = value; }
82 inline void SetBillingProducts(Aws::Vector<Aws::String>&& value) { m_billingProductsHasBeenSet = true; m_billingProducts = std::move(value); }
84 inline RegisterImageRequest& WithBillingProducts(Aws::Vector<Aws::String>&& value) { SetBillingProducts(std::move(value)); return *this;}
85 inline RegisterImageRequest& AddBillingProducts(const Aws::String& value) { m_billingProductsHasBeenSet = true; m_billingProducts.push_back(value); return *this; }
86 inline RegisterImageRequest& AddBillingProducts(Aws::String&& value) { m_billingProductsHasBeenSet = true; m_billingProducts.push_back(std::move(value)); return *this; }
87 inline RegisterImageRequest& AddBillingProducts(const char* value) { m_billingProductsHasBeenSet = true; m_billingProducts.push_back(value); return *this; }
89
91
99 inline const BootModeValues& GetBootMode() const{ return m_bootMode; }
100 inline bool BootModeHasBeenSet() const { return m_bootModeHasBeenSet; }
101 inline void SetBootMode(const BootModeValues& value) { m_bootModeHasBeenSet = true; m_bootMode = value; }
102 inline void SetBootMode(BootModeValues&& value) { m_bootModeHasBeenSet = true; m_bootMode = std::move(value); }
103 inline RegisterImageRequest& WithBootMode(const BootModeValues& value) { SetBootMode(value); return *this;}
104 inline RegisterImageRequest& WithBootMode(BootModeValues&& value) { SetBootMode(std::move(value)); return *this;}
106
108
114 inline const TpmSupportValues& GetTpmSupport() const{ return m_tpmSupport; }
115 inline bool TpmSupportHasBeenSet() const { return m_tpmSupportHasBeenSet; }
116 inline void SetTpmSupport(const TpmSupportValues& value) { m_tpmSupportHasBeenSet = true; m_tpmSupport = value; }
117 inline void SetTpmSupport(TpmSupportValues&& value) { m_tpmSupportHasBeenSet = true; m_tpmSupport = std::move(value); }
118 inline RegisterImageRequest& WithTpmSupport(const TpmSupportValues& value) { SetTpmSupport(value); return *this;}
119 inline RegisterImageRequest& WithTpmSupport(TpmSupportValues&& value) { SetTpmSupport(std::move(value)); return *this;}
121
123
133 inline const Aws::String& GetUefiData() const{ return m_uefiData; }
134 inline bool UefiDataHasBeenSet() const { return m_uefiDataHasBeenSet; }
135 inline void SetUefiData(const Aws::String& value) { m_uefiDataHasBeenSet = true; m_uefiData = value; }
136 inline void SetUefiData(Aws::String&& value) { m_uefiDataHasBeenSet = true; m_uefiData = std::move(value); }
137 inline void SetUefiData(const char* value) { m_uefiDataHasBeenSet = true; m_uefiData.assign(value); }
138 inline RegisterImageRequest& WithUefiData(const Aws::String& value) { SetUefiData(value); return *this;}
139 inline RegisterImageRequest& WithUefiData(Aws::String&& value) { SetUefiData(std::move(value)); return *this;}
140 inline RegisterImageRequest& WithUefiData(const char* value) { SetUefiData(value); return *this;}
142
144
156 inline const ImdsSupportValues& GetImdsSupport() const{ return m_imdsSupport; }
157 inline bool ImdsSupportHasBeenSet() const { return m_imdsSupportHasBeenSet; }
158 inline void SetImdsSupport(const ImdsSupportValues& value) { m_imdsSupportHasBeenSet = true; m_imdsSupport = value; }
159 inline void SetImdsSupport(ImdsSupportValues&& value) { m_imdsSupportHasBeenSet = true; m_imdsSupport = std::move(value); }
160 inline RegisterImageRequest& WithImdsSupport(const ImdsSupportValues& value) { SetImdsSupport(value); return *this;}
161 inline RegisterImageRequest& WithImdsSupport(ImdsSupportValues&& value) { SetImdsSupport(std::move(value)); return *this;}
163
165
172 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
173 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
174 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
175 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
178 inline RegisterImageRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
179 inline RegisterImageRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
181
183
189 inline bool GetDryRun() const{ return m_dryRun; }
190 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
191 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
192 inline RegisterImageRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
194
196
201 inline const Aws::String& GetName() const{ return m_name; }
202 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
203 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
204 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
205 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
206 inline RegisterImageRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
207 inline RegisterImageRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
208 inline RegisterImageRequest& WithName(const char* value) { SetName(value); return *this;}
210
212
215 inline const Aws::String& GetDescription() const{ return m_description; }
216 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
217 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
218 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
219 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
220 inline RegisterImageRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
221 inline RegisterImageRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
222 inline RegisterImageRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
224
226
231 inline const ArchitectureValues& GetArchitecture() const{ return m_architecture; }
232 inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; }
233 inline void SetArchitecture(const ArchitectureValues& value) { m_architectureHasBeenSet = true; m_architecture = value; }
234 inline void SetArchitecture(ArchitectureValues&& value) { m_architectureHasBeenSet = true; m_architecture = std::move(value); }
235 inline RegisterImageRequest& WithArchitecture(const ArchitectureValues& value) { SetArchitecture(value); return *this;}
236 inline RegisterImageRequest& WithArchitecture(ArchitectureValues&& value) { SetArchitecture(std::move(value)); return *this;}
238
240
243 inline const Aws::String& GetKernelId() const{ return m_kernelId; }
244 inline bool KernelIdHasBeenSet() const { return m_kernelIdHasBeenSet; }
245 inline void SetKernelId(const Aws::String& value) { m_kernelIdHasBeenSet = true; m_kernelId = value; }
246 inline void SetKernelId(Aws::String&& value) { m_kernelIdHasBeenSet = true; m_kernelId = std::move(value); }
247 inline void SetKernelId(const char* value) { m_kernelIdHasBeenSet = true; m_kernelId.assign(value); }
248 inline RegisterImageRequest& WithKernelId(const Aws::String& value) { SetKernelId(value); return *this;}
249 inline RegisterImageRequest& WithKernelId(Aws::String&& value) { SetKernelId(std::move(value)); return *this;}
250 inline RegisterImageRequest& WithKernelId(const char* value) { SetKernelId(value); return *this;}
252
254
257 inline const Aws::String& GetRamdiskId() const{ return m_ramdiskId; }
258 inline bool RamdiskIdHasBeenSet() const { return m_ramdiskIdHasBeenSet; }
259 inline void SetRamdiskId(const Aws::String& value) { m_ramdiskIdHasBeenSet = true; m_ramdiskId = value; }
260 inline void SetRamdiskId(Aws::String&& value) { m_ramdiskIdHasBeenSet = true; m_ramdiskId = std::move(value); }
261 inline void SetRamdiskId(const char* value) { m_ramdiskIdHasBeenSet = true; m_ramdiskId.assign(value); }
262 inline RegisterImageRequest& WithRamdiskId(const Aws::String& value) { SetRamdiskId(value); return *this;}
263 inline RegisterImageRequest& WithRamdiskId(Aws::String&& value) { SetRamdiskId(std::move(value)); return *this;}
264 inline RegisterImageRequest& WithRamdiskId(const char* value) { SetRamdiskId(value); return *this;}
266
268
272 inline const Aws::String& GetRootDeviceName() const{ return m_rootDeviceName; }
273 inline bool RootDeviceNameHasBeenSet() const { return m_rootDeviceNameHasBeenSet; }
274 inline void SetRootDeviceName(const Aws::String& value) { m_rootDeviceNameHasBeenSet = true; m_rootDeviceName = value; }
275 inline void SetRootDeviceName(Aws::String&& value) { m_rootDeviceNameHasBeenSet = true; m_rootDeviceName = std::move(value); }
276 inline void SetRootDeviceName(const char* value) { m_rootDeviceNameHasBeenSet = true; m_rootDeviceName.assign(value); }
277 inline RegisterImageRequest& WithRootDeviceName(const Aws::String& value) { SetRootDeviceName(value); return *this;}
278 inline RegisterImageRequest& WithRootDeviceName(Aws::String&& value) { SetRootDeviceName(std::move(value)); return *this;}
279 inline RegisterImageRequest& WithRootDeviceName(const char* value) { SetRootDeviceName(value); return *this;}
281
283
293 inline const Aws::Vector<BlockDeviceMapping>& GetBlockDeviceMappings() const{ return m_blockDeviceMappings; }
294 inline bool BlockDeviceMappingsHasBeenSet() const { return m_blockDeviceMappingsHasBeenSet; }
295 inline void SetBlockDeviceMappings(const Aws::Vector<BlockDeviceMapping>& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings = value; }
296 inline void SetBlockDeviceMappings(Aws::Vector<BlockDeviceMapping>&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings = std::move(value); }
299 inline RegisterImageRequest& AddBlockDeviceMappings(const BlockDeviceMapping& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(value); return *this; }
300 inline RegisterImageRequest& AddBlockDeviceMappings(BlockDeviceMapping&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(std::move(value)); return *this; }
302
304
308 inline const Aws::String& GetVirtualizationType() const{ return m_virtualizationType; }
309 inline bool VirtualizationTypeHasBeenSet() const { return m_virtualizationTypeHasBeenSet; }
310 inline void SetVirtualizationType(const Aws::String& value) { m_virtualizationTypeHasBeenSet = true; m_virtualizationType = value; }
311 inline void SetVirtualizationType(Aws::String&& value) { m_virtualizationTypeHasBeenSet = true; m_virtualizationType = std::move(value); }
312 inline void SetVirtualizationType(const char* value) { m_virtualizationTypeHasBeenSet = true; m_virtualizationType.assign(value); }
314 inline RegisterImageRequest& WithVirtualizationType(Aws::String&& value) { SetVirtualizationType(std::move(value)); return *this;}
315 inline RegisterImageRequest& WithVirtualizationType(const char* value) { SetVirtualizationType(value); return *this;}
317
319
326 inline const Aws::String& GetSriovNetSupport() const{ return m_sriovNetSupport; }
327 inline bool SriovNetSupportHasBeenSet() const { return m_sriovNetSupportHasBeenSet; }
328 inline void SetSriovNetSupport(const Aws::String& value) { m_sriovNetSupportHasBeenSet = true; m_sriovNetSupport = value; }
329 inline void SetSriovNetSupport(Aws::String&& value) { m_sriovNetSupportHasBeenSet = true; m_sriovNetSupport = std::move(value); }
330 inline void SetSriovNetSupport(const char* value) { m_sriovNetSupportHasBeenSet = true; m_sriovNetSupport.assign(value); }
331 inline RegisterImageRequest& WithSriovNetSupport(const Aws::String& value) { SetSriovNetSupport(value); return *this;}
332 inline RegisterImageRequest& WithSriovNetSupport(Aws::String&& value) { SetSriovNetSupport(std::move(value)); return *this;}
333 inline RegisterImageRequest& WithSriovNetSupport(const char* value) { SetSriovNetSupport(value); return *this;}
335
337
343 inline bool GetEnaSupport() const{ return m_enaSupport; }
344 inline bool EnaSupportHasBeenSet() const { return m_enaSupportHasBeenSet; }
345 inline void SetEnaSupport(bool value) { m_enaSupportHasBeenSet = true; m_enaSupport = value; }
346 inline RegisterImageRequest& WithEnaSupport(bool value) { SetEnaSupport(value); return *this;}
348 private:
349
350 Aws::String m_imageLocation;
351 bool m_imageLocationHasBeenSet = false;
352
353 Aws::Vector<Aws::String> m_billingProducts;
354 bool m_billingProductsHasBeenSet = false;
355
356 BootModeValues m_bootMode;
357 bool m_bootModeHasBeenSet = false;
358
359 TpmSupportValues m_tpmSupport;
360 bool m_tpmSupportHasBeenSet = false;
361
362 Aws::String m_uefiData;
363 bool m_uefiDataHasBeenSet = false;
364
365 ImdsSupportValues m_imdsSupport;
366 bool m_imdsSupportHasBeenSet = false;
367
368 Aws::Vector<TagSpecification> m_tagSpecifications;
369 bool m_tagSpecificationsHasBeenSet = false;
370
371 bool m_dryRun;
372 bool m_dryRunHasBeenSet = false;
373
374 Aws::String m_name;
375 bool m_nameHasBeenSet = false;
376
377 Aws::String m_description;
378 bool m_descriptionHasBeenSet = false;
379
380 ArchitectureValues m_architecture;
381 bool m_architectureHasBeenSet = false;
382
383 Aws::String m_kernelId;
384 bool m_kernelIdHasBeenSet = false;
385
386 Aws::String m_ramdiskId;
387 bool m_ramdiskIdHasBeenSet = false;
388
389 Aws::String m_rootDeviceName;
390 bool m_rootDeviceNameHasBeenSet = false;
391
392 Aws::Vector<BlockDeviceMapping> m_blockDeviceMappings;
393 bool m_blockDeviceMappingsHasBeenSet = false;
394
395 Aws::String m_virtualizationType;
396 bool m_virtualizationTypeHasBeenSet = false;
397
398 Aws::String m_sriovNetSupport;
399 bool m_sriovNetSupportHasBeenSet = false;
400
401 bool m_enaSupport;
402 bool m_enaSupportHasBeenSet = false;
403 };
404
405} // namespace Model
406} // namespace EC2
407} // namespace Aws
RegisterImageRequest & AddBillingProducts(Aws::String &&value)
RegisterImageRequest & WithBootMode(const BootModeValues &value)
void SetSriovNetSupport(const Aws::String &value)
RegisterImageRequest & WithDescription(const Aws::String &value)
void SetRootDeviceName(const Aws::String &value)
RegisterImageRequest & WithImageLocation(Aws::String &&value)
RegisterImageRequest & WithRootDeviceName(const Aws::String &value)
void SetDescription(const Aws::String &value)
RegisterImageRequest & WithKernelId(const Aws::String &value)
RegisterImageRequest & WithName(Aws::String &&value)
const Aws::Vector< Aws::String > & GetBillingProducts() const
RegisterImageRequest & WithBootMode(BootModeValues &&value)
const TpmSupportValues & GetTpmSupport() const
RegisterImageRequest & WithRootDeviceName(const char *value)
RegisterImageRequest & WithSriovNetSupport(const Aws::String &value)
RegisterImageRequest & WithSriovNetSupport(Aws::String &&value)
RegisterImageRequest & WithImageLocation(const char *value)
RegisterImageRequest & WithDryRun(bool value)
RegisterImageRequest & AddBillingProducts(const char *value)
RegisterImageRequest & WithKernelId(const char *value)
RegisterImageRequest & AddBillingProducts(const Aws::String &value)
const Aws::Vector< BlockDeviceMapping > & GetBlockDeviceMappings() const
const Aws::String & GetSriovNetSupport() const
RegisterImageRequest & WithSriovNetSupport(const char *value)
RegisterImageRequest & WithBillingProducts(const Aws::Vector< Aws::String > &value)
RegisterImageRequest & WithImageLocation(const Aws::String &value)
void SetImdsSupport(ImdsSupportValues &&value)
void SetBlockDeviceMappings(Aws::Vector< BlockDeviceMapping > &&value)
RegisterImageRequest & AddTagSpecifications(TagSpecification &&value)
RegisterImageRequest & WithArchitecture(ArchitectureValues &&value)
RegisterImageRequest & WithRamdiskId(Aws::String &&value)
RegisterImageRequest & WithRamdiskId(const char *value)
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
RegisterImageRequest & WithBillingProducts(Aws::Vector< Aws::String > &&value)
void SetBlockDeviceMappings(const Aws::Vector< BlockDeviceMapping > &value)
RegisterImageRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
RegisterImageRequest & WithName(const Aws::String &value)
RegisterImageRequest & WithImdsSupport(const ImdsSupportValues &value)
const Aws::String & GetRootDeviceName() const
void SetVirtualizationType(Aws::String &&value)
RegisterImageRequest & WithDescription(const char *value)
RegisterImageRequest & WithVirtualizationType(const Aws::String &value)
RegisterImageRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
RegisterImageRequest & WithImdsSupport(ImdsSupportValues &&value)
RegisterImageRequest & WithBlockDeviceMappings(const Aws::Vector< BlockDeviceMapping > &value)
void SetTpmSupport(const TpmSupportValues &value)
RegisterImageRequest & WithRamdiskId(const Aws::String &value)
const Aws::String & GetVirtualizationType() const
RegisterImageRequest & WithKernelId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
RegisterImageRequest & WithUefiData(const Aws::String &value)
RegisterImageRequest & WithVirtualizationType(const char *value)
void SetName(const Aws::String &value)
RegisterImageRequest & AddBlockDeviceMappings(BlockDeviceMapping &&value)
void SetBillingProducts(Aws::Vector< Aws::String > &&value)
void SetBootMode(BootModeValues &&value)
void SetRamdiskId(const Aws::String &value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
RegisterImageRequest & WithDescription(Aws::String &&value)
void SetArchitecture(ArchitectureValues &&value)
RegisterImageRequest & WithBlockDeviceMappings(Aws::Vector< BlockDeviceMapping > &&value)
RegisterImageRequest & WithName(const char *value)
RegisterImageRequest & WithUefiData(Aws::String &&value)
void SetTpmSupport(TpmSupportValues &&value)
RegisterImageRequest & AddBlockDeviceMappings(const BlockDeviceMapping &value)
RegisterImageRequest & WithTpmSupport(TpmSupportValues &&value)
void SetImageLocation(const Aws::String &value)
void SetImdsSupport(const ImdsSupportValues &value)
const BootModeValues & GetBootMode() const
RegisterImageRequest & WithTpmSupport(const TpmSupportValues &value)
RegisterImageRequest & AddTagSpecifications(const TagSpecification &value)
RegisterImageRequest & WithVirtualizationType(Aws::String &&value)
void SetArchitecture(const ArchitectureValues &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetUefiData(const Aws::String &value)
const ImdsSupportValues & GetImdsSupport() const
RegisterImageRequest & WithUefiData(const char *value)
void SetBootMode(const BootModeValues &value)
void SetVirtualizationType(const Aws::String &value)
RegisterImageRequest & WithRootDeviceName(Aws::String &&value)
RegisterImageRequest & WithArchitecture(const ArchitectureValues &value)
void SetBillingProducts(const Aws::Vector< Aws::String > &value)
const Aws::String & GetImageLocation() const
const Aws::String & GetDescription() const
void SetKernelId(const Aws::String &value)
const ArchitectureValues & GetArchitecture() const
AWS_EC2_API Aws::String SerializePayload() const override
RegisterImageRequest & WithEnaSupport(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector