public class DescribeVolumesRequest extends AmazonWebServiceRequest implements Serializable
DescribeVolumes operation
.
Describes an instance's Amazon EBS volumes.
NOTE:You must specify at least one of the parameters.
Required Permissions : To use this action, an IAM user must have a Show, Deploy, or Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions .
Constructor and Description |
---|
DescribeVolumesRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getInstanceId()
The instance ID.
|
String |
getRaidArrayId()
The RAID array ID.
|
String |
getStackId()
A stack ID.
|
List<String> |
getVolumeIds()
Am array of volume IDs.
|
int |
hashCode() |
void |
setInstanceId(String instanceId)
The instance ID.
|
void |
setRaidArrayId(String raidArrayId)
The RAID array ID.
|
void |
setStackId(String stackId)
A stack ID.
|
void |
setVolumeIds(Collection<String> volumeIds)
Am array of volume IDs.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeVolumesRequest |
withInstanceId(String instanceId)
The instance ID.
|
DescribeVolumesRequest |
withRaidArrayId(String raidArrayId)
The RAID array ID.
|
DescribeVolumesRequest |
withStackId(String stackId)
A stack ID.
|
DescribeVolumesRequest |
withVolumeIds(Collection<String> volumeIds)
Am array of volume IDs.
|
DescribeVolumesRequest |
withVolumeIds(String... volumeIds)
Am array of volume IDs.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public String getInstanceId()
DescribeVolumes
returns descriptions of the volumes
associated with the specified instance.DescribeVolumes
returns descriptions of the volumes
associated with the specified instance.public void setInstanceId(String instanceId)
DescribeVolumes
returns descriptions of the volumes
associated with the specified instance.instanceId
- The instance ID. If you use this parameter,
DescribeVolumes
returns descriptions of the volumes
associated with the specified instance.public DescribeVolumesRequest withInstanceId(String instanceId)
DescribeVolumes
returns descriptions of the volumes
associated with the specified instance.
Returns a reference to this object so that method calls can be chained together.
instanceId
- The instance ID. If you use this parameter,
DescribeVolumes
returns descriptions of the volumes
associated with the specified instance.public String getStackId()
public void setStackId(String stackId)
stackId
- A stack ID. The action describes the stack's registered Amazon EBS
volumes.public DescribeVolumesRequest withStackId(String stackId)
Returns a reference to this object so that method calls can be chained together.
stackId
- A stack ID. The action describes the stack's registered Amazon EBS
volumes.public String getRaidArrayId()
DescribeVolumes
returns descriptions of the volumes
associated with the specified RAID array.DescribeVolumes
returns descriptions of the volumes
associated with the specified RAID array.public void setRaidArrayId(String raidArrayId)
DescribeVolumes
returns descriptions of the volumes
associated with the specified RAID array.raidArrayId
- The RAID array ID. If you use this parameter,
DescribeVolumes
returns descriptions of the volumes
associated with the specified RAID array.public DescribeVolumesRequest withRaidArrayId(String raidArrayId)
DescribeVolumes
returns descriptions of the volumes
associated with the specified RAID array.
Returns a reference to this object so that method calls can be chained together.
raidArrayId
- The RAID array ID. If you use this parameter,
DescribeVolumes
returns descriptions of the volumes
associated with the specified RAID array.public List<String> getVolumeIds()
DescribeVolumes
returns descriptions of the specified
volumes. Otherwise, it returns a description of every volume.DescribeVolumes
returns descriptions of the specified
volumes. Otherwise, it returns a description of every volume.public void setVolumeIds(Collection<String> volumeIds)
DescribeVolumes
returns descriptions of the specified
volumes. Otherwise, it returns a description of every volume.volumeIds
- Am array of volume IDs. If you use this parameter,
DescribeVolumes
returns descriptions of the specified
volumes. Otherwise, it returns a description of every volume.public DescribeVolumesRequest withVolumeIds(String... volumeIds)
DescribeVolumes
returns descriptions of the specified
volumes. Otherwise, it returns a description of every volume.
Returns a reference to this object so that method calls can be chained together.
volumeIds
- Am array of volume IDs. If you use this parameter,
DescribeVolumes
returns descriptions of the specified
volumes. Otherwise, it returns a description of every volume.public DescribeVolumesRequest withVolumeIds(Collection<String> volumeIds)
DescribeVolumes
returns descriptions of the specified
volumes. Otherwise, it returns a description of every volume.
Returns a reference to this object so that method calls can be chained together.
volumeIds
- Am array of volume IDs. If you use this parameter,
DescribeVolumes
returns descriptions of the specified
volumes. Otherwise, it returns a description of every volume.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.