com.amazonaws.services.ec2.model
Class EbsBlockDevice

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

public class EbsBlockDevice
extends Object

An EBS volume backed block device.


Constructor Summary
EbsBlockDevice()
           
 
Method Summary
 boolean equals(Object obj)
           
 Boolean getDeleteOnTermination()
          Specifies whether the Amazon EBS volume is deleted on instance termination.
 Integer getIops()
          Returns the value of the Iops property for this object.
 String getSnapshotId()
          The ID of the snapshot from which the volume will be created.
 Integer getVolumeSize()
          The size of the volume, in gigabytes.
 String getVolumeType()
          Returns the value of the VolumeType property for this object.
 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 setIops(Integer iops)
          Sets the value of the Iops property for this object.
 void setSnapshotId(String snapshotId)
          The ID of the snapshot from which the volume will be created.
 void setVolumeSize(Integer volumeSize)
          The size of the volume, in gigabytes.
 void setVolumeType(String volumeType)
          Sets the value of the VolumeType property for this object.
 void setVolumeType(VolumeType volumeType)
          Sets the value of the VolumeType property for this object.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 EbsBlockDevice withDeleteOnTermination(Boolean deleteOnTermination)
          Specifies whether the Amazon EBS volume is deleted on instance termination.
 EbsBlockDevice withIops(Integer iops)
          Sets the value of the Iops property for this object.
 EbsBlockDevice withSnapshotId(String snapshotId)
          The ID of the snapshot from which the volume will be created.
 EbsBlockDevice withVolumeSize(Integer volumeSize)
          The size of the volume, in gigabytes.
 EbsBlockDevice withVolumeType(String volumeType)
          Sets the value of the VolumeType property for this object.
 EbsBlockDevice withVolumeType(VolumeType volumeType)
          Sets the value of the VolumeType property for this object.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EbsBlockDevice

public EbsBlockDevice()
Method Detail

getSnapshotId

public String getSnapshotId()
The ID of the snapshot from which the volume will be created.

Returns:
The ID of the snapshot from which the volume will be created.

setSnapshotId

public void setSnapshotId(String snapshotId)
The ID of the snapshot from which the volume will be created.

Parameters:
snapshotId - The ID of the snapshot from which the volume will be created.

withSnapshotId

public EbsBlockDevice withSnapshotId(String snapshotId)
The ID of the snapshot from which the volume will be created.

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

Parameters:
snapshotId - The ID of the snapshot from which the volume will be created.
Returns:
A reference to this updated object so that method calls can be chained together.

getVolumeSize

public Integer getVolumeSize()
The size of the volume, in gigabytes.

Returns:
The size of the volume, in gigabytes.

setVolumeSize

public void setVolumeSize(Integer volumeSize)
The size of the volume, in gigabytes.

Parameters:
volumeSize - The size of the volume, in gigabytes.

withVolumeSize

public EbsBlockDevice withVolumeSize(Integer volumeSize)
The size of the volume, in gigabytes.

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

Parameters:
volumeSize - The size of the volume, in gigabytes.
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 EbsBlockDevice 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.

getVolumeType

public String getVolumeType()
Returns the value of the VolumeType property for this object.

Constraints:
Allowed Values: standard, io1

Returns:
The value of the VolumeType property for this object.
See Also:
VolumeType

setVolumeType

public void setVolumeType(String volumeType)
Sets the value of the VolumeType property for this object.

Constraints:
Allowed Values: standard, io1

Parameters:
volumeType - The new value for the VolumeType property for this object.
See Also:
VolumeType

withVolumeType

public EbsBlockDevice withVolumeType(String volumeType)
Sets the value of the VolumeType property for this object.

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

Constraints:
Allowed Values: standard, io1

Parameters:
volumeType - The new value for the VolumeType property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
VolumeType

setVolumeType

public void setVolumeType(VolumeType volumeType)
Sets the value of the VolumeType property for this object.

Constraints:
Allowed Values: standard, io1

Parameters:
volumeType - The new value for the VolumeType property for this object.
See Also:
VolumeType

withVolumeType

public EbsBlockDevice withVolumeType(VolumeType volumeType)
Sets the value of the VolumeType property for this object.

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

Constraints:
Allowed Values: standard, io1

Parameters:
volumeType - The new value for the VolumeType property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
VolumeType

getIops

public Integer getIops()
Returns the value of the Iops property for this object.

Returns:
The value of the Iops property for this object.

setIops

public void setIops(Integer iops)
Sets the value of the Iops property for this object.

Parameters:
iops - The new value for the Iops property for this object.

withIops

public EbsBlockDevice withIops(Integer iops)
Sets the value of the Iops property for this object.

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

Parameters:
iops - The new value for the Iops property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

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.