com.amazonaws.services.ec2.model
Class EbsBlockDevice

java.lang.Object
  extended by com.amazonaws.services.ec2.model.EbsBlockDevice
All Implemented Interfaces:
java.io.Serializable

public class EbsBlockDevice
extends java.lang.Object
implements java.io.Serializable

Describes an Amazon EBS block device.

See Also:
Serialized Form

Constructor Summary
EbsBlockDevice()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Boolean getDeleteOnTermination()
          Indicates whether the Amazon EBS volume is deleted on instance termination.
 java.lang.Boolean getEncrypted()
          Indicates whether the Amazon EBS volume is encrypted.
 java.lang.Integer getIops()
          The number of I/O operations per second (IOPS) that the volume supports.
 java.lang.String getSnapshotId()
          The ID of the snapshot.
 java.lang.Integer getVolumeSize()
          The size of the volume, in GiB.
 java.lang.String getVolumeType()
          The volume type.
 int hashCode()
           
 java.lang.Boolean isDeleteOnTermination()
          Indicates whether the Amazon EBS volume is deleted on instance termination.
 java.lang.Boolean isEncrypted()
          Indicates whether the Amazon EBS volume is encrypted.
 void setDeleteOnTermination(java.lang.Boolean deleteOnTermination)
          Indicates whether the Amazon EBS volume is deleted on instance termination.
 void setEncrypted(java.lang.Boolean encrypted)
          Indicates whether the Amazon EBS volume is encrypted.
 void setIops(java.lang.Integer iops)
          The number of I/O operations per second (IOPS) that the volume supports.
 void setSnapshotId(java.lang.String snapshotId)
          The ID of the snapshot.
 void setVolumeSize(java.lang.Integer volumeSize)
          The size of the volume, in GiB.
 void setVolumeType(java.lang.String volumeType)
          The volume type.
 void setVolumeType(VolumeType volumeType)
          The volume type.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 EbsBlockDevice withDeleteOnTermination(java.lang.Boolean deleteOnTermination)
          Indicates whether the Amazon EBS volume is deleted on instance termination.
 EbsBlockDevice withEncrypted(java.lang.Boolean encrypted)
          Indicates whether the Amazon EBS volume is encrypted.
 EbsBlockDevice withIops(java.lang.Integer iops)
          The number of I/O operations per second (IOPS) that the volume supports.
 EbsBlockDevice withSnapshotId(java.lang.String snapshotId)
          The ID of the snapshot.
 EbsBlockDevice withVolumeSize(java.lang.Integer volumeSize)
          The size of the volume, in GiB.
 EbsBlockDevice withVolumeType(java.lang.String volumeType)
          The volume type.
 EbsBlockDevice withVolumeType(VolumeType volumeType)
          The volume type.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EbsBlockDevice

public EbsBlockDevice()
Method Detail

getSnapshotId

public java.lang.String getSnapshotId()
The ID of the snapshot.

Returns:
The ID of the snapshot.

setSnapshotId

public void setSnapshotId(java.lang.String snapshotId)
The ID of the snapshot.

Parameters:
snapshotId - The ID of the snapshot.

withSnapshotId

public EbsBlockDevice withSnapshotId(java.lang.String snapshotId)
The ID of the snapshot.

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

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

getVolumeSize

public java.lang.Integer getVolumeSize()
The size of the volume, in GiB.

Constraints: If the volume type is io1, the minimum size of the volume is 10 GiB.

Default: If you're creating the volume from a snapshot and don't specify a volume size, the default is the snapshot size.

Returns:
The size of the volume, in GiB.

Constraints: If the volume type is io1, the minimum size of the volume is 10 GiB.

Default: If you're creating the volume from a snapshot and don't specify a volume size, the default is the snapshot size.


setVolumeSize

public void setVolumeSize(java.lang.Integer volumeSize)
The size of the volume, in GiB.

Constraints: If the volume type is io1, the minimum size of the volume is 10 GiB.

Default: If you're creating the volume from a snapshot and don't specify a volume size, the default is the snapshot size.

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

Constraints: If the volume type is io1, the minimum size of the volume is 10 GiB.

Default: If you're creating the volume from a snapshot and don't specify a volume size, the default is the snapshot size.


withVolumeSize

public EbsBlockDevice withVolumeSize(java.lang.Integer volumeSize)
The size of the volume, in GiB.

Constraints: If the volume type is io1, the minimum size of the volume is 10 GiB.

Default: If you're creating the volume from a snapshot and don't specify a volume size, the default is the snapshot size.

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

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

Constraints: If the volume type is io1, the minimum size of the volume is 10 GiB.

Default: If you're creating the volume from a snapshot and don't specify a volume size, the default is the snapshot size.

Returns:
A reference to this updated object so that method calls can be chained together.

isDeleteOnTermination

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

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

setDeleteOnTermination

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

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

withDeleteOnTermination

public EbsBlockDevice withDeleteOnTermination(java.lang.Boolean deleteOnTermination)
Indicates 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 - Indicates 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 java.lang.Boolean getDeleteOnTermination()
Indicates whether the Amazon EBS volume is deleted on instance termination.

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

getVolumeType

public java.lang.String getVolumeType()
The volume type.

Default: standard

Constraints:
Allowed Values: standard, io1

Returns:
The volume type.

Default: standard

See Also:
VolumeType

setVolumeType

public void setVolumeType(java.lang.String volumeType)
The volume type.

Default: standard

Constraints:
Allowed Values: standard, io1

Parameters:
volumeType - The volume type.

Default: standard

See Also:
VolumeType

withVolumeType

public EbsBlockDevice withVolumeType(java.lang.String volumeType)
The volume type.

Default: standard

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

Constraints:
Allowed Values: standard, io1

Parameters:
volumeType - The volume type.

Default: standard

Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
VolumeType

setVolumeType

public void setVolumeType(VolumeType volumeType)
The volume type.

Default: standard

Constraints:
Allowed Values: standard, io1

Parameters:
volumeType - The volume type.

Default: standard

See Also:
VolumeType

withVolumeType

public EbsBlockDevice withVolumeType(VolumeType volumeType)
The volume type.

Default: standard

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

Constraints:
Allowed Values: standard, io1

Parameters:
volumeType - The volume type.

Default: standard

Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
VolumeType

getIops

public java.lang.Integer getIops()
The number of I/O operations per second (IOPS) that the volume supports.

Constraint: Range is 100 to 4000.

Condition: Required when the volume type is io1; not used with standard or gp2 volumes.

Returns:
The number of I/O operations per second (IOPS) that the volume supports.

Constraint: Range is 100 to 4000.

Condition: Required when the volume type is io1; not used with standard or gp2 volumes.


setIops

public void setIops(java.lang.Integer iops)
The number of I/O operations per second (IOPS) that the volume supports.

Constraint: Range is 100 to 4000.

Condition: Required when the volume type is io1; not used with standard or gp2 volumes.

Parameters:
iops - The number of I/O operations per second (IOPS) that the volume supports.

Constraint: Range is 100 to 4000.

Condition: Required when the volume type is io1; not used with standard or gp2 volumes.


withIops

public EbsBlockDevice withIops(java.lang.Integer iops)
The number of I/O operations per second (IOPS) that the volume supports.

Constraint: Range is 100 to 4000.

Condition: Required when the volume type is io1; not used with standard or gp2 volumes.

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

Parameters:
iops - The number of I/O operations per second (IOPS) that the volume supports.

Constraint: Range is 100 to 4000.

Condition: Required when the volume type is io1; not used with standard or gp2 volumes.

Returns:
A reference to this updated object so that method calls can be chained together.

isEncrypted

public java.lang.Boolean isEncrypted()
Indicates whether the Amazon EBS volume is encrypted.

Returns:
Indicates whether the Amazon EBS volume is encrypted.

setEncrypted

public void setEncrypted(java.lang.Boolean encrypted)
Indicates whether the Amazon EBS volume is encrypted.

Parameters:
encrypted - Indicates whether the Amazon EBS volume is encrypted.

withEncrypted

public EbsBlockDevice withEncrypted(java.lang.Boolean encrypted)
Indicates whether the Amazon EBS volume is encrypted.

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

Parameters:
encrypted - Indicates whether the Amazon EBS volume is encrypted.
Returns:
A reference to this updated object so that method calls can be chained together.

getEncrypted

public java.lang.Boolean getEncrypted()
Indicates whether the Amazon EBS volume is encrypted.

Returns:
Indicates whether the Amazon EBS volume is encrypted.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


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