@Generated(value="software.amazon.awssdk:codegen") public final class ModifyVolumeRequest extends Ec2Request implements ToCopyableBuilder<ModifyVolumeRequest.Builder,ModifyVolumeRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
ModifyVolumeRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ModifyVolumeRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
iops()
The target IOPS rate of the volume.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ModifyVolumeRequest.Builder> |
serializableBuilderClass() |
Integer |
size()
The target size of the volume, in GiB.
|
Integer |
throughput()
The target throughput of the volume, in MiB/s.
|
ModifyVolumeRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
volumeId()
The ID of the volume.
|
VolumeType |
volumeType()
The target EBS volume type of the volume.
|
String |
volumeTypeAsString()
The target EBS volume type of the volume.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String volumeId()
The ID of the volume.
public Integer size()
The target size of the volume, in GiB. The target volume size must be greater than or equal to the existing size of the volume.
The following are the supported volumes sizes for each volume type:
gp2 and gp3: 1-16,384
io1 and io2: 4-16,384
st1 and sc1: 125-16,384
standard: 1-1,024
Default: If no size is specified, the existing size is retained.
The following are the supported volumes sizes for each volume type:
gp2 and gp3: 1-16,384
io1 and io2: 4-16,384
st1 and sc1: 125-16,384
standard: 1-1,024
Default: If no size is specified, the existing size is retained.
public VolumeType volumeType()
The target EBS volume type of the volume. For more information, see Amazon EBS volume types in the Amazon Elastic Compute Cloud User Guide.
Default: If no type is specified, the existing type is retained.
If the service returns an enum value that is not available in the current SDK version, volumeType will
return VolumeType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
volumeTypeAsString().
Default: If no type is specified, the existing type is retained.
VolumeTypepublic String volumeTypeAsString()
The target EBS volume type of the volume. For more information, see Amazon EBS volume types in the Amazon Elastic Compute Cloud User Guide.
Default: If no type is specified, the existing type is retained.
If the service returns an enum value that is not available in the current SDK version, volumeType will
return VolumeType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
volumeTypeAsString().
Default: If no type is specified, the existing type is retained.
VolumeTypepublic Integer iops()
The target IOPS rate of the volume. This parameter is valid only for gp3, io1, and
io2 volumes.
The following are the supported values for each volume type:
gp3: 3,000-16,000 IOPS
io1: 100-64,000 IOPS
io2: 100-64,000 IOPS
Default: If no IOPS value is specified, the existing value is retained.
gp3, io1,
and io2 volumes.
The following are the supported values for each volume type:
gp3: 3,000-16,000 IOPS
io1: 100-64,000 IOPS
io2: 100-64,000 IOPS
Default: If no IOPS value is specified, the existing value is retained.
public Integer throughput()
The target throughput of the volume, in MiB/s. This parameter is valid only for gp3 volumes. The
maximum value is 1,000.
Default: If no throughput value is specified, the existing value is retained.
Valid Range: Minimum value of 125. Maximum value of 1000.
gp3 volumes.
The maximum value is 1,000.
Default: If no throughput value is specified, the existing value is retained.
Valid Range: Minimum value of 125. Maximum value of 1000.
public ModifyVolumeRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ModifyVolumeRequest.Builder,ModifyVolumeRequest>toBuilder in class Ec2Requestpublic static ModifyVolumeRequest.Builder builder()
public static Class<? extends ModifyVolumeRequest.Builder> serializableBuilderClass()
public int hashCode()
hashCode in class AwsRequestpublic boolean equals(Object obj)
equals in class AwsRequestpublic boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2020. All rights reserved.