@Generated(value="software.amazon.awssdk:codegen") public 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) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
Integer |
iops()
Target IOPS rate of the volume to be modified.
|
static Class<? extends ModifyVolumeRequest.Builder> |
serializableBuilderClass() |
Integer |
size()
Target size in GiB of the volume to be modified.
|
ModifyVolumeRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
volumeId()
Returns the value of the VolumeId property for this object.
|
VolumeType |
volumeType()
Target EBS volume type of the volume to be modified
|
String |
volumeTypeAsString()
Target EBS volume type of the volume to be modified
|
requestOverrideConfig
copy
public String volumeId()
public Integer size()
Target size in GiB of the volume to be modified. 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 http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html.
Default: If no size is specified, the existing size is retained.
Default: If no size is specified, the existing size is retained.
public VolumeType volumeType()
Target EBS volume type of the volume to be modified
The API does not support modifications for volume type standard
. You also cannot change the type of
a volume to standard
.
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()
.
The API does not support modifications for volume type standard
. You also cannot change the
type of a volume to standard
.
Default: If no type is specified, the existing type is retained.
VolumeType
public String volumeTypeAsString()
Target EBS volume type of the volume to be modified
The API does not support modifications for volume type standard
. You also cannot change the type of
a volume to standard
.
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()
.
The API does not support modifications for volume type standard
. You also cannot change the
type of a volume to standard
.
Default: If no type is specified, the existing type is retained.
VolumeType
public Integer iops()
Target IOPS rate of the volume to be modified.
Only valid for Provisioned IOPS SSD (io1
) volumes. For more information about io1
IOPS
configuration, see http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html#EBSVolumeTypes_piops.
Default: If no IOPS value is specified, the existing value is retained.
Only valid for Provisioned IOPS SSD (io1
) volumes. For more information about
io1
IOPS configuration, see http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html#EBSVolumeTypes_piops.
Default: If no IOPS value is specified, the existing value is retained.
public ModifyVolumeRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<ModifyVolumeRequest.Builder,ModifyVolumeRequest>
toBuilder
in class EC2Request
public static ModifyVolumeRequest.Builder builder()
public static Class<? extends ModifyVolumeRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.