@Generated(value="software.amazon.awssdk:codegen") public final class Ebs extends Object implements ToCopyableBuilder<Ebs.Builder,Ebs>
Describes an Amazon EBS volume.
Modifier and Type | Class and Description |
---|---|
static interface |
Ebs.Builder |
Modifier and Type | Method and Description |
---|---|
static Ebs.Builder |
builder() |
Boolean |
deleteOnTermination()
Indicates whether the volume is deleted on instance termination.
|
Boolean |
encrypted()
Indicates whether the volume should be encrypted.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
iops()
The number of I/O operations per second (IOPS) to provision for the volume.
|
static Class<? extends Ebs.Builder> |
serializableBuilderClass() |
String |
snapshotId()
The ID of the snapshot.
|
Ebs.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
Integer |
volumeSize()
The volume size, in GiB.
|
String |
volumeType()
The volume type.
|
copy
public String snapshotId()
The ID of the snapshot.
public Integer volumeSize()
The volume size, in GiB. For standard
volumes, specify a value from 1 to 1,024. For io1
volumes, specify a value from 4 to 16,384. For gp2
volumes, specify a value from 1 to 16,384. If you
specify a snapshot, the volume size must be equal to or larger than the snapshot size.
Default: If you create a volume from a snapshot and you don't specify a volume size, the default is the snapshot size.
standard
volumes, specify a value from 1 to 1,024. For
io1
volumes, specify a value from 4 to 16,384. For gp2
volumes, specify a value
from 1 to 16,384. If you specify a snapshot, the volume size must be equal to or larger than the snapshot
size.
Default: If you create a volume from a snapshot and you don't specify a volume size, the default is the snapshot size.
public String volumeType()
The volume type. For more information, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud User Guide.
Valid values: standard
| io1
| gp2
Default: standard
Valid values: standard
| io1
| gp2
Default: standard
public Boolean deleteOnTermination()
Indicates whether the volume is deleted on instance termination.
Default: true
Default: true
public Integer iops()
The number of I/O operations per second (IOPS) to provision for the volume.
Constraint: Required when the volume type is io1
.
Constraint: Required when the volume type is io1
.
public Boolean encrypted()
Indicates whether the volume should be encrypted. Encrypted EBS volumes must be attached to instances that support Amazon EBS encryption. Volumes that are created from encrypted snapshots are automatically encrypted. There is no way to create an encrypted volume from an unencrypted snapshot or an unencrypted volume from an encrypted snapshot. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.
public Ebs.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Ebs.Builder,Ebs>
public static Ebs.Builder builder()
public static Class<? extends Ebs.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.