|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.ec2.model.Volume
public class Volume
Describes a volume.
Constructor Summary | |
---|---|
Volume()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.util.List<VolumeAttachment> |
getAttachments()
|
java.lang.String |
getAvailabilityZone()
The Availability Zone for the volume. |
java.util.Date |
getCreateTime()
The time stamp when volume creation was initiated. |
java.lang.Boolean |
getEncrypted()
Indicates whether the volume is encrypted. |
java.lang.Integer |
getIops()
The number of I/O operations per second (IOPS) that the volume supports. |
java.lang.Integer |
getSize()
The size of the volume, in GiBs. |
java.lang.String |
getSnapshotId()
The snapshot from which the volume was created, if applicable. |
java.lang.String |
getState()
The volume state. |
java.util.List<Tag> |
getTags()
Any tags assigned to the volume. |
java.lang.String |
getVolumeId()
The ID of the volume. |
java.lang.String |
getVolumeType()
The volume type. |
int |
hashCode()
|
java.lang.Boolean |
isEncrypted()
Indicates whether the volume is encrypted. |
void |
setAttachments(java.util.Collection<VolumeAttachment> attachments)
|
void |
setAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone for the volume. |
void |
setCreateTime(java.util.Date createTime)
The time stamp when volume creation was initiated. |
void |
setEncrypted(java.lang.Boolean encrypted)
Indicates whether the volume is encrypted. |
void |
setIops(java.lang.Integer iops)
The number of I/O operations per second (IOPS) that the volume supports. |
void |
setSize(java.lang.Integer size)
The size of the volume, in GiBs. |
void |
setSnapshotId(java.lang.String snapshotId)
The snapshot from which the volume was created, if applicable. |
void |
setState(java.lang.String state)
The volume state. |
void |
setState(VolumeState state)
The volume state. |
void |
setTags(java.util.Collection<Tag> tags)
Any tags assigned to the volume. |
void |
setVolumeId(java.lang.String volumeId)
The ID of the volume. |
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. |
Volume |
withAttachments(java.util.Collection<VolumeAttachment> attachments)
Returns a reference to this object so that method calls can be chained together. |
Volume |
withAttachments(VolumeAttachment... attachments)
Returns a reference to this object so that method calls can be chained together. |
Volume |
withAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone for the volume. |
Volume |
withCreateTime(java.util.Date createTime)
The time stamp when volume creation was initiated. |
Volume |
withEncrypted(java.lang.Boolean encrypted)
Indicates whether the volume is encrypted. |
Volume |
withIops(java.lang.Integer iops)
The number of I/O operations per second (IOPS) that the volume supports. |
Volume |
withSize(java.lang.Integer size)
The size of the volume, in GiBs. |
Volume |
withSnapshotId(java.lang.String snapshotId)
The snapshot from which the volume was created, if applicable. |
Volume |
withState(java.lang.String state)
The volume state. |
Volume |
withState(VolumeState state)
The volume state. |
Volume |
withTags(java.util.Collection<Tag> tags)
Any tags assigned to the volume. |
Volume |
withTags(Tag... tags)
Any tags assigned to the volume. |
Volume |
withVolumeId(java.lang.String volumeId)
The ID of the volume. |
Volume |
withVolumeType(java.lang.String volumeType)
The volume type. |
Volume |
withVolumeType(VolumeType volumeType)
The volume type. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Volume()
Method Detail |
---|
public java.lang.String getVolumeId()
public void setVolumeId(java.lang.String volumeId)
volumeId
- The ID of the volume.public Volume withVolumeId(java.lang.String volumeId)
Returns a reference to this object so that method calls can be chained together.
volumeId
- The ID of the volume.
public java.lang.Integer getSize()
public void setSize(java.lang.Integer size)
size
- The size of the volume, in GiBs.public Volume withSize(java.lang.Integer size)
Returns a reference to this object so that method calls can be chained together.
size
- The size of the volume, in GiBs.
public java.lang.String getSnapshotId()
public void setSnapshotId(java.lang.String snapshotId)
snapshotId
- The snapshot from which the volume was created, if applicable.public Volume withSnapshotId(java.lang.String snapshotId)
Returns a reference to this object so that method calls can be chained together.
snapshotId
- The snapshot from which the volume was created, if applicable.
public java.lang.String getAvailabilityZone()
public void setAvailabilityZone(java.lang.String availabilityZone)
availabilityZone
- The Availability Zone for the volume.public Volume withAvailabilityZone(java.lang.String availabilityZone)
Returns a reference to this object so that method calls can be chained together.
availabilityZone
- The Availability Zone for the volume.
public java.lang.String getState()
Constraints:
Allowed Values: creating, available, in-use, deleting, deleted, error
VolumeState
public void setState(java.lang.String state)
Constraints:
Allowed Values: creating, available, in-use, deleting, deleted, error
state
- The volume state.VolumeState
public Volume withState(java.lang.String state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: creating, available, in-use, deleting, deleted, error
state
- The volume state.
VolumeState
public void setState(VolumeState state)
Constraints:
Allowed Values: creating, available, in-use, deleting, deleted, error
state
- The volume state.VolumeState
public Volume withState(VolumeState state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: creating, available, in-use, deleting, deleted, error
state
- The volume state.
VolumeState
public java.util.Date getCreateTime()
public void setCreateTime(java.util.Date createTime)
createTime
- The time stamp when volume creation was initiated.public Volume withCreateTime(java.util.Date createTime)
Returns a reference to this object so that method calls can be chained together.
createTime
- The time stamp when volume creation was initiated.
public java.util.List<VolumeAttachment> getAttachments()
public void setAttachments(java.util.Collection<VolumeAttachment> attachments)
attachments
- public Volume withAttachments(VolumeAttachment... attachments)
Returns a reference to this object so that method calls can be chained together.
attachments
-
public Volume withAttachments(java.util.Collection<VolumeAttachment> attachments)
Returns a reference to this object so that method calls can be chained together.
attachments
-
public java.util.List<Tag> getTags()
public void setTags(java.util.Collection<Tag> tags)
tags
- Any tags assigned to the volume.public Volume withTags(Tag... tags)
Returns a reference to this object so that method calls can be chained together.
tags
- Any tags assigned to the volume.
public Volume withTags(java.util.Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
tags
- Any tags assigned to the volume.
public java.lang.String getVolumeType()
gp2
for General Purpose
(SSD) volumes, io1
for Provisioned IOPS (SSD) volumes, or
standard
for Magnetic volumes.
Constraints:
Allowed Values: standard, io1
gp2
for General Purpose
(SSD) volumes, io1
for Provisioned IOPS (SSD) volumes, or
standard
for Magnetic volumes.VolumeType
public void setVolumeType(java.lang.String volumeType)
gp2
for General Purpose
(SSD) volumes, io1
for Provisioned IOPS (SSD) volumes, or
standard
for Magnetic volumes.
Constraints:
Allowed Values: standard, io1
volumeType
- The volume type. This can be gp2
for General Purpose
(SSD) volumes, io1
for Provisioned IOPS (SSD) volumes, or
standard
for Magnetic volumes.VolumeType
public Volume withVolumeType(java.lang.String volumeType)
gp2
for General Purpose
(SSD) volumes, io1
for Provisioned IOPS (SSD) volumes, or
standard
for Magnetic volumes.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: standard, io1
volumeType
- The volume type. This can be gp2
for General Purpose
(SSD) volumes, io1
for Provisioned IOPS (SSD) volumes, or
standard
for Magnetic volumes.
VolumeType
public void setVolumeType(VolumeType volumeType)
gp2
for General Purpose
(SSD) volumes, io1
for Provisioned IOPS (SSD) volumes, or
standard
for Magnetic volumes.
Constraints:
Allowed Values: standard, io1
volumeType
- The volume type. This can be gp2
for General Purpose
(SSD) volumes, io1
for Provisioned IOPS (SSD) volumes, or
standard
for Magnetic volumes.VolumeType
public Volume withVolumeType(VolumeType volumeType)
gp2
for General Purpose
(SSD) volumes, io1
for Provisioned IOPS (SSD) volumes, or
standard
for Magnetic volumes.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: standard, io1
volumeType
- The volume type. This can be gp2
for General Purpose
(SSD) volumes, io1
for Provisioned IOPS (SSD) volumes, or
standard
for Magnetic volumes.
VolumeType
public java.lang.Integer getIops()
public void setIops(java.lang.Integer iops)
iops
- The number of I/O operations per second (IOPS) that the volume
supports.public Volume withIops(java.lang.Integer iops)
Returns a reference to this object so that method calls can be chained together.
iops
- The number of I/O operations per second (IOPS) that the volume
supports.
public java.lang.Boolean isEncrypted()
public void setEncrypted(java.lang.Boolean encrypted)
encrypted
- Indicates whether the volume is encrypted.public Volume withEncrypted(java.lang.Boolean encrypted)
Returns a reference to this object so that method calls can be chained together.
encrypted
- Indicates whether the volume is encrypted.
public java.lang.Boolean getEncrypted()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |