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 to delete the volume on instance termination.
|
Boolean |
getEncrypted()
Indicates whether the volume should be encrypted.
|
Integer |
getIops()
For Provisioned IOPS (SSD) volumes only.
|
String |
getSnapshotId()
The ID of the snapshot.
|
Integer |
getVolumeSize()
The volume size, in gigabytes.
|
String |
getVolumeType()
The volume type.
|
int |
hashCode() |
Boolean |
isDeleteOnTermination()
Indicates whether to delete the volume on instance termination.
|
Boolean |
isEncrypted()
Indicates whether the volume should be encrypted.
|
void |
setDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether to delete the volume on instance termination.
|
void |
setEncrypted(Boolean encrypted)
Indicates whether the volume should be encrypted.
|
void |
setIops(Integer iops)
For Provisioned IOPS (SSD) volumes only.
|
void |
setSnapshotId(String snapshotId)
The ID of the snapshot.
|
void |
setVolumeSize(Integer volumeSize)
The volume size, in gigabytes.
|
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 to delete the volume on instance termination.
|
Ebs |
withEncrypted(Boolean encrypted)
Indicates whether the volume should be encrypted.
|
Ebs |
withIops(Integer iops)
For Provisioned IOPS (SSD) volumes only.
|
Ebs |
withSnapshotId(String snapshotId)
The ID of the snapshot.
|
Ebs |
withVolumeSize(Integer volumeSize)
The volume size, in gigabytes.
|
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 gigabytes.
Valid values: If the volume type is io1
, the minimum size of
the volume is 10 GiB. If you specify SnapshotId
and
VolumeSize
, VolumeSize
must be equal to or
larger than the size of the snapshot.
Default: If you create a volume from a snapshot and you don't specify a volume size, the default is the size of the snapshot.
Required: Required when the volume type is io1
.
volumeSize
- The volume size, in gigabytes.
Valid values: If the volume type is io1
, the minimum
size of the volume is 10 GiB. If you specify
SnapshotId
and VolumeSize
,
VolumeSize
must be equal to or larger than the size
of the snapshot.
Default: If you create a volume from a snapshot and you don't specify a volume size, the default is the size of the snapshot.
Required: Required when the volume type is io1
.
public Integer getVolumeSize()
The volume size, in gigabytes.
Valid values: If the volume type is io1
, the minimum size of
the volume is 10 GiB. If you specify SnapshotId
and
VolumeSize
, VolumeSize
must be equal to or
larger than the size of the snapshot.
Default: If you create a volume from a snapshot and you don't specify a volume size, the default is the size of the snapshot.
Required: Required when the volume type is io1
.
Valid values: If the volume type is io1
, the minimum
size of the volume is 10 GiB. If you specify
SnapshotId
and VolumeSize
,
VolumeSize
must be equal to or larger than the size
of the snapshot.
Default: If you create a volume from a snapshot and you don't specify a volume size, the default is the size of the snapshot.
Required: Required when the volume type is io1
.
public Ebs withVolumeSize(Integer volumeSize)
The volume size, in gigabytes.
Valid values: If the volume type is io1
, the minimum size of
the volume is 10 GiB. If you specify SnapshotId
and
VolumeSize
, VolumeSize
must be equal to or
larger than the size of the snapshot.
Default: If you create a volume from a snapshot and you don't specify a volume size, the default is the size of the snapshot.
Required: Required when the volume type is io1
.
volumeSize
- The volume size, in gigabytes.
Valid values: If the volume type is io1
, the minimum
size of the volume is 10 GiB. If you specify
SnapshotId
and VolumeSize
,
VolumeSize
must be equal to or larger than the size
of the snapshot.
Default: If you create a volume from a snapshot and you don't specify a volume size, the default is the size of the snapshot.
Required: Required when the volume type is io1
.
public void setVolumeType(String volumeType)
The volume type.
Valid values: standard | io1 | gp2
Default: standard
volumeType
- The volume type.
Valid values: standard | io1 | gp2
Default: standard
public String getVolumeType()
The volume type.
Valid values: standard | io1 | gp2
Default: standard
Valid values: standard | io1 | gp2
Default: standard
public Ebs withVolumeType(String volumeType)
The volume type.
Valid values: standard | io1 | gp2
Default: standard
volumeType
- The volume type.
Valid values: standard | io1 | gp2
Default: standard
public void setDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether to delete the volume on instance termination.
Default: true
deleteOnTermination
- Indicates whether to delete the volume on instance
termination.
Default: true
public Boolean getDeleteOnTermination()
Indicates whether to delete the volume on instance termination.
Default: true
Default: true
public Ebs withDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether to delete the volume on instance termination.
Default: true
deleteOnTermination
- Indicates whether to delete the volume on instance
termination.
Default: true
public Boolean isDeleteOnTermination()
Indicates whether to delete the volume on instance termination.
Default: true
Default: true
public void setIops(Integer iops)
For Provisioned IOPS (SSD) volumes only. The number of I/O operations per second (IOPS) to provision for the volume.
Default: None
iops
- For Provisioned IOPS (SSD) volumes only. The number of I/O
operations per second (IOPS) to provision for the volume.
Default: None
public Integer getIops()
For Provisioned IOPS (SSD) volumes only. The number of I/O operations per second (IOPS) to provision for the volume.
Default: None
Default: None
public Ebs withIops(Integer iops)
For Provisioned IOPS (SSD) volumes only. The number of I/O operations per second (IOPS) to provision for the volume.
Default: None
iops
- For Provisioned IOPS (SSD) volumes only. The number of I/O
operations per second (IOPS) to provision for the volume.
Default: None
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.