public class Volume extends Object implements Serializable
Represents an Amazon Elastic Block Storage (EBS) volume.
Constructor and Description |
---|
Volume() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<VolumeAttachment> |
getAttachments()
Information on what this volume is attached to.
|
String |
getAvailabilityZone()
Availability zone in which this volume was created.
|
Date |
getCreateTime()
Timestamp when volume creation was initiated.
|
Integer |
getIops()
Returns the value of the Iops property for this object.
|
Integer |
getSize()
The size of this volume, in gigabytes.
|
String |
getSnapshotId()
Optional snapshot from which this volume was created.
|
String |
getState()
State of this volume (e.g., creating, available).
|
List<Tag> |
getTags()
A list of tags for the Volume.
|
String |
getVolumeId()
The unique ID of this volume.
|
String |
getVolumeType()
Returns the value of the VolumeType property for this object.
|
int |
hashCode() |
void |
setAttachments(Collection<VolumeAttachment> attachments)
Information on what this volume is attached to.
|
void |
setAvailabilityZone(String availabilityZone)
Availability zone in which this volume was created.
|
void |
setCreateTime(Date createTime)
Timestamp when volume creation was initiated.
|
void |
setIops(Integer iops)
Sets the value of the Iops property for this object.
|
void |
setSize(Integer size)
The size of this volume, in gigabytes.
|
void |
setSnapshotId(String snapshotId)
Optional snapshot from which this volume was created.
|
void |
setState(String state)
State of this volume (e.g., creating, available).
|
void |
setState(VolumeState state)
State of this volume (e.g., creating, available).
|
void |
setTags(Collection<Tag> tags)
A list of tags for the Volume.
|
void |
setVolumeId(String volumeId)
The unique ID of this volume.
|
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.
|
Volume |
withAttachments(Collection<VolumeAttachment> attachments)
Information on what this volume is attached to.
|
Volume |
withAttachments(VolumeAttachment... attachments)
Information on what this volume is attached to.
|
Volume |
withAvailabilityZone(String availabilityZone)
Availability zone in which this volume was created.
|
Volume |
withCreateTime(Date createTime)
Timestamp when volume creation was initiated.
|
Volume |
withIops(Integer iops)
Sets the value of the Iops property for this object.
|
Volume |
withSize(Integer size)
The size of this volume, in gigabytes.
|
Volume |
withSnapshotId(String snapshotId)
Optional snapshot from which this volume was created.
|
Volume |
withState(String state)
State of this volume (e.g., creating, available).
|
Volume |
withState(VolumeState state)
State of this volume (e.g., creating, available).
|
Volume |
withTags(Collection<Tag> tags)
A list of tags for the Volume.
|
Volume |
withTags(Tag... tags)
A list of tags for the Volume.
|
Volume |
withVolumeId(String volumeId)
The unique ID of this volume.
|
Volume |
withVolumeType(String volumeType)
Sets the value of the VolumeType property for this object.
|
Volume |
withVolumeType(VolumeType volumeType)
Sets the value of the VolumeType property for this object.
|
public String getVolumeId()
public void setVolumeId(String volumeId)
volumeId
- The unique ID of this volume.public Volume withVolumeId(String volumeId)
Returns a reference to this object so that method calls can be chained together.
volumeId
- The unique ID of this volume.public Integer getSize()
public void setSize(Integer size)
size
- The size of this volume, in gigabytes.public Volume withSize(Integer size)
Returns a reference to this object so that method calls can be chained together.
size
- The size of this volume, in gigabytes.public String getSnapshotId()
public void setSnapshotId(String snapshotId)
snapshotId
- Optional snapshot from which this volume was created.public Volume withSnapshotId(String snapshotId)
Returns a reference to this object so that method calls can be chained together.
snapshotId
- Optional snapshot from which this volume was created.public String getAvailabilityZone()
public void setAvailabilityZone(String availabilityZone)
availabilityZone
- Availability zone in which this volume was created.public Volume withAvailabilityZone(String availabilityZone)
Returns a reference to this object so that method calls can be chained together.
availabilityZone
- Availability zone in which this volume was created.public String getState()
Constraints:
Allowed Values: creating, available, in-use, deleting, deleted, error
VolumeState
public void setState(String state)
Constraints:
Allowed Values: creating, available, in-use, deleting, deleted, error
state
- State of this volume (e.g., creating, available).VolumeState
public Volume withState(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
- State of this volume (e.g., creating, available).VolumeState
public void setState(VolumeState state)
Constraints:
Allowed Values: creating, available, in-use, deleting, deleted, error
state
- State of this volume (e.g., creating, available).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
- State of this volume (e.g., creating, available).VolumeState
public Date getCreateTime()
public void setCreateTime(Date createTime)
createTime
- Timestamp when volume creation was initiated.public Volume withCreateTime(Date createTime)
Returns a reference to this object so that method calls can be chained together.
createTime
- Timestamp when volume creation was initiated.public List<VolumeAttachment> getAttachments()
public void setAttachments(Collection<VolumeAttachment> attachments)
attachments
- Information on what this volume is attached to.public Volume withAttachments(VolumeAttachment... attachments)
Returns a reference to this object so that method calls can be chained together.
attachments
- Information on what this volume is attached to.public Volume withAttachments(Collection<VolumeAttachment> attachments)
Returns a reference to this object so that method calls can be chained together.
attachments
- Information on what this volume is attached to.public List<Tag> getTags()
public void setTags(Collection<Tag> tags)
tags
- A list of tags for the Volume.public Volume withTags(Tag... tags)
Returns a reference to this object so that method calls can be chained together.
tags
- A list of tags for the Volume.public Volume withTags(Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
tags
- A list of tags for the Volume.public String getVolumeType()
Constraints:
Allowed Values: standard, io1
VolumeType
public void setVolumeType(String volumeType)
Constraints:
Allowed Values: standard, io1
volumeType
- The new value for the VolumeType property for this object.VolumeType
public Volume withVolumeType(String volumeType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: standard, io1
volumeType
- The new value for the VolumeType property for this object.VolumeType
public void setVolumeType(VolumeType volumeType)
Constraints:
Allowed Values: standard, io1
volumeType
- The new value for the VolumeType property for this object.VolumeType
public Volume withVolumeType(VolumeType volumeType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: standard, io1
volumeType
- The new value for the VolumeType property for this object.VolumeType
public Integer getIops()
public void setIops(Integer iops)
iops
- The new value for the Iops property for this object.public Volume withIops(Integer iops)
Returns a reference to this object so that method calls can be chained together.
iops
- The new value for the Iops property for this object.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.