@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Ebs extends Object implements Serializable, Cloneable
Describes an Amazon EBS volume.
Constructor and Description |
---|
Ebs() |
Modifier and Type | Method and Description |
---|---|
Ebs |
clone() |
boolean |
equals(Object obj) |
Boolean |
getDeleteOnTermination()
Indicates whether the volume is deleted on instance termination.
|
Boolean |
getEncrypted()
Indicates whether the volume should be encrypted.
|
Integer |
getIops()
The number of I/O operations per second (IOPS) to provision for the volume.
|
String |
getSnapshotId()
The ID of the snapshot.
|
Integer |
getVolumeSize()
The volume size, in GiB.
|
String |
getVolumeType()
The volume type.
|
int |
hashCode() |
Boolean |
isDeleteOnTermination()
Indicates whether the volume is deleted on instance termination.
|
Boolean |
isEncrypted()
Indicates whether the volume should be encrypted.
|
void |
setDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the volume is deleted on instance termination.
|
void |
setEncrypted(Boolean encrypted)
Indicates whether the volume should be encrypted.
|
void |
setIops(Integer iops)
The number of I/O operations per second (IOPS) to provision for the volume.
|
void |
setSnapshotId(String snapshotId)
The ID of the snapshot.
|
void |
setVolumeSize(Integer volumeSize)
The volume size, in GiB.
|
void |
setVolumeType(String volumeType)
The volume type.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Ebs |
withDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the volume is deleted on instance termination.
|
Ebs |
withEncrypted(Boolean encrypted)
Indicates whether the volume should be encrypted.
|
Ebs |
withIops(Integer iops)
The number of I/O operations per second (IOPS) to provision for the volume.
|
Ebs |
withSnapshotId(String snapshotId)
The ID of the snapshot.
|
Ebs |
withVolumeSize(Integer volumeSize)
The volume size, in GiB.
|
Ebs |
withVolumeType(String volumeType)
The volume type.
|
public void setSnapshotId(String snapshotId)
The ID of the snapshot.
snapshotId
- The ID of the snapshot.public String getSnapshotId()
The ID of the snapshot.
public Ebs withSnapshotId(String snapshotId)
The ID of the snapshot.
snapshotId
- The ID of the snapshot.public void setVolumeSize(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 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(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(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 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(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(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 Boolean getDeleteOnTermination()
Indicates whether the volume is deleted on instance termination.
Default: true
Default: true
public Ebs withDeleteOnTermination(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 Boolean isDeleteOnTermination()
Indicates whether the volume is deleted on instance termination.
Default: true
Default: true
public void setIops(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 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(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(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 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(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 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 String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.