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 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.
 
Methods inherited from class java.lang.Object
getClass, 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()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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