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

Describes an import volume task.

See Also:

AWS * API Reference

*/ class ImportVolumeTaskDetails { public: AWS_EC2_API ImportVolumeTaskDetails(); AWS_EC2_API ImportVolumeTaskDetails(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API ImportVolumeTaskDetails& 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 Availability Zone where the resulting volume will reside.

*/ inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; } /** *

The Availability Zone where the resulting volume will reside.

*/ inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; } /** *

The Availability Zone where the resulting volume will reside.

*/ inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; } /** *

The Availability Zone where the resulting volume will reside.

*/ inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); } /** *

The Availability Zone where the resulting volume will reside.

*/ inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); } /** *

The Availability Zone where the resulting volume will reside.

*/ inline ImportVolumeTaskDetails& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;} /** *

The Availability Zone where the resulting volume will reside.

*/ inline ImportVolumeTaskDetails& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;} /** *

The Availability Zone where the resulting volume will reside.

*/ inline ImportVolumeTaskDetails& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;} /** *

The number of bytes converted so far.

*/ inline long long GetBytesConverted() const{ return m_bytesConverted; } /** *

The number of bytes converted so far.

*/ inline bool BytesConvertedHasBeenSet() const { return m_bytesConvertedHasBeenSet; } /** *

The number of bytes converted so far.

*/ inline void SetBytesConverted(long long value) { m_bytesConvertedHasBeenSet = true; m_bytesConverted = value; } /** *

The number of bytes converted so far.

*/ inline ImportVolumeTaskDetails& WithBytesConverted(long long value) { SetBytesConverted(value); return *this;} /** *

The description you provided when starting the import volume task.

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

The description you provided when starting the import volume task.

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

The description you provided when starting the import volume task.

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

The description you provided when starting the import volume task.

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

The description you provided when starting the import volume task.

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

The description you provided when starting the import volume task.

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

The description you provided when starting the import volume task.

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

The description you provided when starting the import volume task.

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

The image.

*/ inline const DiskImageDescription& GetImage() const{ return m_image; } /** *

The image.

*/ inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; } /** *

The image.

*/ inline void SetImage(const DiskImageDescription& value) { m_imageHasBeenSet = true; m_image = value; } /** *

The image.

*/ inline void SetImage(DiskImageDescription&& value) { m_imageHasBeenSet = true; m_image = std::move(value); } /** *

The image.

*/ inline ImportVolumeTaskDetails& WithImage(const DiskImageDescription& value) { SetImage(value); return *this;} /** *

The image.

*/ inline ImportVolumeTaskDetails& WithImage(DiskImageDescription&& value) { SetImage(std::move(value)); return *this;} /** *

The volume.

*/ inline const DiskImageVolumeDescription& GetVolume() const{ return m_volume; } /** *

The volume.

*/ inline bool VolumeHasBeenSet() const { return m_volumeHasBeenSet; } /** *

The volume.

*/ inline void SetVolume(const DiskImageVolumeDescription& value) { m_volumeHasBeenSet = true; m_volume = value; } /** *

The volume.

*/ inline void SetVolume(DiskImageVolumeDescription&& value) { m_volumeHasBeenSet = true; m_volume = std::move(value); } /** *

The volume.

*/ inline ImportVolumeTaskDetails& WithVolume(const DiskImageVolumeDescription& value) { SetVolume(value); return *this;} /** *

The volume.

*/ inline ImportVolumeTaskDetails& WithVolume(DiskImageVolumeDescription&& value) { SetVolume(std::move(value)); return *this;} private: Aws::String m_availabilityZone; bool m_availabilityZoneHasBeenSet = false; long long m_bytesConverted; bool m_bytesConvertedHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; DiskImageDescription m_image; bool m_imageHasBeenSet = false; DiskImageVolumeDescription m_volume; bool m_volumeHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws