Package com.amazonaws.services.ec2.model
Class EbsInstanceBlockDeviceSpecification
- java.lang.Object
-
- com.amazonaws.services.ec2.model.EbsInstanceBlockDeviceSpecification
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class EbsInstanceBlockDeviceSpecification extends Object implements Serializable, Cloneable
Describes information used to set up an EBS volume specified in a block device mapping.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EbsInstanceBlockDeviceSpecification()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EbsInstanceBlockDeviceSpecification
clone()
boolean
equals(Object obj)
Boolean
getDeleteOnTermination()
Indicates whether the volume is deleted on instance termination.String
getVolumeId()
The ID of the EBS volume.int
hashCode()
Boolean
isDeleteOnTermination()
Indicates whether the volume is deleted on instance termination.void
setDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the volume is deleted on instance termination.void
setVolumeId(String volumeId)
The ID of the EBS volume.String
toString()
Returns a string representation of this object; useful for testing and debugging.EbsInstanceBlockDeviceSpecification
withDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the volume is deleted on instance termination.EbsInstanceBlockDeviceSpecification
withVolumeId(String volumeId)
The ID of the EBS volume.
-
-
-
Method Detail
-
setVolumeId
public void setVolumeId(String volumeId)
The ID of the EBS volume.
- Parameters:
volumeId
- The ID of the EBS volume.
-
getVolumeId
public String getVolumeId()
The ID of the EBS volume.
- Returns:
- The ID of the EBS volume.
-
withVolumeId
public EbsInstanceBlockDeviceSpecification withVolumeId(String volumeId)
The ID of the EBS volume.
- Parameters:
volumeId
- The ID of the EBS volume.- 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.
- Parameters:
deleteOnTermination
- Indicates whether the volume is deleted on instance termination.
-
getDeleteOnTermination
public Boolean getDeleteOnTermination()
Indicates whether the volume is deleted on instance termination.
- Returns:
- Indicates whether the volume is deleted on instance termination.
-
withDeleteOnTermination
public EbsInstanceBlockDeviceSpecification withDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the volume is deleted on instance termination.
- Parameters:
deleteOnTermination
- Indicates whether the volume is deleted on instance termination.- 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.
- Returns:
- Indicates whether the volume is deleted on instance termination.
-
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()
-
clone
public EbsInstanceBlockDeviceSpecification clone()
-
-