public class Volume extends Object implements Serializable
Describes an instance's Amazon EBS volume.
Constructor and Description |
---|
Volume() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAvailabilityZone()
The volume Availability Zone.
|
String |
getDevice()
The device name.
|
String |
getEc2VolumeId()
The Amazon EC2 volume ID.
|
String |
getInstanceId()
The instance ID.
|
String |
getMountPoint()
The volume mount point.
|
String |
getName()
The volume name.
|
String |
getRaidArrayId()
The RAID array ID.
|
String |
getRegion()
The AWS region.
|
Integer |
getSize()
The volume size.
|
String |
getStatus()
The value returned by DescribeVolumes.
|
String |
getVolumeId()
The volume ID.
|
int |
hashCode() |
void |
setAvailabilityZone(String availabilityZone)
The volume Availability Zone.
|
void |
setDevice(String device)
The device name.
|
void |
setEc2VolumeId(String ec2VolumeId)
The Amazon EC2 volume ID.
|
void |
setInstanceId(String instanceId)
The instance ID.
|
void |
setMountPoint(String mountPoint)
The volume mount point.
|
void |
setName(String name)
The volume name.
|
void |
setRaidArrayId(String raidArrayId)
The RAID array ID.
|
void |
setRegion(String region)
The AWS region.
|
void |
setSize(Integer size)
The volume size.
|
void |
setStatus(String status)
The value returned by DescribeVolumes.
|
void |
setVolumeId(String volumeId)
The volume ID.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Volume |
withAvailabilityZone(String availabilityZone)
The volume Availability Zone.
|
Volume |
withDevice(String device)
The device name.
|
Volume |
withEc2VolumeId(String ec2VolumeId)
The Amazon EC2 volume ID.
|
Volume |
withInstanceId(String instanceId)
The instance ID.
|
Volume |
withMountPoint(String mountPoint)
The volume mount point.
|
Volume |
withName(String name)
The volume name.
|
Volume |
withRaidArrayId(String raidArrayId)
The RAID array ID.
|
Volume |
withRegion(String region)
The AWS region.
|
Volume |
withSize(Integer size)
The volume size.
|
Volume |
withStatus(String status)
The value returned by DescribeVolumes.
|
Volume |
withVolumeId(String volumeId)
The volume ID.
|
public String getVolumeId()
public void setVolumeId(String volumeId)
volumeId
- The volume ID.public Volume withVolumeId(String volumeId)
Returns a reference to this object so that method calls can be chained together.
volumeId
- The volume ID.public String getEc2VolumeId()
public void setEc2VolumeId(String ec2VolumeId)
ec2VolumeId
- The Amazon EC2 volume ID.public Volume withEc2VolumeId(String ec2VolumeId)
Returns a reference to this object so that method calls can be chained together.
ec2VolumeId
- The Amazon EC2 volume ID.public String getName()
public void setName(String name)
name
- The volume name.public Volume withName(String name)
Returns a reference to this object so that method calls can be chained together.
name
- The volume name.public String getRaidArrayId()
public void setRaidArrayId(String raidArrayId)
raidArrayId
- The RAID array ID.public Volume withRaidArrayId(String raidArrayId)
Returns a reference to this object so that method calls can be chained together.
raidArrayId
- The RAID array ID.public String getInstanceId()
public void setInstanceId(String instanceId)
instanceId
- The instance ID.public Volume withInstanceId(String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId
- The instance ID.public String getStatus()
public void setStatus(String status)
status
- The value returned by DescribeVolumes.public Volume withStatus(String status)
Returns a reference to this object so that method calls can be chained together.
status
- The value returned by DescribeVolumes.public Integer getSize()
public void setSize(Integer size)
size
- The volume size.public Volume withSize(Integer size)
Returns a reference to this object so that method calls can be chained together.
size
- The volume size.public String getDevice()
public void setDevice(String device)
device
- The device name.public Volume withDevice(String device)
Returns a reference to this object so that method calls can be chained together.
device
- The device name.public String getMountPoint()
public void setMountPoint(String mountPoint)
mountPoint
- The volume mount point. For example "/dev/sdh".public Volume withMountPoint(String mountPoint)
Returns a reference to this object so that method calls can be chained together.
mountPoint
- The volume mount point. For example "/dev/sdh".public String getRegion()
public void setRegion(String region)
region
- The AWS region. For more information about AWS regions, see Regions
and Endpoints.public Volume withRegion(String region)
Returns a reference to this object so that method calls can be chained together.
region
- The AWS region. For more information about AWS regions, see Regions
and Endpoints.public String getAvailabilityZone()
public void setAvailabilityZone(String availabilityZone)
availabilityZone
- The volume Availability Zone. For more information, see Regions
and Endpoints.public Volume withAvailabilityZone(String availabilityZone)
Returns a reference to this object so that method calls can be chained together.
availabilityZone
- The volume Availability Zone. For more information, see Regions
and Endpoints.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.