@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Volume extends Object implements Serializable, Cloneable, StructuredPojo
Describes an instance's Amazon EBS volume.
Constructor and Description |
---|
Volume() |
Modifier and Type | Method and Description |
---|---|
Volume |
clone() |
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.
|
Integer |
getIops()
For PIOPS volumes, the IOPS per disk.
|
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.
|
String |
getVolumeType()
The volume type, standard or PIOPS.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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 |
setIops(Integer iops)
For PIOPS volumes, the IOPS per disk.
|
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.
|
void |
setVolumeType(String volumeType)
The volume type, standard or PIOPS.
|
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 |
withIops(Integer iops)
For PIOPS volumes, the IOPS per disk.
|
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.
|
Volume |
withVolumeType(String volumeType)
The volume type, standard or PIOPS.
|
public void setVolumeId(String volumeId)
The volume ID.
volumeId
- The volume ID.public String getVolumeId()
The volume ID.
public Volume withVolumeId(String volumeId)
The volume ID.
volumeId
- The volume ID.public void setEc2VolumeId(String ec2VolumeId)
The Amazon EC2 volume ID.
ec2VolumeId
- The Amazon EC2 volume ID.public String getEc2VolumeId()
The Amazon EC2 volume ID.
public Volume withEc2VolumeId(String ec2VolumeId)
The Amazon EC2 volume ID.
ec2VolumeId
- The Amazon EC2 volume ID.public void setName(String name)
The volume name.
name
- The volume name.public String getName()
The volume name.
public Volume withName(String name)
The volume name.
name
- The volume name.public void setRaidArrayId(String raidArrayId)
The RAID array ID.
raidArrayId
- The RAID array ID.public String getRaidArrayId()
The RAID array ID.
public Volume withRaidArrayId(String raidArrayId)
The RAID array ID.
raidArrayId
- The RAID array ID.public void setInstanceId(String instanceId)
The instance ID.
instanceId
- The instance ID.public String getInstanceId()
The instance ID.
public Volume withInstanceId(String instanceId)
The instance ID.
instanceId
- The instance ID.public void setStatus(String status)
The value returned by DescribeVolumes.
status
- The value returned by DescribeVolumes.public String getStatus()
The value returned by DescribeVolumes.
public Volume withStatus(String status)
The value returned by DescribeVolumes.
status
- The value returned by DescribeVolumes.public void setSize(Integer size)
The volume size.
size
- The volume size.public Integer getSize()
The volume size.
public Volume withSize(Integer size)
The volume size.
size
- The volume size.public void setDevice(String device)
The device name.
device
- The device name.public String getDevice()
The device name.
public Volume withDevice(String device)
The device name.
device
- The device name.public void setMountPoint(String mountPoint)
The volume mount point. For example, "/mnt/disk1".
mountPoint
- The volume mount point. For example, "/mnt/disk1".public String getMountPoint()
The volume mount point. For example, "/mnt/disk1".
public Volume withMountPoint(String mountPoint)
The volume mount point. For example, "/mnt/disk1".
mountPoint
- The volume mount point. For example, "/mnt/disk1".public void setRegion(String region)
The AWS region. For more information about AWS regions, see Regions and Endpoints.
region
- The AWS region. For more information about AWS regions, see Regions and Endpoints.public String getRegion()
The AWS region. For more information about AWS regions, see Regions and Endpoints.
public Volume withRegion(String region)
The AWS region. For more information about AWS regions, see Regions and Endpoints.
region
- The AWS region. For more information about AWS regions, see Regions and Endpoints.public void setAvailabilityZone(String availabilityZone)
The volume Availability Zone. For more information, see Regions and Endpoints.
availabilityZone
- The volume Availability Zone. For more information, see Regions and Endpoints.public String getAvailabilityZone()
The volume Availability Zone. For more information, see Regions and Endpoints.
public Volume withAvailabilityZone(String availabilityZone)
The volume Availability Zone. For more information, see Regions and Endpoints.
availabilityZone
- The volume Availability Zone. For more information, see Regions and Endpoints.public void setVolumeType(String volumeType)
The volume type, standard or PIOPS.
volumeType
- The volume type, standard or PIOPS.public String getVolumeType()
The volume type, standard or PIOPS.
public Volume withVolumeType(String volumeType)
The volume type, standard or PIOPS.
volumeType
- The volume type, standard or PIOPS.public void setIops(Integer iops)
For PIOPS volumes, the IOPS per disk.
iops
- For PIOPS volumes, the IOPS per disk.public Integer getIops()
For PIOPS volumes, the IOPS per disk.
public Volume withIops(Integer iops)
For PIOPS volumes, the IOPS per disk.
iops
- For PIOPS volumes, the IOPS per disk.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.