@Generated(value="software.amazon.awssdk:codegen") public final class CreateVolumeResponse extends Ec2Response implements ToCopyableBuilder<CreateVolumeResponse.Builder,CreateVolumeResponse>
Describes a volume.
Modifier and Type | Class and Description |
---|---|
static interface |
CreateVolumeResponse.Builder |
Modifier and Type | Method and Description |
---|---|
List<VolumeAttachment> |
attachments()
Information about the volume attachments.
|
String |
availabilityZone()
The Availability Zone for the volume.
|
static CreateVolumeResponse.Builder |
builder() |
Instant |
createTime()
The time stamp when volume creation was initiated.
|
Boolean |
encrypted()
Indicates whether the volume is encrypted.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
iops()
The number of I/O operations per second (IOPS) that the volume supports.
|
String |
kmsKeyId()
The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) customer master key (CMK) that was
used to protect the volume encryption key for the volume.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateVolumeResponse.Builder> |
serializableBuilderClass() |
Integer |
size()
The size of the volume, in GiBs.
|
String |
snapshotId()
The snapshot from which the volume was created, if applicable.
|
VolumeState |
state()
The volume state.
|
String |
stateAsString()
The volume state.
|
List<Tag> |
tags()
Any tags assigned to the volume.
|
CreateVolumeResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
volumeId()
The ID of the volume.
|
VolumeType |
volumeType()
The volume type.
|
String |
volumeTypeAsString()
The volume type.
|
responseMetadata
sdkHttpResponse
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public List<VolumeAttachment> attachments()
Information about the volume attachments.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public String availabilityZone()
The Availability Zone for the volume.
public Instant createTime()
The time stamp when volume creation was initiated.
public Boolean encrypted()
Indicates whether the volume is encrypted.
public String kmsKeyId()
The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) customer master key (CMK) that was used to protect the volume encryption key for the volume.
public Integer size()
The size of the volume, in GiBs.
public String snapshotId()
The snapshot from which the volume was created, if applicable.
public VolumeState state()
The volume state.
If the service returns an enum value that is not available in the current SDK version, state
will return
VolumeState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
stateAsString()
.
VolumeState
public String stateAsString()
The volume state.
If the service returns an enum value that is not available in the current SDK version, state
will return
VolumeState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
stateAsString()
.
VolumeState
public String volumeId()
The ID of the volume.
public Integer iops()
The number of I/O operations per second (IOPS) that the volume supports. For Provisioned IOPS SSD volumes, this represents the number of IOPS that are provisioned for the volume. For General Purpose SSD volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting. For more information, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud User Guide.
Constraints: Range is 100-16,000 IOPS for gp2
volumes and 100 to 64,000IOPS for io1
volumes, in most Regions. The maximum IOPS for io1
of 64,000 is guaranteed only on Nitro-based
instances. Other instance families guarantee performance up to 32,000 IOPS.
Condition: This parameter is required for requests to create io1
volumes; it is not used in requests
to create gp2
, st1
, sc1
, or standard
volumes.
Constraints: Range is 100-16,000 IOPS for gp2
volumes and 100 to 64,000IOPS for
io1
volumes, in most Regions. The maximum IOPS for io1
of 64,000 is guaranteed
only on Nitro-based instances. Other instance families guarantee performance up to 32,000 IOPS.
Condition: This parameter is required for requests to create io1
volumes; it is not used in
requests to create gp2
, st1
, sc1
, or standard
volumes.
public List<Tag> tags()
Any tags assigned to the volume.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public VolumeType volumeType()
The volume type. This can be gp2
for General Purpose SSD, io1
for Provisioned IOPS SSD,
st1
for Throughput Optimized HDD, sc1
for Cold HDD, or standard
for
Magnetic volumes.
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()
.
gp2
for General Purpose SSD, io1
for Provisioned
IOPS SSD, st1
for Throughput Optimized HDD, sc1
for Cold HDD, or
standard
for Magnetic volumes.VolumeType
public String volumeTypeAsString()
The volume type. This can be gp2
for General Purpose SSD, io1
for Provisioned IOPS SSD,
st1
for Throughput Optimized HDD, sc1
for Cold HDD, or standard
for
Magnetic volumes.
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()
.
gp2
for General Purpose SSD, io1
for Provisioned
IOPS SSD, st1
for Throughput Optimized HDD, sc1
for Cold HDD, or
standard
for Magnetic volumes.VolumeType
public CreateVolumeResponse.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<CreateVolumeResponse.Builder,CreateVolumeResponse>
toBuilder
in class AwsResponse
public static CreateVolumeResponse.Builder builder()
public static Class<? extends CreateVolumeResponse.Builder> serializableBuilderClass()
public int hashCode()
hashCode
in class AwsResponse
public boolean equals(Object obj)
equals
in class AwsResponse
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField
in class SdkResponse
Copyright © 2019. All rights reserved.