@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails extends Object implements Serializable, Cloneable, StructuredPojo
Parameters that are used to automatically set up EBS volumes when an instance is launched.
Constructor and Description |
---|
AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails() |
Modifier and Type | Method and Description |
---|---|
AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails |
clone() |
boolean |
equals(Object obj) |
Boolean |
getDeleteOnTermination()
Whether to delete the volume when the instance is terminated.
|
Boolean |
getEncrypted()
Whether to encrypt the volume.
|
Integer |
getIops()
The number of input/output (I/O) operations per second (IOPS) to provision for the volume.
|
String |
getSnapshotId()
The snapshot ID of the volume to use.
|
Integer |
getVolumeSize()
The volume size, in GiBs.
|
String |
getVolumeType()
The volume type.
|
int |
hashCode() |
Boolean |
isDeleteOnTermination()
Whether to delete the volume when the instance is terminated.
|
Boolean |
isEncrypted()
Whether to encrypt the volume.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDeleteOnTermination(Boolean deleteOnTermination)
Whether to delete the volume when the instance is terminated.
|
void |
setEncrypted(Boolean encrypted)
Whether to encrypt the volume.
|
void |
setIops(Integer iops)
The number of input/output (I/O) operations per second (IOPS) to provision for the volume.
|
void |
setSnapshotId(String snapshotId)
The snapshot ID of the volume to use.
|
void |
setVolumeSize(Integer volumeSize)
The volume size, in GiBs.
|
void |
setVolumeType(String volumeType)
The volume type.
|
String |
toString()
Returns a string representation of this object.
|
AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails |
withDeleteOnTermination(Boolean deleteOnTermination)
Whether to delete the volume when the instance is terminated.
|
AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails |
withEncrypted(Boolean encrypted)
Whether to encrypt the volume.
|
AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails |
withIops(Integer iops)
The number of input/output (I/O) operations per second (IOPS) to provision for the volume.
|
AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails |
withSnapshotId(String snapshotId)
The snapshot ID of the volume to use.
|
AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails |
withVolumeSize(Integer volumeSize)
The volume size, in GiBs.
|
AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails |
withVolumeType(String volumeType)
The volume type.
|
public AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails()
public void setDeleteOnTermination(Boolean deleteOnTermination)
Whether to delete the volume when the instance is terminated.
deleteOnTermination
- Whether to delete the volume when the instance is terminated.public Boolean getDeleteOnTermination()
Whether to delete the volume when the instance is terminated.
public AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails withDeleteOnTermination(Boolean deleteOnTermination)
Whether to delete the volume when the instance is terminated.
deleteOnTermination
- Whether to delete the volume when the instance is terminated.public Boolean isDeleteOnTermination()
Whether to delete the volume when the instance is terminated.
public void setEncrypted(Boolean encrypted)
Whether to encrypt the volume.
encrypted
- Whether to encrypt the volume.public Boolean getEncrypted()
Whether to encrypt the volume.
public AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails withEncrypted(Boolean encrypted)
Whether to encrypt the volume.
encrypted
- Whether to encrypt the volume.public Boolean isEncrypted()
Whether to encrypt the volume.
public void setIops(Integer iops)
The number of input/output (I/O) operations per second (IOPS) to provision for the volume.
Only supported for gp3
or io1
volumes. Required for io1
volumes. Not used
with standard
, gp2
, st1
, or sc1
volumes.
iops
- The number of input/output (I/O) operations per second (IOPS) to provision for the volume.
Only supported for gp3
or io1
volumes. Required for io1
volumes.
Not used with standard
, gp2
, st1
, or sc1
volumes.
public Integer getIops()
The number of input/output (I/O) operations per second (IOPS) to provision for the volume.
Only supported for gp3
or io1
volumes. Required for io1
volumes. Not used
with standard
, gp2
, st1
, or sc1
volumes.
Only supported for gp3
or io1
volumes. Required for io1
volumes.
Not used with standard
, gp2
, st1
, or sc1
volumes.
public AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails withIops(Integer iops)
The number of input/output (I/O) operations per second (IOPS) to provision for the volume.
Only supported for gp3
or io1
volumes. Required for io1
volumes. Not used
with standard
, gp2
, st1
, or sc1
volumes.
iops
- The number of input/output (I/O) operations per second (IOPS) to provision for the volume.
Only supported for gp3
or io1
volumes. Required for io1
volumes.
Not used with standard
, gp2
, st1
, or sc1
volumes.
public void setSnapshotId(String snapshotId)
The snapshot ID of the volume to use.
You must specify either VolumeSize
or SnapshotId
.
snapshotId
- The snapshot ID of the volume to use.
You must specify either VolumeSize
or SnapshotId
.
public String getSnapshotId()
The snapshot ID of the volume to use.
You must specify either VolumeSize
or SnapshotId
.
You must specify either VolumeSize
or SnapshotId
.
public AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails withSnapshotId(String snapshotId)
The snapshot ID of the volume to use.
You must specify either VolumeSize
or SnapshotId
.
snapshotId
- The snapshot ID of the volume to use.
You must specify either VolumeSize
or SnapshotId
.
public void setVolumeSize(Integer volumeSize)
The volume size, in GiBs. The following are the supported volumes sizes for each volume type:
gp2 and gp3: 1-16,384
io1: 4-16,384
st1 and sc1: 125-16,384
standard: 1-1,024
You must specify either SnapshotId
or VolumeSize
. If you specify both
SnapshotId
and VolumeSize
, the volume size must be equal or greater than the size of
the snapshot.
volumeSize
- The volume size, in GiBs. The following are the supported volumes sizes for each volume type:
gp2 and gp3: 1-16,384
io1: 4-16,384
st1 and sc1: 125-16,384
standard: 1-1,024
You must specify either SnapshotId
or VolumeSize
. If you specify both
SnapshotId
and VolumeSize
, the volume size must be equal or greater than the
size of the snapshot.
public Integer getVolumeSize()
The volume size, in GiBs. The following are the supported volumes sizes for each volume type:
gp2 and gp3: 1-16,384
io1: 4-16,384
st1 and sc1: 125-16,384
standard: 1-1,024
You must specify either SnapshotId
or VolumeSize
. If you specify both
SnapshotId
and VolumeSize
, the volume size must be equal or greater than the size of
the snapshot.
gp2 and gp3: 1-16,384
io1: 4-16,384
st1 and sc1: 125-16,384
standard: 1-1,024
You must specify either SnapshotId
or VolumeSize
. If you specify both
SnapshotId
and VolumeSize
, the volume size must be equal or greater than the
size of the snapshot.
public AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails withVolumeSize(Integer volumeSize)
The volume size, in GiBs. The following are the supported volumes sizes for each volume type:
gp2 and gp3: 1-16,384
io1: 4-16,384
st1 and sc1: 125-16,384
standard: 1-1,024
You must specify either SnapshotId
or VolumeSize
. If you specify both
SnapshotId
and VolumeSize
, the volume size must be equal or greater than the size of
the snapshot.
volumeSize
- The volume size, in GiBs. The following are the supported volumes sizes for each volume type:
gp2 and gp3: 1-16,384
io1: 4-16,384
st1 and sc1: 125-16,384
standard: 1-1,024
You must specify either SnapshotId
or VolumeSize
. If you specify both
SnapshotId
and VolumeSize
, the volume size must be equal or greater than the
size of the snapshot.
public void setVolumeType(String volumeType)
The volume type.
volumeType
- The volume type.public String getVolumeType()
The volume type.
public AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails withVolumeType(String volumeType)
The volume type.
volumeType
- The volume type.public String toString()
toString
in class Object
Object.toString()
public AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.