Class Ebs
- java.lang.Object
-
- com.amazonaws.services.autoscaling.model.Ebs
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Ebs extends Object implements Serializable, Cloneable
Describes an Amazon EBS volume.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Ebs()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
setSnapshotId
public void setSnapshotId(String snapshotId)
The ID of the snapshot.
- Parameters:
snapshotId
- The ID of the snapshot.
-
getSnapshotId
public String getSnapshotId()
The ID of the snapshot.
- Returns:
- The ID of the snapshot.
-
withSnapshotId
public Ebs withSnapshotId(String snapshotId)
The ID of the snapshot.
- Parameters:
snapshotId
- The ID of the snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVolumeSize
public void setVolumeSize(Integer volumeSize)
The volume size, in GiB. For
standard
volumes, specify a value from 1 to 1,024. Forio1
volumes, specify a value from 4 to 16,384. Forgp2
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.
- Parameters:
volumeSize
- The volume size, in GiB. Forstandard
volumes, specify a value from 1 to 1,024. Forio1
volumes, specify a value from 4 to 16,384. Forgp2
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.
-
getVolumeSize
public Integer getVolumeSize()
The volume size, in GiB. For
standard
volumes, specify a value from 1 to 1,024. Forio1
volumes, specify a value from 4 to 16,384. Forgp2
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:
- The volume size, in GiB. For
standard
volumes, specify a value from 1 to 1,024. Forio1
volumes, specify a value from 4 to 16,384. Forgp2
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.
-
withVolumeSize
public Ebs withVolumeSize(Integer volumeSize)
The volume size, in GiB. For
standard
volumes, specify a value from 1 to 1,024. Forio1
volumes, specify a value from 4 to 16,384. Forgp2
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.
- Parameters:
volumeSize
- The volume size, in GiB. Forstandard
volumes, specify a value from 1 to 1,024. Forio1
volumes, specify a value from 4 to 16,384. Forgp2
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:
- Returns a reference to this object so that method calls can be chained together.
-
setVolumeType
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
- Parameters:
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
-
getVolumeType
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
- Returns:
- 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
-
withVolumeType
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
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
setDeleteOnTermination
public void setDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the volume is deleted on instance termination.
Default:
true
- Parameters:
deleteOnTermination
- Indicates whether the volume is deleted on instance termination.Default:
true
-
getDeleteOnTermination
public Boolean getDeleteOnTermination()
Indicates whether the volume is deleted on instance termination.
Default:
true
- Returns:
- Indicates whether the volume is deleted on instance
termination.
Default:
true
-
withDeleteOnTermination
public Ebs withDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the volume is deleted on instance termination.
Default:
true
- Parameters:
deleteOnTermination
- Indicates whether the volume is deleted on instance termination.Default:
true
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isDeleteOnTermination
public Boolean isDeleteOnTermination()
Indicates whether the volume is deleted on instance termination.
Default:
true
- Returns:
- Indicates whether the volume is deleted on instance
termination.
Default:
true
-
setIops
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
.- Parameters:
iops
- The number of I/O operations per second (IOPS) to provision for the volume.Constraint: Required when the volume type is
io1
.
-
getIops
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
.- Returns:
- The number of I/O operations per second (IOPS) to provision for
the volume.
Constraint: Required when the volume type is
io1
.
-
withIops
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
.- Parameters:
iops
- The number of I/O operations per second (IOPS) to provision for the volume.Constraint: Required when the volume type is
io1
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEncrypted
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.
- Parameters:
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.
-
getEncrypted
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.
- Returns:
- 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.
-
withEncrypted
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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
isEncrypted
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.
- Returns:
- 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.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-