public class Ebs
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes an Amazon EBS volume.
Modifier and Type | Field and Description |
---|---|
private java.lang.Boolean |
deleteOnTermination
Indicates whether the volume is deleted on instance termination.
|
private java.lang.Boolean |
encrypted
Indicates whether the volume should be encrypted.
|
private java.lang.Integer |
iops
The number of I/O operations per second (IOPS) to provision for the
volume.
|
private java.lang.String |
snapshotId
The ID of the snapshot.
|
private java.lang.Integer |
volumeSize
The volume size, in GiB.
|
private java.lang.String |
volumeType
The volume type.
|
Constructor and Description |
---|
Ebs() |
Modifier and Type | Method and Description |
---|---|
Ebs |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Boolean |
getDeleteOnTermination()
Indicates whether the volume is deleted on instance termination.
|
java.lang.Boolean |
getEncrypted()
Indicates whether the volume should be encrypted.
|
java.lang.Integer |
getIops()
The number of I/O operations per second (IOPS) to provision for the
volume.
|
java.lang.String |
getSnapshotId()
The ID of the snapshot.
|
java.lang.Integer |
getVolumeSize()
The volume size, in GiB.
|
java.lang.String |
getVolumeType()
The volume type.
|
int |
hashCode() |
java.lang.Boolean |
isDeleteOnTermination()
Indicates whether the volume is deleted on instance termination.
|
java.lang.Boolean |
isEncrypted()
Indicates whether the volume should be encrypted.
|
void |
setDeleteOnTermination(java.lang.Boolean deleteOnTermination)
Indicates whether the volume is deleted on instance termination.
|
void |
setEncrypted(java.lang.Boolean encrypted)
Indicates whether the volume should be encrypted.
|
void |
setIops(java.lang.Integer iops)
The number of I/O operations per second (IOPS) to provision for the
volume.
|
void |
setSnapshotId(java.lang.String snapshotId)
The ID of the snapshot.
|
void |
setVolumeSize(java.lang.Integer volumeSize)
The volume size, in GiB.
|
void |
setVolumeType(java.lang.String volumeType)
The volume type.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Ebs |
withDeleteOnTermination(java.lang.Boolean deleteOnTermination)
Indicates whether the volume is deleted on instance termination.
|
Ebs |
withEncrypted(java.lang.Boolean encrypted)
Indicates whether the volume should be encrypted.
|
Ebs |
withIops(java.lang.Integer iops)
The number of I/O operations per second (IOPS) to provision for the
volume.
|
Ebs |
withSnapshotId(java.lang.String snapshotId)
The ID of the snapshot.
|
Ebs |
withVolumeSize(java.lang.Integer volumeSize)
The volume size, in GiB.
|
Ebs |
withVolumeType(java.lang.String volumeType)
The volume type.
|
private java.lang.String snapshotId
The ID of the snapshot.
private java.lang.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.
private java.lang.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
private java.lang.Boolean deleteOnTermination
Indicates whether the volume is deleted on instance termination.
Default: true
private java.lang.Integer iops
The number of I/O operations per second (IOPS) to provision for the volume.
Constraint: Required when the volume type is io1
.
private java.lang.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 void setSnapshotId(java.lang.String snapshotId)
The ID of the snapshot.
snapshotId
- The ID of the snapshot.public java.lang.String getSnapshotId()
The ID of the snapshot.
public Ebs withSnapshotId(java.lang.String snapshotId)
The ID of the snapshot.
snapshotId
- The ID of the snapshot.public void setVolumeSize(java.lang.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.
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.
public java.lang.Integer getVolumeSize()
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 Ebs withVolumeSize(java.lang.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.
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.
public void setVolumeType(java.lang.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
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
public java.lang.String getVolumeType()
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 Ebs withVolumeType(java.lang.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
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
public void setDeleteOnTermination(java.lang.Boolean deleteOnTermination)
Indicates whether the volume is deleted on instance termination.
Default: true
deleteOnTermination
- Indicates whether the volume is deleted on instance
termination.
Default: true
public java.lang.Boolean getDeleteOnTermination()
Indicates whether the volume is deleted on instance termination.
Default: true
Default: true
public Ebs withDeleteOnTermination(java.lang.Boolean deleteOnTermination)
Indicates whether the volume is deleted on instance termination.
Default: true
deleteOnTermination
- Indicates whether the volume is deleted on instance
termination.
Default: true
public java.lang.Boolean isDeleteOnTermination()
Indicates whether the volume is deleted on instance termination.
Default: true
Default: true
public void setIops(java.lang.Integer iops)
The number of I/O operations per second (IOPS) to provision for the volume.
Constraint: Required when the volume type is io1
.
iops
- The number of I/O operations per second (IOPS) to provision for
the volume.
Constraint: Required when the volume type is io1
.
public java.lang.Integer getIops()
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 Ebs withIops(java.lang.Integer iops)
The number of I/O operations per second (IOPS) to provision for the volume.
Constraint: Required when the volume type is io1
.
iops
- The number of I/O operations per second (IOPS) to provision for
the volume.
Constraint: Required when the volume type is io1
.
public void setEncrypted(java.lang.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.
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 java.lang.Boolean getEncrypted()
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 withEncrypted(java.lang.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.
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 java.lang.Boolean isEncrypted()
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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Ebs clone()
clone
in class java.lang.Object