com.amazonaws.services.ec2.model
Class EbsBlockDevice

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

public class EbsBlockDevice
extends Object
implements Serializable

Describes an Amazon EBS block device.

See Also:
Serialized Form

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

Constructor Detail

EbsBlockDevice

public EbsBlockDevice()
Method Detail

getSnapshotId

public String getSnapshotId()
The ID of the snapshot.

Returns:
The ID of the snapshot.

setSnapshotId

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

Parameters:
snapshotId - The ID of the snapshot.

withSnapshotId

public EbsBlockDevice withSnapshotId(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 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(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(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 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(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(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 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 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(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(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 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 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 volumes.


setIops

public void setIops(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 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 volumes.


withIops

public EbsBlockDevice withIops(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 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 volumes.

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

isEncrypted

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

Returns:
Indicates whether the Amazon EBS volume is encrypted.

setEncrypted

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

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

withEncrypted

public EbsBlockDevice withEncrypted(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 Boolean getEncrypted()
Indicates whether the Amazon EBS volume is encrypted.

Returns:
Indicates whether the Amazon EBS volume is encrypted.

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 © 2016. All rights reserved.