Class VolumeSpecification
- java.lang.Object
-
- com.amazonaws.services.elasticmapreduce.model.VolumeSpecification
-
- All Implemented Interfaces:
Serializable,Cloneable
public class VolumeSpecification extends Object implements Serializable, 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.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VolumeSpecification()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VolumeSpecificationclone()booleanequals(Object obj)IntegergetIops()The number of I/O operations per second (IOPS) that the volume supports.IntegergetSizeInGB()The volume size, in gibibytes (GiB).StringgetVolumeType()The volume type.inthashCode()voidsetIops(Integer iops)The number of I/O operations per second (IOPS) that the volume supports.voidsetSizeInGB(Integer sizeInGB)The volume size, in gibibytes (GiB).voidsetVolumeType(String volumeType)The volume type.StringtoString()Returns a string representation of this object; useful for testing and debugging.VolumeSpecificationwithIops(Integer iops)The number of I/O operations per second (IOPS) that the volume supports.VolumeSpecificationwithSizeInGB(Integer sizeInGB)The volume size, in gibibytes (GiB).VolumeSpecificationwithVolumeType(String volumeType)The volume type.
-
-
-
Method Detail
-
setVolumeType
public void setVolumeType(String volumeType)
The volume type. Volume types supported are gp2, io1, standard.
- Parameters:
volumeType- The volume type. Volume types supported are gp2, io1, standard.
-
getVolumeType
public String getVolumeType()
The volume type. Volume types supported are gp2, io1, standard.
- Returns:
- The volume type. Volume types supported are gp2, io1, standard.
-
withVolumeType
public VolumeSpecification withVolumeType(String volumeType)
The volume type. Volume types supported are gp2, io1, standard.
- Parameters:
volumeType- The volume type. Volume types supported are gp2, io1, standard.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setIops
public void setIops(Integer iops)
The number of I/O operations per second (IOPS) that the volume supports.
- Parameters:
iops- The number of I/O operations per second (IOPS) that the volume supports.
-
getIops
public Integer getIops()
The number of I/O operations per second (IOPS) that the volume supports.
- Returns:
- The number of I/O operations per second (IOPS) that the volume supports.
-
withIops
public VolumeSpecification withIops(Integer iops)
The number of I/O operations per second (IOPS) that the volume supports.
- Parameters:
iops- The number of I/O operations per second (IOPS) that the volume supports.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSizeInGB
public void setSizeInGB(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.
- Parameters:
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.
-
getSizeInGB
public 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.
- Returns:
- 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.
-
withSizeInGB
public VolumeSpecification withSizeInGB(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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public VolumeSpecification clone()
-
-