com.amazonaws.services.ec2.model
Class EbsInstanceBlockDeviceSpecification

java.lang.Object
  extended by com.amazonaws.services.ec2.model.EbsInstanceBlockDeviceSpecification

public class EbsInstanceBlockDeviceSpecification
extends Object

Specifies how an EBS volume should be mapped as part of a block device mapping specification when launching a new instance.


Constructor Summary
EbsInstanceBlockDeviceSpecification()
           
 
Method Summary
 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.
 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()
           
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EbsInstanceBlockDeviceSpecification

public EbsInstanceBlockDeviceSpecification()
Method Detail

getVolumeId

public String getVolumeId()
The ID of the EBS volume that should be mounted as a block device on an Amazon EC2 instance.

Returns:
The ID of the EBS volume that should be mounted as a block device on an Amazon EC2 instance.

setVolumeId

public void setVolumeId(String volumeId)
The ID of the EBS volume that should be mounted as a block device on an Amazon EC2 instance.

Parameters:
volumeId - The ID of the EBS volume that should be mounted as a block device on an Amazon EC2 instance.

withVolumeId

public EbsInstanceBlockDeviceSpecification withVolumeId(String volumeId)
The ID of the EBS volume that should be mounted as a block device on an Amazon EC2 instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
volumeId - The ID of the EBS volume that should be mounted as a block device on an Amazon EC2 instance.
Returns:
A reference to this updated object so that method calls can be chained together.

isDeleteOnTermination

public Boolean isDeleteOnTermination()
Specifies whether the Amazon EBS volume is deleted on instance termination.

Returns:
Specifies whether the Amazon EBS volume is deleted on instance termination.

setDeleteOnTermination

public void setDeleteOnTermination(Boolean deleteOnTermination)
Specifies whether the Amazon EBS volume is deleted on instance termination.

Parameters:
deleteOnTermination - Specifies whether the Amazon EBS volume is deleted on instance termination.

withDeleteOnTermination

public EbsInstanceBlockDeviceSpecification withDeleteOnTermination(Boolean deleteOnTermination)
Specifies whether the Amazon EBS volume is deleted on instance termination.

Returns a reference to this object so that method calls can be chained together.

Parameters:
deleteOnTermination - Specifies whether the Amazon EBS volume is deleted on instance termination.
Returns:
A reference to this updated object so that method calls can be chained together.

getDeleteOnTermination

public Boolean getDeleteOnTermination()
Specifies whether the Amazon EBS volume is deleted on instance termination.

Returns:
Specifies whether the Amazon EBS volume is deleted on instance termination.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.