@Generated(value="software.amazon.awssdk:codegen") public final class Volume extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Volume.Builder,Volume>
Describes an instance's Amazon EBS volume.
Modifier and Type | Class and Description |
---|---|
static interface |
Volume.Builder |
Modifier and Type | Method and Description |
---|---|
String |
availabilityZone()
The volume Availability Zone.
|
static Volume.Builder |
builder() |
String |
device()
The device name.
|
String |
ec2VolumeId()
The Amazon EC2 volume ID.
|
Boolean |
encrypted()
Specifies whether an Amazon EBS volume is encrypted.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
instanceId()
The instance ID.
|
Integer |
iops()
For PIOPS volumes, the IOPS per disk.
|
String |
mountPoint()
The volume mount point.
|
String |
name()
The volume name.
|
String |
raidArrayId()
The RAID array ID.
|
String |
region()
The AWS region.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Volume.Builder> |
serializableBuilderClass() |
Integer |
size()
The volume size.
|
String |
status()
The value returned by DescribeVolumes.
|
Volume.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
volumeId()
The volume ID.
|
String |
volumeType()
The volume type.
|
copy
public String volumeId()
The volume ID.
public String ec2VolumeId()
The Amazon EC2 volume ID.
public String name()
The volume name.
public String raidArrayId()
The RAID array ID.
public String instanceId()
The instance ID.
public String status()
The value returned by DescribeVolumes.
public Integer size()
The volume size.
public String device()
The device name.
public String mountPoint()
The volume mount point. For example, "/mnt/disk1".
public String region()
The AWS region. For more information about AWS regions, see Regions and Endpoints.
public String availabilityZone()
The volume Availability Zone. For more information, see Regions and Endpoints.
public String volumeType()
The volume type. For more information, see Amazon EBS Volume Types.
standard
- Magnetic. Magnetic volumes must have a minimum size of 1 GiB and a maximum size of 1024
GiB.
io1
- Provisioned IOPS (SSD). PIOPS volumes must have a minimum size of 4 GiB and a maximum size of
16384 GiB.
gp2
- General Purpose (SSD). General purpose volumes must have a minimum size of 1 GiB and a maximum
size of 16384 GiB.
st1
- Throughput Optimized hard disk drive (HDD). Throughput optimized HDD volumes must have a
minimum size of 500 GiB and a maximum size of 16384 GiB.
sc1
- Cold HDD. Cold HDD volumes must have a minimum size of 500 GiB and a maximum size of 16384
GiB.
standard
- Magnetic. Magnetic volumes must have a minimum size of 1 GiB and a maximum size
of 1024 GiB.
io1
- Provisioned IOPS (SSD). PIOPS volumes must have a minimum size of 4 GiB and a maximum
size of 16384 GiB.
gp2
- General Purpose (SSD). General purpose volumes must have a minimum size of 1 GiB and a
maximum size of 16384 GiB.
st1
- Throughput Optimized hard disk drive (HDD). Throughput optimized HDD volumes must have
a minimum size of 500 GiB and a maximum size of 16384 GiB.
sc1
- Cold HDD. Cold HDD volumes must have a minimum size of 500 GiB and a maximum size of
16384 GiB.
public Integer iops()
For PIOPS volumes, the IOPS per disk.
public Boolean encrypted()
Specifies whether an Amazon EBS volume is encrypted. For more information, see Amazon EBS Encryption.
public Volume.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Volume.Builder,Volume>
public static Volume.Builder builder()
public static Class<? extends Volume.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.