public class EbsInstanceBlockDeviceSpecification extends Object implements Serializable
Specifies how an EBS volume should be mapped as part of a block device mapping specification when launching a new instance.
Constructor and Description |
---|
EbsInstanceBlockDeviceSpecification() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Boolean |
getDeleteOnTermination()
Specifies whether the Amazon EBS volume is deleted on instance
termination.
|
String |
getVolumeId()
The ID of the EBS volume that should be mounted as a block device on
an Amazon EC2 instance.
|
int |
hashCode() |
Boolean |
isDeleteOnTermination()
Specifies whether the Amazon EBS volume is deleted on instance
termination.
|
void |
setDeleteOnTermination(Boolean deleteOnTermination)
Specifies whether the Amazon EBS volume is deleted on instance
termination.
|
void |
setVolumeId(String volumeId)
The ID of the EBS volume that should be mounted as a block device on
an Amazon EC2 instance.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EbsInstanceBlockDeviceSpecification |
withDeleteOnTermination(Boolean deleteOnTermination)
Specifies whether the Amazon EBS volume is deleted on instance
termination.
|
EbsInstanceBlockDeviceSpecification |
withVolumeId(String volumeId)
The ID of the EBS volume that should be mounted as a block device on
an Amazon EC2 instance.
|
public String getVolumeId()
public void setVolumeId(String volumeId)
volumeId
- The ID of the EBS volume that should be mounted as a block device on
an Amazon EC2 instance.public EbsInstanceBlockDeviceSpecification withVolumeId(String volumeId)
Returns a reference to this object so that method calls can be chained together.
volumeId
- The ID of the EBS volume that should be mounted as a block device on
an Amazon EC2 instance.public Boolean isDeleteOnTermination()
public void setDeleteOnTermination(Boolean deleteOnTermination)
deleteOnTermination
- Specifies whether the Amazon EBS volume is deleted on instance
termination.public EbsInstanceBlockDeviceSpecification withDeleteOnTermination(Boolean deleteOnTermination)
Returns a reference to this object so that method calls can be chained together.
deleteOnTermination
- Specifies whether the Amazon EBS volume is deleted on instance
termination.public Boolean getDeleteOnTermination()
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.