/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Describes the disk container object for an import image task.

See * Also:

AWS * API Reference

*/ class ImageDiskContainer { public: AWS_EC2_API ImageDiskContainer(); AWS_EC2_API ImageDiskContainer(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API ImageDiskContainer& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The description of the disk image.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the disk image.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the disk image.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the disk image.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the disk image.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the disk image.

*/ inline ImageDiskContainer& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the disk image.

*/ inline ImageDiskContainer& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the disk image.

*/ inline ImageDiskContainer& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The block device mapping for the disk.

*/ inline const Aws::String& GetDeviceName() const{ return m_deviceName; } /** *

The block device mapping for the disk.

*/ inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; } /** *

The block device mapping for the disk.

*/ inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; } /** *

The block device mapping for the disk.

*/ inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); } /** *

The block device mapping for the disk.

*/ inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); } /** *

The block device mapping for the disk.

*/ inline ImageDiskContainer& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;} /** *

The block device mapping for the disk.

*/ inline ImageDiskContainer& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;} /** *

The block device mapping for the disk.

*/ inline ImageDiskContainer& WithDeviceName(const char* value) { SetDeviceName(value); return *this;} /** *

The format of the disk image being imported.

Valid values: * OVA | VHD | VHDX | VMDK | * RAW

*/ inline const Aws::String& GetFormat() const{ return m_format; } /** *

The format of the disk image being imported.

Valid values: * OVA | VHD | VHDX | VMDK | * RAW

*/ inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; } /** *

The format of the disk image being imported.

Valid values: * OVA | VHD | VHDX | VMDK | * RAW

*/ inline void SetFormat(const Aws::String& value) { m_formatHasBeenSet = true; m_format = value; } /** *

The format of the disk image being imported.

Valid values: * OVA | VHD | VHDX | VMDK | * RAW

*/ inline void SetFormat(Aws::String&& value) { m_formatHasBeenSet = true; m_format = std::move(value); } /** *

The format of the disk image being imported.

Valid values: * OVA | VHD | VHDX | VMDK | * RAW

*/ inline void SetFormat(const char* value) { m_formatHasBeenSet = true; m_format.assign(value); } /** *

The format of the disk image being imported.

Valid values: * OVA | VHD | VHDX | VMDK | * RAW

*/ inline ImageDiskContainer& WithFormat(const Aws::String& value) { SetFormat(value); return *this;} /** *

The format of the disk image being imported.

Valid values: * OVA | VHD | VHDX | VMDK | * RAW

*/ inline ImageDiskContainer& WithFormat(Aws::String&& value) { SetFormat(std::move(value)); return *this;} /** *

The format of the disk image being imported.

Valid values: * OVA | VHD | VHDX | VMDK | * RAW

*/ inline ImageDiskContainer& WithFormat(const char* value) { SetFormat(value); return *this;} /** *

The ID of the EBS snapshot to be used for importing the snapshot.

*/ inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; } /** *

The ID of the EBS snapshot to be used for importing the snapshot.

*/ inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; } /** *

The ID of the EBS snapshot to be used for importing the snapshot.

*/ inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; } /** *

The ID of the EBS snapshot to be used for importing the snapshot.

*/ inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); } /** *

The ID of the EBS snapshot to be used for importing the snapshot.

*/ inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); } /** *

The ID of the EBS snapshot to be used for importing the snapshot.

*/ inline ImageDiskContainer& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;} /** *

The ID of the EBS snapshot to be used for importing the snapshot.

*/ inline ImageDiskContainer& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;} /** *

The ID of the EBS snapshot to be used for importing the snapshot.

*/ inline ImageDiskContainer& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;} /** *

The URL to the Amazon S3-based disk image being imported. The URL can either * be a https URL (https://..) or an Amazon S3 URL (s3://..)

*/ inline const Aws::String& GetUrl() const{ return m_url; } /** *

The URL to the Amazon S3-based disk image being imported. The URL can either * be a https URL (https://..) or an Amazon S3 URL (s3://..)

*/ inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; } /** *

The URL to the Amazon S3-based disk image being imported. The URL can either * be a https URL (https://..) or an Amazon S3 URL (s3://..)

*/ inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; } /** *

The URL to the Amazon S3-based disk image being imported. The URL can either * be a https URL (https://..) or an Amazon S3 URL (s3://..)

*/ inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); } /** *

The URL to the Amazon S3-based disk image being imported. The URL can either * be a https URL (https://..) or an Amazon S3 URL (s3://..)

*/ inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); } /** *

The URL to the Amazon S3-based disk image being imported. The URL can either * be a https URL (https://..) or an Amazon S3 URL (s3://..)

*/ inline ImageDiskContainer& WithUrl(const Aws::String& value) { SetUrl(value); return *this;} /** *

The URL to the Amazon S3-based disk image being imported. The URL can either * be a https URL (https://..) or an Amazon S3 URL (s3://..)

*/ inline ImageDiskContainer& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;} /** *

The URL to the Amazon S3-based disk image being imported. The URL can either * be a https URL (https://..) or an Amazon S3 URL (s3://..)

*/ inline ImageDiskContainer& WithUrl(const char* value) { SetUrl(value); return *this;} /** *

The S3 bucket for the disk image.

*/ inline const UserBucket& GetUserBucket() const{ return m_userBucket; } /** *

The S3 bucket for the disk image.

*/ inline bool UserBucketHasBeenSet() const { return m_userBucketHasBeenSet; } /** *

The S3 bucket for the disk image.

*/ inline void SetUserBucket(const UserBucket& value) { m_userBucketHasBeenSet = true; m_userBucket = value; } /** *

The S3 bucket for the disk image.

*/ inline void SetUserBucket(UserBucket&& value) { m_userBucketHasBeenSet = true; m_userBucket = std::move(value); } /** *

The S3 bucket for the disk image.

*/ inline ImageDiskContainer& WithUserBucket(const UserBucket& value) { SetUserBucket(value); return *this;} /** *

The S3 bucket for the disk image.

*/ inline ImageDiskContainer& WithUserBucket(UserBucket&& value) { SetUserBucket(std::move(value)); return *this;} private: Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_deviceName; bool m_deviceNameHasBeenSet = false; Aws::String m_format; bool m_formatHasBeenSet = false; Aws::String m_snapshotId; bool m_snapshotIdHasBeenSet = false; Aws::String m_url; bool m_urlHasBeenSet = false; UserBucket m_userBucket; bool m_userBucketHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws