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.
|
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.
|
void |
setDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether to delete the volume on instance termination.
|
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 |
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 String getSnapshotId()
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setSnapshotId(String snapshotId)
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
snapshotId - The ID of the snapshot.public Ebs withSnapshotId(String snapshotId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
snapshotId - The ID of the snapshot.public Integer getVolumeSize()
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.
Constraints:
Range: 1 - 16384
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 setVolumeSize(Integer volumeSize)
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.
Constraints:
Range: 1 - 16384
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 Ebs withVolumeSize(Integer volumeSize)
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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 - 16384
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 String getVolumeType()
Valid values: standard | io1 | gp2
Default: standard
Constraints:
Length: 1 - 255
Valid values: standard | io1 | gp2
Default: standard
public void setVolumeType(String volumeType)
Valid values: standard | io1 | gp2
Default: standard
Constraints:
Length: 1 - 255
volumeType - The volume type. Valid values: standard | io1 | gp2
Default: standard
public Ebs withVolumeType(String volumeType)
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. Valid values: standard | io1 | gp2
Default: standard
public Boolean isDeleteOnTermination()
Default: true
Default: true
public void setDeleteOnTermination(Boolean deleteOnTermination)
Default: true
deleteOnTermination - Indicates whether to delete the volume on instance termination.
Default: true
public Ebs withDeleteOnTermination(Boolean deleteOnTermination)
Default: true
Returns a reference to this object so that method calls can be chained together.
deleteOnTermination - Indicates whether to delete the volume on instance termination.
Default: true
public Boolean getDeleteOnTermination()
Default: true
Default: true
public Integer getIops()
Valid values: Range is 100 to 4000.
Default: None
Constraints:
Range: 100 - 20000
Valid values: Range is 100 to 4000.
Default: None
public void setIops(Integer iops)
Valid values: Range is 100 to 4000.
Default: None
Constraints:
Range: 100 - 20000
iops - For Provisioned IOPS (SSD) volumes only. The number of I/O operations
per second (IOPS) to provision for the volume. Valid values: Range is 100 to 4000.
Default: None
public Ebs withIops(Integer iops)
Valid values: Range is 100 to 4000.
Default: None
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 100 - 20000
iops - For Provisioned IOPS (SSD) volumes only. The number of I/O operations
per second (IOPS) to provision for the volume. Valid values: Range is 100 to 4000.
Default: None
public String toString()
toString in class ObjectObject.toString()Copyright © 2015. All rights reserved.