AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ImportImageRequest.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/ec2/model/ClientData.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/BootModeValues.h>
13#include <aws/ec2/model/ImageDiskContainer.h>
14#include <aws/ec2/model/ImportImageLicenseConfigurationRequest.h>
15#include <aws/ec2/model/TagSpecification.h>
16#include <utility>
17
18namespace Aws
19{
20namespace EC2
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_EC2_API ImportImageRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "ImportImage"; }
37
38 AWS_EC2_API Aws::String SerializePayload() const override;
39
40 protected:
41 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42
43 public:
44
46
50 inline const Aws::String& GetArchitecture() const{ return m_architecture; }
51 inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; }
52 inline void SetArchitecture(const Aws::String& value) { m_architectureHasBeenSet = true; m_architecture = value; }
53 inline void SetArchitecture(Aws::String&& value) { m_architectureHasBeenSet = true; m_architecture = std::move(value); }
54 inline void SetArchitecture(const char* value) { m_architectureHasBeenSet = true; m_architecture.assign(value); }
55 inline ImportImageRequest& WithArchitecture(const Aws::String& value) { SetArchitecture(value); return *this;}
56 inline ImportImageRequest& WithArchitecture(Aws::String&& value) { SetArchitecture(std::move(value)); return *this;}
57 inline ImportImageRequest& WithArchitecture(const char* value) { SetArchitecture(value); return *this;}
59
61
64 inline const ClientData& GetClientData() const{ return m_clientData; }
65 inline bool ClientDataHasBeenSet() const { return m_clientDataHasBeenSet; }
66 inline void SetClientData(const ClientData& value) { m_clientDataHasBeenSet = true; m_clientData = value; }
67 inline void SetClientData(ClientData&& value) { m_clientDataHasBeenSet = true; m_clientData = std::move(value); }
68 inline ImportImageRequest& WithClientData(const ClientData& value) { SetClientData(value); return *this;}
69 inline ImportImageRequest& WithClientData(ClientData&& value) { SetClientData(std::move(value)); return *this;}
71
73
76 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
77 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
78 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
79 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
80 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
81 inline ImportImageRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
82 inline ImportImageRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
83 inline ImportImageRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
85
87
90 inline const Aws::String& GetDescription() const{ return m_description; }
91 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
92 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
93 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
94 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
95 inline ImportImageRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
96 inline ImportImageRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
97 inline ImportImageRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
99
101
104 inline const Aws::Vector<ImageDiskContainer>& GetDiskContainers() const{ return m_diskContainers; }
105 inline bool DiskContainersHasBeenSet() const { return m_diskContainersHasBeenSet; }
106 inline void SetDiskContainers(const Aws::Vector<ImageDiskContainer>& value) { m_diskContainersHasBeenSet = true; m_diskContainers = value; }
107 inline void SetDiskContainers(Aws::Vector<ImageDiskContainer>&& value) { m_diskContainersHasBeenSet = true; m_diskContainers = std::move(value); }
110 inline ImportImageRequest& AddDiskContainers(const ImageDiskContainer& value) { m_diskContainersHasBeenSet = true; m_diskContainers.push_back(value); return *this; }
111 inline ImportImageRequest& AddDiskContainers(ImageDiskContainer&& value) { m_diskContainersHasBeenSet = true; m_diskContainers.push_back(std::move(value)); return *this; }
113
115
121 inline bool GetDryRun() const{ return m_dryRun; }
122 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
123 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
124 inline ImportImageRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
126
128
135 inline bool GetEncrypted() const{ return m_encrypted; }
136 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
137 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
138 inline ImportImageRequest& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
140
142
145 inline const Aws::String& GetHypervisor() const{ return m_hypervisor; }
146 inline bool HypervisorHasBeenSet() const { return m_hypervisorHasBeenSet; }
147 inline void SetHypervisor(const Aws::String& value) { m_hypervisorHasBeenSet = true; m_hypervisor = value; }
148 inline void SetHypervisor(Aws::String&& value) { m_hypervisorHasBeenSet = true; m_hypervisor = std::move(value); }
149 inline void SetHypervisor(const char* value) { m_hypervisorHasBeenSet = true; m_hypervisor.assign(value); }
150 inline ImportImageRequest& WithHypervisor(const Aws::String& value) { SetHypervisor(value); return *this;}
151 inline ImportImageRequest& WithHypervisor(Aws::String&& value) { SetHypervisor(std::move(value)); return *this;}
152 inline ImportImageRequest& WithHypervisor(const char* value) { SetHypervisor(value); return *this;}
154
156
178 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
179 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
180 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
181 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
182 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
183 inline ImportImageRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
184 inline ImportImageRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
185 inline ImportImageRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
187
189
203 inline const Aws::String& GetLicenseType() const{ return m_licenseType; }
204 inline bool LicenseTypeHasBeenSet() const { return m_licenseTypeHasBeenSet; }
205 inline void SetLicenseType(const Aws::String& value) { m_licenseTypeHasBeenSet = true; m_licenseType = value; }
206 inline void SetLicenseType(Aws::String&& value) { m_licenseTypeHasBeenSet = true; m_licenseType = std::move(value); }
207 inline void SetLicenseType(const char* value) { m_licenseTypeHasBeenSet = true; m_licenseType.assign(value); }
208 inline ImportImageRequest& WithLicenseType(const Aws::String& value) { SetLicenseType(value); return *this;}
209 inline ImportImageRequest& WithLicenseType(Aws::String&& value) { SetLicenseType(std::move(value)); return *this;}
210 inline ImportImageRequest& WithLicenseType(const char* value) { SetLicenseType(value); return *this;}
212
214
220 inline const Aws::String& GetPlatform() const{ return m_platform; }
221 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
222 inline void SetPlatform(const Aws::String& value) { m_platformHasBeenSet = true; m_platform = value; }
223 inline void SetPlatform(Aws::String&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
224 inline void SetPlatform(const char* value) { m_platformHasBeenSet = true; m_platform.assign(value); }
225 inline ImportImageRequest& WithPlatform(const Aws::String& value) { SetPlatform(value); return *this;}
226 inline ImportImageRequest& WithPlatform(Aws::String&& value) { SetPlatform(std::move(value)); return *this;}
227 inline ImportImageRequest& WithPlatform(const char* value) { SetPlatform(value); return *this;}
229
231
234 inline const Aws::String& GetRoleName() const{ return m_roleName; }
235 inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
236 inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; }
237 inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = std::move(value); }
238 inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); }
239 inline ImportImageRequest& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;}
240 inline ImportImageRequest& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;}
241 inline ImportImageRequest& WithRoleName(const char* value) { SetRoleName(value); return *this;}
243
245
248 inline const Aws::Vector<ImportImageLicenseConfigurationRequest>& GetLicenseSpecifications() const{ return m_licenseSpecifications; }
249 inline bool LicenseSpecificationsHasBeenSet() const { return m_licenseSpecificationsHasBeenSet; }
250 inline void SetLicenseSpecifications(const Aws::Vector<ImportImageLicenseConfigurationRequest>& value) { m_licenseSpecificationsHasBeenSet = true; m_licenseSpecifications = value; }
251 inline void SetLicenseSpecifications(Aws::Vector<ImportImageLicenseConfigurationRequest>&& value) { m_licenseSpecificationsHasBeenSet = true; m_licenseSpecifications = std::move(value); }
254 inline ImportImageRequest& AddLicenseSpecifications(const ImportImageLicenseConfigurationRequest& value) { m_licenseSpecificationsHasBeenSet = true; m_licenseSpecifications.push_back(value); return *this; }
255 inline ImportImageRequest& AddLicenseSpecifications(ImportImageLicenseConfigurationRequest&& value) { m_licenseSpecificationsHasBeenSet = true; m_licenseSpecifications.push_back(std::move(value)); return *this; }
257
259
262 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
263 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
264 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
265 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
268 inline ImportImageRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
269 inline ImportImageRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
271
273
278 inline const Aws::String& GetUsageOperation() const{ return m_usageOperation; }
279 inline bool UsageOperationHasBeenSet() const { return m_usageOperationHasBeenSet; }
280 inline void SetUsageOperation(const Aws::String& value) { m_usageOperationHasBeenSet = true; m_usageOperation = value; }
281 inline void SetUsageOperation(Aws::String&& value) { m_usageOperationHasBeenSet = true; m_usageOperation = std::move(value); }
282 inline void SetUsageOperation(const char* value) { m_usageOperationHasBeenSet = true; m_usageOperation.assign(value); }
283 inline ImportImageRequest& WithUsageOperation(const Aws::String& value) { SetUsageOperation(value); return *this;}
284 inline ImportImageRequest& WithUsageOperation(Aws::String&& value) { SetUsageOperation(std::move(value)); return *this;}
285 inline ImportImageRequest& WithUsageOperation(const char* value) { SetUsageOperation(value); return *this;}
287
289
296 inline const BootModeValues& GetBootMode() const{ return m_bootMode; }
297 inline bool BootModeHasBeenSet() const { return m_bootModeHasBeenSet; }
298 inline void SetBootMode(const BootModeValues& value) { m_bootModeHasBeenSet = true; m_bootMode = value; }
299 inline void SetBootMode(BootModeValues&& value) { m_bootModeHasBeenSet = true; m_bootMode = std::move(value); }
300 inline ImportImageRequest& WithBootMode(const BootModeValues& value) { SetBootMode(value); return *this;}
301 inline ImportImageRequest& WithBootMode(BootModeValues&& value) { SetBootMode(std::move(value)); return *this;}
303 private:
304
305 Aws::String m_architecture;
306 bool m_architectureHasBeenSet = false;
307
308 ClientData m_clientData;
309 bool m_clientDataHasBeenSet = false;
310
311 Aws::String m_clientToken;
312 bool m_clientTokenHasBeenSet = false;
313
314 Aws::String m_description;
315 bool m_descriptionHasBeenSet = false;
316
317 Aws::Vector<ImageDiskContainer> m_diskContainers;
318 bool m_diskContainersHasBeenSet = false;
319
320 bool m_dryRun;
321 bool m_dryRunHasBeenSet = false;
322
323 bool m_encrypted;
324 bool m_encryptedHasBeenSet = false;
325
326 Aws::String m_hypervisor;
327 bool m_hypervisorHasBeenSet = false;
328
329 Aws::String m_kmsKeyId;
330 bool m_kmsKeyIdHasBeenSet = false;
331
332 Aws::String m_licenseType;
333 bool m_licenseTypeHasBeenSet = false;
334
335 Aws::String m_platform;
336 bool m_platformHasBeenSet = false;
337
338 Aws::String m_roleName;
339 bool m_roleNameHasBeenSet = false;
340
342 bool m_licenseSpecificationsHasBeenSet = false;
343
344 Aws::Vector<TagSpecification> m_tagSpecifications;
345 bool m_tagSpecificationsHasBeenSet = false;
346
347 Aws::String m_usageOperation;
348 bool m_usageOperationHasBeenSet = false;
349
350 BootModeValues m_bootMode;
351 bool m_bootModeHasBeenSet = false;
352 };
353
354} // namespace Model
355} // namespace EC2
356} // namespace Aws
ImportImageRequest & WithLicenseType(const Aws::String &value)
const Aws::String & GetUsageOperation() const
void SetArchitecture(const char *value)
void SetLicenseType(Aws::String &&value)
ImportImageRequest & WithUsageOperation(const char *value)
void SetClientToken(Aws::String &&value)
void SetHypervisor(const Aws::String &value)
ImportImageRequest & AddLicenseSpecifications(const ImportImageLicenseConfigurationRequest &value)
void SetHypervisor(Aws::String &&value)
ImportImageRequest & WithBootMode(const BootModeValues &value)
ImportImageRequest & WithPlatform(const Aws::String &value)
ImportImageRequest & WithDiskContainers(const Aws::Vector< ImageDiskContainer > &value)
const Aws::String & GetPlatform() const
void SetUsageOperation(Aws::String &&value)
const Aws::String & GetLicenseType() const
ImportImageRequest & WithRoleName(Aws::String &&value)
ImportImageRequest & WithClientData(const ClientData &value)
void SetUsageOperation(const char *value)
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ImportImageRequest & WithDescription(const Aws::String &value)
ImportImageRequest & WithUsageOperation(Aws::String &&value)
ImportImageRequest & WithClientToken(const char *value)
const Aws::String & GetKmsKeyId() const
ImportImageRequest & WithLicenseSpecifications(Aws::Vector< ImportImageLicenseConfigurationRequest > &&value)
void SetUsageOperation(const Aws::String &value)
ImportImageRequest & WithHypervisor(const Aws::String &value)
const Aws::String & GetRoleName() const
ImportImageRequest & WithBootMode(BootModeValues &&value)
ImportImageRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
ImportImageRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
ImportImageRequest & WithDiskContainers(Aws::Vector< ImageDiskContainer > &&value)
ImportImageRequest & WithKmsKeyId(const Aws::String &value)
const ClientData & GetClientData() const
const Aws::Vector< ImportImageLicenseConfigurationRequest > & GetLicenseSpecifications() const
ImportImageRequest & WithPlatform(const char *value)
ImportImageRequest & WithKmsKeyId(Aws::String &&value)
const Aws::String & GetHypervisor() const
void SetBootMode(const BootModeValues &value)
ImportImageRequest & AddTagSpecifications(const TagSpecification &value)
ImportImageRequest & WithClientData(ClientData &&value)
void SetDiskContainers(Aws::Vector< ImageDiskContainer > &&value)
void SetPlatform(const Aws::String &value)
const Aws::String & GetDescription() const
ImportImageRequest & WithHypervisor(const char *value)
ImportImageRequest & WithEncrypted(bool value)
void SetClientData(ClientData &&value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
ImportImageRequest & WithLicenseType(Aws::String &&value)
void SetPlatform(Aws::String &&value)
ImportImageRequest & AddLicenseSpecifications(ImportImageLicenseConfigurationRequest &&value)
void SetKmsKeyId(const Aws::String &value)
void SetDiskContainers(const Aws::Vector< ImageDiskContainer > &value)
ImportImageRequest & AddDiskContainers(const ImageDiskContainer &value)
ImportImageRequest & WithHypervisor(Aws::String &&value)
void SetLicenseSpecifications(const Aws::Vector< ImportImageLicenseConfigurationRequest > &value)
ImportImageRequest & AddTagSpecifications(TagSpecification &&value)
ImportImageRequest & WithUsageOperation(const Aws::String &value)
void SetArchitecture(const Aws::String &value)
ImportImageRequest & WithArchitecture(const Aws::String &value)
void SetLicenseSpecifications(Aws::Vector< ImportImageLicenseConfigurationRequest > &&value)
void SetDescription(const Aws::String &value)
ImportImageRequest & WithDescription(Aws::String &&value)
void SetDescription(Aws::String &&value)
const Aws::String & GetClientToken() const
ImportImageRequest & WithKmsKeyId(const char *value)
void SetBootMode(BootModeValues &&value)
ImportImageRequest & WithDescription(const char *value)
const Aws::Vector< ImageDiskContainer > & GetDiskContainers() const
ImportImageRequest & WithRoleName(const char *value)
ImportImageRequest & WithPlatform(Aws::String &&value)
ImportImageRequest & WithLicenseSpecifications(const Aws::Vector< ImportImageLicenseConfigurationRequest > &value)
ImportImageRequest & WithDryRun(bool value)
const Aws::String & GetArchitecture() const
AWS_EC2_API Aws::String SerializePayload() const override
ImportImageRequest & WithArchitecture(const char *value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
void SetRoleName(const Aws::String &value)
void SetLicenseType(const Aws::String &value)
ImportImageRequest & WithArchitecture(Aws::String &&value)
void SetClientData(const ClientData &value)
ImportImageRequest & WithLicenseType(const char *value)
void SetKmsKeyId(Aws::String &&value)
void SetRoleName(Aws::String &&value)
ImportImageRequest & WithRoleName(const Aws::String &value)
void SetClientToken(const Aws::String &value)
ImportImageRequest & WithClientToken(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
ImportImageRequest & WithClientToken(Aws::String &&value)
const BootModeValues & GetBootMode() const
void SetArchitecture(Aws::String &&value)
ImportImageRequest & AddDiskContainers(ImageDiskContainer &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector