AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ArchitectureT = Aws::String>
53 void SetArchitecture(ArchitectureT&& value) { m_architectureHasBeenSet = true; m_architecture = std::forward<ArchitectureT>(value); }
54 template<typename ArchitectureT = Aws::String>
55 ImportImageRequest& WithArchitecture(ArchitectureT&& value) { SetArchitecture(std::forward<ArchitectureT>(value)); return *this;}
57
59
62 inline const ClientData& GetClientData() const { return m_clientData; }
63 inline bool ClientDataHasBeenSet() const { return m_clientDataHasBeenSet; }
64 template<typename ClientDataT = ClientData>
65 void SetClientData(ClientDataT&& value) { m_clientDataHasBeenSet = true; m_clientData = std::forward<ClientDataT>(value); }
66 template<typename ClientDataT = ClientData>
67 ImportImageRequest& WithClientData(ClientDataT&& value) { SetClientData(std::forward<ClientDataT>(value)); return *this;}
69
71
74 inline const Aws::String& GetClientToken() const { return m_clientToken; }
75 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
76 template<typename ClientTokenT = Aws::String>
77 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
78 template<typename ClientTokenT = Aws::String>
79 ImportImageRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
81
83
86 inline const Aws::String& GetDescription() const { return m_description; }
87 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
88 template<typename DescriptionT = Aws::String>
89 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
90 template<typename DescriptionT = Aws::String>
91 ImportImageRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
93
95
98 inline const Aws::Vector<ImageDiskContainer>& GetDiskContainers() const { return m_diskContainers; }
99 inline bool DiskContainersHasBeenSet() const { return m_diskContainersHasBeenSet; }
100 template<typename DiskContainersT = Aws::Vector<ImageDiskContainer>>
101 void SetDiskContainers(DiskContainersT&& value) { m_diskContainersHasBeenSet = true; m_diskContainers = std::forward<DiskContainersT>(value); }
102 template<typename DiskContainersT = Aws::Vector<ImageDiskContainer>>
103 ImportImageRequest& WithDiskContainers(DiskContainersT&& value) { SetDiskContainers(std::forward<DiskContainersT>(value)); return *this;}
104 template<typename DiskContainersT = ImageDiskContainer>
105 ImportImageRequest& AddDiskContainers(DiskContainersT&& value) { m_diskContainersHasBeenSet = true; m_diskContainers.emplace_back(std::forward<DiskContainersT>(value)); return *this; }
107
109
115 inline bool GetDryRun() const { return m_dryRun; }
116 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
117 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
118 inline ImportImageRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
120
122
129 inline bool GetEncrypted() const { return m_encrypted; }
130 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
131 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
132 inline ImportImageRequest& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
134
136
139 inline const Aws::String& GetHypervisor() const { return m_hypervisor; }
140 inline bool HypervisorHasBeenSet() const { return m_hypervisorHasBeenSet; }
141 template<typename HypervisorT = Aws::String>
142 void SetHypervisor(HypervisorT&& value) { m_hypervisorHasBeenSet = true; m_hypervisor = std::forward<HypervisorT>(value); }
143 template<typename HypervisorT = Aws::String>
144 ImportImageRequest& WithHypervisor(HypervisorT&& value) { SetHypervisor(std::forward<HypervisorT>(value)); return *this;}
146
148
170 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
171 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
172 template<typename KmsKeyIdT = Aws::String>
173 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
174 template<typename KmsKeyIdT = Aws::String>
175 ImportImageRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
177
179
193 inline const Aws::String& GetLicenseType() const { return m_licenseType; }
194 inline bool LicenseTypeHasBeenSet() const { return m_licenseTypeHasBeenSet; }
195 template<typename LicenseTypeT = Aws::String>
196 void SetLicenseType(LicenseTypeT&& value) { m_licenseTypeHasBeenSet = true; m_licenseType = std::forward<LicenseTypeT>(value); }
197 template<typename LicenseTypeT = Aws::String>
198 ImportImageRequest& WithLicenseType(LicenseTypeT&& value) { SetLicenseType(std::forward<LicenseTypeT>(value)); return *this;}
200
202
208 inline const Aws::String& GetPlatform() const { return m_platform; }
209 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
210 template<typename PlatformT = Aws::String>
211 void SetPlatform(PlatformT&& value) { m_platformHasBeenSet = true; m_platform = std::forward<PlatformT>(value); }
212 template<typename PlatformT = Aws::String>
213 ImportImageRequest& WithPlatform(PlatformT&& value) { SetPlatform(std::forward<PlatformT>(value)); return *this;}
215
217
220 inline const Aws::String& GetRoleName() const { return m_roleName; }
221 inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
222 template<typename RoleNameT = Aws::String>
223 void SetRoleName(RoleNameT&& value) { m_roleNameHasBeenSet = true; m_roleName = std::forward<RoleNameT>(value); }
224 template<typename RoleNameT = Aws::String>
225 ImportImageRequest& WithRoleName(RoleNameT&& value) { SetRoleName(std::forward<RoleNameT>(value)); return *this;}
227
229
232 inline const Aws::Vector<ImportImageLicenseConfigurationRequest>& GetLicenseSpecifications() const { return m_licenseSpecifications; }
233 inline bool LicenseSpecificationsHasBeenSet() const { return m_licenseSpecificationsHasBeenSet; }
234 template<typename LicenseSpecificationsT = Aws::Vector<ImportImageLicenseConfigurationRequest>>
235 void SetLicenseSpecifications(LicenseSpecificationsT&& value) { m_licenseSpecificationsHasBeenSet = true; m_licenseSpecifications = std::forward<LicenseSpecificationsT>(value); }
236 template<typename LicenseSpecificationsT = Aws::Vector<ImportImageLicenseConfigurationRequest>>
237 ImportImageRequest& WithLicenseSpecifications(LicenseSpecificationsT&& value) { SetLicenseSpecifications(std::forward<LicenseSpecificationsT>(value)); return *this;}
238 template<typename LicenseSpecificationsT = ImportImageLicenseConfigurationRequest>
239 ImportImageRequest& AddLicenseSpecifications(LicenseSpecificationsT&& value) { m_licenseSpecificationsHasBeenSet = true; m_licenseSpecifications.emplace_back(std::forward<LicenseSpecificationsT>(value)); return *this; }
241
243
246 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
247 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
248 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
249 void SetTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::forward<TagSpecificationsT>(value); }
250 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
251 ImportImageRequest& WithTagSpecifications(TagSpecificationsT&& value) { SetTagSpecifications(std::forward<TagSpecificationsT>(value)); return *this;}
252 template<typename TagSpecificationsT = TagSpecification>
253 ImportImageRequest& AddTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value)); return *this; }
255
257
262 inline const Aws::String& GetUsageOperation() const { return m_usageOperation; }
263 inline bool UsageOperationHasBeenSet() const { return m_usageOperationHasBeenSet; }
264 template<typename UsageOperationT = Aws::String>
265 void SetUsageOperation(UsageOperationT&& value) { m_usageOperationHasBeenSet = true; m_usageOperation = std::forward<UsageOperationT>(value); }
266 template<typename UsageOperationT = Aws::String>
267 ImportImageRequest& WithUsageOperation(UsageOperationT&& value) { SetUsageOperation(std::forward<UsageOperationT>(value)); return *this;}
269
271
278 inline BootModeValues GetBootMode() const { return m_bootMode; }
279 inline bool BootModeHasBeenSet() const { return m_bootModeHasBeenSet; }
280 inline void SetBootMode(BootModeValues value) { m_bootModeHasBeenSet = true; m_bootMode = value; }
281 inline ImportImageRequest& WithBootMode(BootModeValues value) { SetBootMode(value); return *this;}
283 private:
284
285 Aws::String m_architecture;
286 bool m_architectureHasBeenSet = false;
287
288 ClientData m_clientData;
289 bool m_clientDataHasBeenSet = false;
290
291 Aws::String m_clientToken;
292 bool m_clientTokenHasBeenSet = false;
293
294 Aws::String m_description;
295 bool m_descriptionHasBeenSet = false;
296
297 Aws::Vector<ImageDiskContainer> m_diskContainers;
298 bool m_diskContainersHasBeenSet = false;
299
300 bool m_dryRun{false};
301 bool m_dryRunHasBeenSet = false;
302
303 bool m_encrypted{false};
304 bool m_encryptedHasBeenSet = false;
305
306 Aws::String m_hypervisor;
307 bool m_hypervisorHasBeenSet = false;
308
309 Aws::String m_kmsKeyId;
310 bool m_kmsKeyIdHasBeenSet = false;
311
312 Aws::String m_licenseType;
313 bool m_licenseTypeHasBeenSet = false;
314
315 Aws::String m_platform;
316 bool m_platformHasBeenSet = false;
317
318 Aws::String m_roleName;
319 bool m_roleNameHasBeenSet = false;
320
322 bool m_licenseSpecificationsHasBeenSet = false;
323
324 Aws::Vector<TagSpecification> m_tagSpecifications;
325 bool m_tagSpecificationsHasBeenSet = false;
326
327 Aws::String m_usageOperation;
328 bool m_usageOperationHasBeenSet = false;
329
331 bool m_bootModeHasBeenSet = false;
332 };
333
334} // namespace Model
335} // namespace EC2
336} // namespace Aws
ImportImageRequest & WithTagSpecifications(TagSpecificationsT &&value)
const Aws::String & GetUsageOperation() const
void SetTagSpecifications(TagSpecificationsT &&value)
void SetDiskContainers(DiskContainersT &&value)
const Aws::String & GetPlatform() const
const Aws::String & GetLicenseType() const
ImportImageRequest & WithDescription(DescriptionT &&value)
ImportImageRequest & WithBootMode(BootModeValues value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ImportImageRequest & WithUsageOperation(UsageOperationT &&value)
void SetArchitecture(ArchitectureT &&value)
void SetBootMode(BootModeValues value)
const Aws::String & GetKmsKeyId() const
void SetHypervisor(HypervisorT &&value)
const Aws::String & GetRoleName() const
void SetClientData(ClientDataT &&value)
void SetUsageOperation(UsageOperationT &&value)
const ClientData & GetClientData() const
const Aws::Vector< ImportImageLicenseConfigurationRequest > & GetLicenseSpecifications() const
const Aws::String & GetHypervisor() const
ImportImageRequest & WithKmsKeyId(KmsKeyIdT &&value)
const Aws::String & GetDescription() const
ImportImageRequest & WithEncrypted(bool value)
ImportImageRequest & AddLicenseSpecifications(LicenseSpecificationsT &&value)
void SetLicenseSpecifications(LicenseSpecificationsT &&value)
ImportImageRequest & WithClientToken(ClientTokenT &&value)
ImportImageRequest & WithClientData(ClientDataT &&value)
ImportImageRequest & WithLicenseType(LicenseTypeT &&value)
void SetClientToken(ClientTokenT &&value)
const Aws::String & GetClientToken() const
ImportImageRequest & AddDiskContainers(DiskContainersT &&value)
const Aws::Vector< ImageDiskContainer > & GetDiskContainers() const
void SetDescription(DescriptionT &&value)
ImportImageRequest & WithArchitecture(ArchitectureT &&value)
ImportImageRequest & WithDryRun(bool value)
const Aws::String & GetArchitecture() const
AWS_EC2_API Aws::String SerializePayload() const override
void SetLicenseType(LicenseTypeT &&value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
ImportImageRequest & AddTagSpecifications(TagSpecificationsT &&value)
ImportImageRequest & WithDiskContainers(DiskContainersT &&value)
ImportImageRequest & WithRoleName(RoleNameT &&value)
ImportImageRequest & WithLicenseSpecifications(LicenseSpecificationsT &&value)
virtual const char * GetServiceRequestName() const override
ImportImageRequest & WithPlatform(PlatformT &&value)
AWS_EC2_API ImportImageRequest()=default
ImportImageRequest & WithHypervisor(HypervisorT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector