public class VolumeSpecification
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
EBS volume specifications such as volume type, IOPS, and size(GiB) that will be requested for the EBS volume attached to an EC2 instance in the cluster.
Modifier and Type | Field and Description |
---|---|
private java.lang.Integer |
iops
The number of I/O operations per second (IOPS) that the volume supports.
|
private java.lang.Integer |
sizeInGB
The volume size, in gibibytes (GiB).
|
private java.lang.String |
volumeType
The volume type.
|
Constructor and Description |
---|
VolumeSpecification() |
Modifier and Type | Method and Description |
---|---|
VolumeSpecification |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getIops()
The number of I/O operations per second (IOPS) that the volume supports.
|
java.lang.Integer |
getSizeInGB()
The volume size, in gibibytes (GiB).
|
java.lang.String |
getVolumeType()
The volume type.
|
int |
hashCode() |
void |
setIops(java.lang.Integer iops)
The number of I/O operations per second (IOPS) that the volume supports.
|
void |
setSizeInGB(java.lang.Integer sizeInGB)
The volume size, in gibibytes (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.
|
VolumeSpecification |
withIops(java.lang.Integer iops)
The number of I/O operations per second (IOPS) that the volume supports.
|
VolumeSpecification |
withSizeInGB(java.lang.Integer sizeInGB)
The volume size, in gibibytes (GiB).
|
VolumeSpecification |
withVolumeType(java.lang.String volumeType)
The volume type.
|
private java.lang.String volumeType
The volume type. Volume types supported are gp2, io1, standard.
private java.lang.Integer iops
The number of I/O operations per second (IOPS) that the volume supports.
private java.lang.Integer sizeInGB
The volume size, in gibibytes (GiB). This can be a number from 1 – 1024. If the volume type is EBS-optimized, the minimum value is 10.
public void setVolumeType(java.lang.String volumeType)
The volume type. Volume types supported are gp2, io1, standard.
volumeType
- The volume type. Volume types supported are gp2, io1, standard.public java.lang.String getVolumeType()
The volume type. Volume types supported are gp2, io1, standard.
public VolumeSpecification withVolumeType(java.lang.String volumeType)
The volume type. Volume types supported are gp2, io1, standard.
volumeType
- The volume type. Volume types supported are gp2, io1, standard.public void setIops(java.lang.Integer iops)
The number of I/O operations per second (IOPS) that the volume supports.
iops
- The number of I/O operations per second (IOPS) that the volume
supports.public java.lang.Integer getIops()
The number of I/O operations per second (IOPS) that the volume supports.
public VolumeSpecification withIops(java.lang.Integer iops)
The number of I/O operations per second (IOPS) that the volume supports.
iops
- The number of I/O operations per second (IOPS) that the volume
supports.public void setSizeInGB(java.lang.Integer sizeInGB)
The volume size, in gibibytes (GiB). This can be a number from 1 – 1024. If the volume type is EBS-optimized, the minimum value is 10.
sizeInGB
- The volume size, in gibibytes (GiB). This can be a number from 1 –
1024. If the volume type is EBS-optimized, the minimum value is
10.public java.lang.Integer getSizeInGB()
The volume size, in gibibytes (GiB). This can be a number from 1 – 1024. If the volume type is EBS-optimized, the minimum value is 10.
public VolumeSpecification withSizeInGB(java.lang.Integer sizeInGB)
The volume size, in gibibytes (GiB). This can be a number from 1 – 1024. If the volume type is EBS-optimized, the minimum value is 10.
sizeInGB
- The volume size, in gibibytes (GiB). This can be a number from 1 –
1024. If the volume type is EBS-optimized, the minimum value is
10.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public VolumeSpecification clone()
clone
in class java.lang.Object