Class DescribeVolumesRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.opsworks.model.DescribeVolumesRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class DescribeVolumesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description DescribeVolumesRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeVolumesRequest
clone()
Creates a shallow clone of this request.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(String... volumeIds)
Am array of volume IDs.DescribeVolumesRequest
withVolumeIds(Collection<String> volumeIds)
Am array of volume IDs.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setInstanceId
public void setInstanceId(String instanceId)
The instance ID. If you use this parameter,
DescribeVolumes
returns descriptions of the volumes associated with the specified instance.- Parameters:
instanceId
- The instance ID. If you use this parameter,DescribeVolumes
returns descriptions of the volumes associated with the specified instance.
-
getInstanceId
public String getInstanceId()
The instance ID. If you use this parameter,
DescribeVolumes
returns descriptions of the volumes associated with the specified instance.- Returns:
- The instance ID. If you use this parameter,
DescribeVolumes
returns descriptions of the volumes associated with the specified instance.
-
withInstanceId
public DescribeVolumesRequest withInstanceId(String instanceId)
The instance ID. If you use this parameter,
DescribeVolumes
returns descriptions of the volumes associated with the specified instance.- Parameters:
instanceId
- The instance ID. If you use this parameter,DescribeVolumes
returns descriptions of the volumes associated with the specified instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStackId
public void setStackId(String stackId)
A stack ID. The action describes the stack's registered Amazon EBS volumes.
- Parameters:
stackId
- A stack ID. The action describes the stack's registered Amazon EBS volumes.
-
getStackId
public String getStackId()
A stack ID. The action describes the stack's registered Amazon EBS volumes.
- Returns:
- A stack ID. The action describes the stack's registered Amazon EBS volumes.
-
withStackId
public DescribeVolumesRequest withStackId(String stackId)
A stack ID. The action describes the stack's registered Amazon EBS volumes.
- Parameters:
stackId
- A stack ID. The action describes the stack's registered Amazon EBS volumes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRaidArrayId
public void setRaidArrayId(String raidArrayId)
The RAID array ID. If you use this parameter,
DescribeVolumes
returns descriptions of the volumes associated with the specified RAID array.- Parameters:
raidArrayId
- The RAID array ID. If you use this parameter,DescribeVolumes
returns descriptions of the volumes associated with the specified RAID array.
-
getRaidArrayId
public String getRaidArrayId()
The RAID array ID. If you use this parameter,
DescribeVolumes
returns descriptions of the volumes associated with the specified RAID array.- Returns:
- The RAID array ID. If you use this parameter,
DescribeVolumes
returns descriptions of the volumes associated with the specified RAID array.
-
withRaidArrayId
public DescribeVolumesRequest withRaidArrayId(String raidArrayId)
The RAID array ID. If you use this parameter,
DescribeVolumes
returns descriptions of the volumes associated with the specified RAID array.- Parameters:
raidArrayId
- The RAID array ID. If you use this parameter,DescribeVolumes
returns descriptions of the volumes associated with the specified RAID array.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getVolumeIds
public List<String> getVolumeIds()
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.- Returns:
- 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.
-
setVolumeIds
public void setVolumeIds(Collection<String> 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.- Parameters:
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.
-
withVolumeIds
public DescribeVolumesRequest withVolumeIds(String... 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.NOTE: This method appends the values to the existing list (if any). Use
setVolumeIds(java.util.Collection)
orwithVolumeIds(java.util.Collection)
if you want to override the existing values.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withVolumeIds
public DescribeVolumesRequest withVolumeIds(Collection<String> 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.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DescribeVolumesRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-