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/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/BootModeValues.h>
12#include <aws/ec2/model/SnapshotDetail.h>
13#include <aws/ec2/model/Tag.h>
14#include <aws/ec2/model/ImportImageLicenseConfigurationResponse.h>
54 template<
typename ArchitectureT = Aws::String>
55 void SetArchitecture(ArchitectureT&& value) { m_architectureHasBeenSet =
true; m_architecture = std::forward<ArchitectureT>(value); }
56 template<
typename ArchitectureT = Aws::String>
66 template<
typename DescriptionT = Aws::String>
67 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
68 template<
typename DescriptionT = Aws::String>
78 inline void SetEncrypted(
bool value) { m_encryptedHasBeenSet =
true; m_encrypted = value; }
89 template<
typename HypervisorT = Aws::String>
90 void SetHypervisor(HypervisorT&& value) { m_hypervisorHasBeenSet =
true; m_hypervisor = std::forward<HypervisorT>(value); }
91 template<
typename HypervisorT = Aws::String>
101 template<
typename ImageIdT = Aws::String>
102 void SetImageId(ImageIdT&& value) { m_imageIdHasBeenSet =
true; m_imageId = std::forward<ImageIdT>(value); }
103 template<
typename ImageIdT = Aws::String>
113 template<
typename ImportTaskIdT = Aws::String>
114 void SetImportTaskId(ImportTaskIdT&& value) { m_importTaskIdHasBeenSet =
true; m_importTaskId = std::forward<ImportTaskIdT>(value); }
115 template<
typename ImportTaskIdT = Aws::String>
126 template<
typename KmsKeyIdT = Aws::String>
127 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet =
true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
128 template<
typename KmsKeyIdT = Aws::String>
138 template<
typename LicenseTypeT = Aws::String>
139 void SetLicenseType(LicenseTypeT&& value) { m_licenseTypeHasBeenSet =
true; m_licenseType = std::forward<LicenseTypeT>(value); }
140 template<
typename LicenseTypeT = Aws::String>
150 template<
typename PlatformT = Aws::String>
151 void SetPlatform(PlatformT&& value) { m_platformHasBeenSet =
true; m_platform = std::forward<PlatformT>(value); }
152 template<
typename PlatformT = Aws::String>
162 template<
typename ProgressT = Aws::String>
163 void SetProgress(ProgressT&& value) { m_progressHasBeenSet =
true; m_progress = std::forward<ProgressT>(value); }
164 template<
typename ProgressT = Aws::String>
174 template<
typename SnapshotDetailsT = Aws::Vector<SnapshotDetail>>
175 void SetSnapshotDetails(SnapshotDetailsT&& value) { m_snapshotDetailsHasBeenSet =
true; m_snapshotDetails = std::forward<SnapshotDetailsT>(value); }
176 template<
typename SnapshotDetailsT = Aws::Vector<SnapshotDetail>>
178 template<
typename SnapshotDetailsT = SnapshotDetail>
179 ImportImageTask&
AddSnapshotDetails(SnapshotDetailsT&& value) { m_snapshotDetailsHasBeenSet =
true; m_snapshotDetails.emplace_back(std::forward<SnapshotDetailsT>(value));
return *
this; }
188 template<
typename StatusT = Aws::String>
189 void SetStatus(StatusT&& value) { m_statusHasBeenSet =
true; m_status = std::forward<StatusT>(value); }
190 template<
typename StatusT = Aws::String>
200 template<
typename StatusMessageT = Aws::String>
201 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet =
true; m_statusMessage = std::forward<StatusMessageT>(value); }
202 template<
typename StatusMessageT = Aws::String>
212 template<
typename TagsT = Aws::Vector<Tag>>
213 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
214 template<
typename TagsT = Aws::Vector<Tag>>
216 template<
typename TagsT = Tag>
217 ImportImageTask&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
227 template<
typename LicenseSpecificationsT = Aws::Vector<ImportImageLicenseConfigurationResponse>>
228 void SetLicenseSpecifications(LicenseSpecificationsT&& value) { m_licenseSpecificationsHasBeenSet =
true; m_licenseSpecifications = std::forward<LicenseSpecificationsT>(value); }
229 template<
typename LicenseSpecificationsT = Aws::Vector<ImportImageLicenseConfigurationResponse>>
231 template<
typename LicenseSpecificationsT = ImportImageLicenseConfigurationResponse>
232 ImportImageTask&
AddLicenseSpecifications(LicenseSpecificationsT&& value) { m_licenseSpecificationsHasBeenSet =
true; m_licenseSpecifications.emplace_back(std::forward<LicenseSpecificationsT>(value));
return *
this; }
241 template<
typename UsageOperationT = Aws::String>
242 void SetUsageOperation(UsageOperationT&& value) { m_usageOperationHasBeenSet =
true; m_usageOperation = std::forward<UsageOperationT>(value); }
243 template<
typename UsageOperationT = Aws::String>
259 bool m_architectureHasBeenSet =
false;
262 bool m_descriptionHasBeenSet =
false;
264 bool m_encrypted{
false};
265 bool m_encryptedHasBeenSet =
false;
268 bool m_hypervisorHasBeenSet =
false;
271 bool m_imageIdHasBeenSet =
false;
274 bool m_importTaskIdHasBeenSet =
false;
277 bool m_kmsKeyIdHasBeenSet =
false;
280 bool m_licenseTypeHasBeenSet =
false;
283 bool m_platformHasBeenSet =
false;
286 bool m_progressHasBeenSet =
false;
289 bool m_snapshotDetailsHasBeenSet =
false;
292 bool m_statusHasBeenSet =
false;
295 bool m_statusMessageHasBeenSet =
false;
298 bool m_tagsHasBeenSet =
false;
301 bool m_licenseSpecificationsHasBeenSet =
false;
304 bool m_usageOperationHasBeenSet =
false;
307 bool m_bootModeHasBeenSet =
false;
void SetLicenseType(LicenseTypeT &&value)
void SetProgress(ProgressT &&value)
const Aws::Vector< Tag > & GetTags() const
bool KmsKeyIdHasBeenSet() const
ImportImageTask & WithImportTaskId(ImportTaskIdT &&value)
ImportImageTask & WithBootMode(BootModeValues value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool SnapshotDetailsHasBeenSet() const
ImportImageTask & WithKmsKeyId(KmsKeyIdT &&value)
bool LicenseTypeHasBeenSet() const
bool UsageOperationHasBeenSet() const
ImportImageTask & WithDescription(DescriptionT &&value)
const Aws::Vector< SnapshotDetail > & GetSnapshotDetails() const
bool GetEncrypted() const
ImportImageTask & WithStatus(StatusT &&value)
const Aws::String & GetHypervisor() const
ImportImageTask & WithLicenseSpecifications(LicenseSpecificationsT &&value)
ImportImageTask & WithProgress(ProgressT &&value)
const Aws::String & GetImageId() const
void SetImageId(ImageIdT &&value)
bool TagsHasBeenSet() const
AWS_EC2_API ImportImageTask()=default
ImportImageTask & WithArchitecture(ArchitectureT &&value)
bool ImportTaskIdHasBeenSet() const
ImportImageTask & AddLicenseSpecifications(LicenseSpecificationsT &&value)
BootModeValues GetBootMode() const
bool ArchitectureHasBeenSet() const
const Aws::String & GetProgress() const
bool BootModeHasBeenSet() const
bool LicenseSpecificationsHasBeenSet() const
ImportImageTask & AddTags(TagsT &&value)
AWS_EC2_API ImportImageTask(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetHypervisor(HypervisorT &&value)
void SetImportTaskId(ImportTaskIdT &&value)
void SetTags(TagsT &&value)
bool PlatformHasBeenSet() const
const Aws::String & GetStatusMessage() const
bool StatusHasBeenSet() const
void SetPlatform(PlatformT &&value)
ImportImageTask & AddSnapshotDetails(SnapshotDetailsT &&value)
bool DescriptionHasBeenSet() const
void SetStatus(StatusT &&value)
const Aws::String & GetStatus() const
bool EncryptedHasBeenSet() const
ImportImageTask & WithSnapshotDetails(SnapshotDetailsT &&value)
const Aws::String & GetLicenseType() const
void SetUsageOperation(UsageOperationT &&value)
const Aws::String & GetImportTaskId() const
void SetBootMode(BootModeValues value)
void SetLicenseSpecifications(LicenseSpecificationsT &&value)
AWS_EC2_API ImportImageTask & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetPlatform() const
bool HypervisorHasBeenSet() const
ImportImageTask & WithEncrypted(bool value)
bool ImageIdHasBeenSet() const
ImportImageTask & WithImageId(ImageIdT &&value)
void SetSnapshotDetails(SnapshotDetailsT &&value)
ImportImageTask & WithPlatform(PlatformT &&value)
bool StatusMessageHasBeenSet() const
void SetArchitecture(ArchitectureT &&value)
void SetKmsKeyId(KmsKeyIdT &&value)
const Aws::String & GetDescription() const
ImportImageTask & WithUsageOperation(UsageOperationT &&value)
const Aws::String & GetArchitecture() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ImportImageTask & WithTags(TagsT &&value)
ImportImageTask & WithHypervisor(HypervisorT &&value)
void SetStatusMessage(StatusMessageT &&value)
const Aws::String & GetUsageOperation() const
ImportImageTask & WithLicenseType(LicenseTypeT &&value)
const Aws::String & GetKmsKeyId() const
void SetDescription(DescriptionT &&value)
void SetEncrypted(bool value)
bool ProgressHasBeenSet() const
const Aws::Vector< ImportImageLicenseConfigurationResponse > & GetLicenseSpecifications() const
ImportImageTask & WithStatusMessage(StatusMessageT &&value)
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