/** * 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 EC2 { namespace Model { /** */ class AWS_EC2_API ModifyVolumeRequest : public EC2Request { public: ModifyVolumeRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "ModifyVolume"; } Aws::String SerializePayload() const override; protected: void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool GetDryRun() const{ return m_dryRun; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline ModifyVolumeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} /** *

The ID of the volume.

*/ inline const Aws::String& GetVolumeId() const{ return m_volumeId; } /** *

The ID of the volume.

*/ inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; } /** *

The ID of the volume.

*/ inline void SetVolumeId(const Aws::String& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; } /** *

The ID of the volume.

*/ inline void SetVolumeId(Aws::String&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::move(value); } /** *

The ID of the volume.

*/ inline void SetVolumeId(const char* value) { m_volumeIdHasBeenSet = true; m_volumeId.assign(value); } /** *

The ID of the volume.

*/ inline ModifyVolumeRequest& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;} /** *

The ID of the volume.

*/ inline ModifyVolumeRequest& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;} /** *

The ID of the volume.

*/ inline ModifyVolumeRequest& WithVolumeId(const char* value) { SetVolumeId(value); return *this;} /** *

The target size of the volume, in GiB. The target volume size must be greater * than or equal to than the existing size of the volume. For information about * available EBS volume sizes, see Amazon * EBS Volume Types.

Default: If no size is specified, the existing size * is retained.

*/ inline int GetSize() const{ return m_size; } /** *

The target size of the volume, in GiB. The target volume size must be greater * than or equal to than the existing size of the volume. For information about * available EBS volume sizes, see Amazon * EBS Volume Types.

Default: If no size is specified, the existing size * is retained.

*/ inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; } /** *

The target size of the volume, in GiB. The target volume size must be greater * than or equal to than the existing size of the volume. For information about * available EBS volume sizes, see Amazon * EBS Volume Types.

Default: If no size is specified, the existing size * is retained.

*/ inline void SetSize(int value) { m_sizeHasBeenSet = true; m_size = value; } /** *

The target size of the volume, in GiB. The target volume size must be greater * than or equal to than the existing size of the volume. For information about * available EBS volume sizes, see Amazon * EBS Volume Types.

Default: If no size is specified, the existing size * is retained.

*/ inline ModifyVolumeRequest& WithSize(int value) { SetSize(value); return *this;} /** *

The target EBS volume type of the volume.

Default: If no type is * specified, the existing type is retained.

*/ inline const VolumeType& GetVolumeType() const{ return m_volumeType; } /** *

The target EBS volume type of the volume.

Default: If no type is * specified, the existing type is retained.

*/ inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; } /** *

The target EBS volume type of the volume.

Default: If no type is * specified, the existing type is retained.

*/ inline void SetVolumeType(const VolumeType& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; } /** *

The target EBS volume type of the volume.

Default: If no type is * specified, the existing type is retained.

*/ inline void SetVolumeType(VolumeType&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::move(value); } /** *

The target EBS volume type of the volume.

Default: If no type is * specified, the existing type is retained.

*/ inline ModifyVolumeRequest& WithVolumeType(const VolumeType& value) { SetVolumeType(value); return *this;} /** *

The target EBS volume type of the volume.

Default: If no type is * specified, the existing type is retained.

*/ inline ModifyVolumeRequest& WithVolumeType(VolumeType&& value) { SetVolumeType(std::move(value)); return *this;} /** *

The target IOPS rate of the volume.

This is only valid for Provisioned * IOPS SSD (io1 and io2) volumes. For moreinformation, * see * Provisioned IOPS SSD (io1 and io2) volumes.

Default: If no IOPS value * is specified, the existing value is retained.

*/ inline int GetIops() const{ return m_iops; } /** *

The target IOPS rate of the volume.

This is only valid for Provisioned * IOPS SSD (io1 and io2) volumes. For moreinformation, * see * Provisioned IOPS SSD (io1 and io2) volumes.

Default: If no IOPS value * is specified, the existing value is retained.

*/ inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; } /** *

The target IOPS rate of the volume.

This is only valid for Provisioned * IOPS SSD (io1 and io2) volumes. For moreinformation, * see * Provisioned IOPS SSD (io1 and io2) volumes.

Default: If no IOPS value * is specified, the existing value is retained.

*/ inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; } /** *

The target IOPS rate of the volume.

This is only valid for Provisioned * IOPS SSD (io1 and io2) volumes. For moreinformation, * see * Provisioned IOPS SSD (io1 and io2) volumes.

Default: If no IOPS value * is specified, the existing value is retained.

*/ inline ModifyVolumeRequest& WithIops(int value) { SetIops(value); return *this;} private: bool m_dryRun; bool m_dryRunHasBeenSet; Aws::String m_volumeId; bool m_volumeIdHasBeenSet; int m_size; bool m_sizeHasBeenSet; VolumeType m_volumeType; bool m_volumeTypeHasBeenSet; int m_iops; bool m_iopsHasBeenSet; }; } // namespace Model } // namespace EC2 } // namespace Aws