public class Ebs
extends java.lang.Object
implements java.io.Serializable
Describes an Amazon EBS volume.
Constructor and Description |
---|
Ebs() |
Modifier and Type | Method and Description |
---|---|
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.
|
public java.lang.String getSnapshotId()
The ID of the snapshot.
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
The ID of the snapshot.
public void setSnapshotId(java.lang.String snapshotId)
The ID of the snapshot.
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
snapshotId
- The ID of the snapshot.
public Ebs withSnapshotId(java.lang.String snapshotId)
The ID of the snapshot.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
snapshotId
- The ID of the snapshot.
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.
Constraints:
Range: 1 - 16384
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 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.
Constraints:
Range: 1 - 16384
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 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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 - 16384
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.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
Constraints:
Length: 1 - 255
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 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
Constraints:
Length: 1 - 255
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 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
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
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.Boolean isDeleteOnTermination()
Indicates whether the volume is deleted on instance termination.
Default: true
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
Indicates whether the volume is deleted on instance termination.
Default: true
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 Ebs withDeleteOnTermination(java.lang.Boolean deleteOnTermination)
Indicates whether the volume is deleted on instance termination.
Default: true
Returns a reference to this object so that method calls can be chained together.
deleteOnTermination
- Indicates whether the volume is deleted on instance termination.
Default: true
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
.
Constraints:
Range: 100 - 20000
The number of I/O operations per second (IOPS) to provision for the volume.
Constraint: Required when the volume type is io1
.
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
.
Constraints:
Range: 100 - 20000
iops
- The number of I/O operations per second (IOPS) to provision for the volume.
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
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 100 - 20000
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.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.
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.
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 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 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.
Returns a reference to this object so that method calls can be chained together.
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.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.