Class DescribeVolumeStatusRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.ec2.model.DescribeVolumeStatusRequest
-
- All Implemented Interfaces:
ReadLimitInfo,DryRunSupportedRequest<DescribeVolumeStatusRequest>,Serializable,Cloneable
public class DescribeVolumeStatusRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<DescribeVolumeStatusRequest>
Contains the parameters for DescribeVolumeStatus.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description DescribeVolumeStatusRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeVolumeStatusRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)Request<DescribeVolumeStatusRequest>getDryRunRequest()This method is intended for internal use only.List<Filter>getFilters()One or more filters.IntegergetMaxResults()The maximum number of volume results returned byDescribeVolumeStatusin paginated output.StringgetNextToken()TheNextTokenvalue to include in a futureDescribeVolumeStatusrequest.List<String>getVolumeIds()One or more volume IDs.inthashCode()voidsetFilters(Collection<Filter> filters)One or more filters.voidsetMaxResults(Integer maxResults)The maximum number of volume results returned byDescribeVolumeStatusin paginated output.voidsetNextToken(String nextToken)TheNextTokenvalue to include in a futureDescribeVolumeStatusrequest.voidsetVolumeIds(Collection<String> volumeIds)One or more volume IDs.StringtoString()Returns a string representation of this object; useful for testing and debugging.DescribeVolumeStatusRequestwithFilters(Filter... filters)One or more filters.DescribeVolumeStatusRequestwithFilters(Collection<Filter> filters)One or more filters.DescribeVolumeStatusRequestwithMaxResults(Integer maxResults)The maximum number of volume results returned byDescribeVolumeStatusin paginated output.DescribeVolumeStatusRequestwithNextToken(String nextToken)TheNextTokenvalue to include in a futureDescribeVolumeStatusrequest.DescribeVolumeStatusRequestwithVolumeIds(String... volumeIds)One or more volume IDs.DescribeVolumeStatusRequestwithVolumeIds(Collection<String> volumeIds)One or more 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
-
getVolumeIds
public List<String> getVolumeIds()
One or more volume IDs.
Default: Describes all your volumes.
- Returns:
- One or more volume IDs.
Default: Describes all your volumes.
-
setVolumeIds
public void setVolumeIds(Collection<String> volumeIds)
One or more volume IDs.
Default: Describes all your volumes.
- Parameters:
volumeIds- One or more volume IDs.Default: Describes all your volumes.
-
withVolumeIds
public DescribeVolumeStatusRequest withVolumeIds(String... volumeIds)
One or more volume IDs.
Default: Describes all your volumes.
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- One or more volume IDs.Default: Describes all your volumes.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withVolumeIds
public DescribeVolumeStatusRequest withVolumeIds(Collection<String> volumeIds)
One or more volume IDs.
Default: Describes all your volumes.
- Parameters:
volumeIds- One or more volume IDs.Default: Describes all your volumes.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getFilters
public List<Filter> getFilters()
One or more filters.
-
action.code- The action code for the event (for example,enable-volume-io). -
action.description- A description of the action. -
action.event-id- The event ID associated with the action. -
availability-zone- The Availability Zone of the instance. -
event.description- A description of the event. -
event.event-id- The event ID. -
event.event-type- The event type (forio-enabled:passed|failed; forio-performance:io-performance:degraded|io-performance:severely-degraded|io-performance:stalled). -
event.not-after- The latest end time for the event. -
event.not-before- The earliest start time for the event. -
volume-status.details-name- The cause forvolume-status.status(io-enabled|io-performance). -
volume-status.details-status- The status ofvolume-status.details-name(forio-enabled:passed|failed; forio-performance:normal|degraded|severely-degraded|stalled). -
volume-status.status- The status of the volume (ok|impaired|warning|insufficient-data).
- Returns:
- One or more filters.
-
action.code- The action code for the event (for example,enable-volume-io). -
action.description- A description of the action. -
action.event-id- The event ID associated with the action. -
availability-zone- The Availability Zone of the instance. -
event.description- A description of the event. -
event.event-id- The event ID. -
event.event-type- The event type (forio-enabled:passed|failed; forio-performance:io-performance:degraded|io-performance:severely-degraded|io-performance:stalled). -
event.not-after- The latest end time for the event. -
event.not-before- The earliest start time for the event. -
volume-status.details-name- The cause forvolume-status.status(io-enabled|io-performance). -
volume-status.details-status- The status ofvolume-status.details-name(forio-enabled:passed|failed; forio-performance:normal|degraded|severely-degraded|stalled). -
volume-status.status- The status of the volume (ok|impaired|warning|insufficient-data).
-
-
-
setFilters
public void setFilters(Collection<Filter> filters)
One or more filters.
-
action.code- The action code for the event (for example,enable-volume-io). -
action.description- A description of the action. -
action.event-id- The event ID associated with the action. -
availability-zone- The Availability Zone of the instance. -
event.description- A description of the event. -
event.event-id- The event ID. -
event.event-type- The event type (forio-enabled:passed|failed; forio-performance:io-performance:degraded|io-performance:severely-degraded|io-performance:stalled). -
event.not-after- The latest end time for the event. -
event.not-before- The earliest start time for the event. -
volume-status.details-name- The cause forvolume-status.status(io-enabled|io-performance). -
volume-status.details-status- The status ofvolume-status.details-name(forio-enabled:passed|failed; forio-performance:normal|degraded|severely-degraded|stalled). -
volume-status.status- The status of the volume (ok|impaired|warning|insufficient-data).
- Parameters:
filters- One or more filters.-
action.code- The action code for the event (for example,enable-volume-io). -
action.description- A description of the action. -
action.event-id- The event ID associated with the action. -
availability-zone- The Availability Zone of the instance. -
event.description- A description of the event. -
event.event-id- The event ID. -
event.event-type- The event type (forio-enabled:passed|failed; forio-performance:io-performance:degraded|io-performance:severely-degraded|io-performance:stalled). -
event.not-after- The latest end time for the event. -
event.not-before- The earliest start time for the event. -
volume-status.details-name- The cause forvolume-status.status(io-enabled|io-performance). -
volume-status.details-status- The status ofvolume-status.details-name(forio-enabled:passed|failed; forio-performance:normal|degraded|severely-degraded|stalled). -
volume-status.status- The status of the volume (ok|impaired|warning|insufficient-data).
-
-
-
withFilters
public DescribeVolumeStatusRequest withFilters(Filter... filters)
One or more filters.
-
action.code- The action code for the event (for example,enable-volume-io). -
action.description- A description of the action. -
action.event-id- The event ID associated with the action. -
availability-zone- The Availability Zone of the instance. -
event.description- A description of the event. -
event.event-id- The event ID. -
event.event-type- The event type (forio-enabled:passed|failed; forio-performance:io-performance:degraded|io-performance:severely-degraded|io-performance:stalled). -
event.not-after- The latest end time for the event. -
event.not-before- The earliest start time for the event. -
volume-status.details-name- The cause forvolume-status.status(io-enabled|io-performance). -
volume-status.details-status- The status ofvolume-status.details-name(forio-enabled:passed|failed; forio-performance:normal|degraded|severely-degraded|stalled). -
volume-status.status- The status of the volume (ok|impaired|warning|insufficient-data).
NOTE: This method appends the values to the existing list (if any). Use
setFilters(java.util.Collection)orwithFilters(java.util.Collection)if you want to override the existing values.- Parameters:
filters- One or more filters.-
action.code- The action code for the event (for example,enable-volume-io). -
action.description- A description of the action. -
action.event-id- The event ID associated with the action. -
availability-zone- The Availability Zone of the instance. -
event.description- A description of the event. -
event.event-id- The event ID. -
event.event-type- The event type (forio-enabled:passed|failed; forio-performance:io-performance:degraded|io-performance:severely-degraded|io-performance:stalled). -
event.not-after- The latest end time for the event. -
event.not-before- The earliest start time for the event. -
volume-status.details-name- The cause forvolume-status.status(io-enabled|io-performance). -
volume-status.details-status- The status ofvolume-status.details-name(forio-enabled:passed|failed; forio-performance:normal|degraded|severely-degraded|stalled). -
volume-status.status- The status of the volume (ok|impaired|warning|insufficient-data).
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
withFilters
public DescribeVolumeStatusRequest withFilters(Collection<Filter> filters)
One or more filters.
-
action.code- The action code for the event (for example,enable-volume-io). -
action.description- A description of the action. -
action.event-id- The event ID associated with the action. -
availability-zone- The Availability Zone of the instance. -
event.description- A description of the event. -
event.event-id- The event ID. -
event.event-type- The event type (forio-enabled:passed|failed; forio-performance:io-performance:degraded|io-performance:severely-degraded|io-performance:stalled). -
event.not-after- The latest end time for the event. -
event.not-before- The earliest start time for the event. -
volume-status.details-name- The cause forvolume-status.status(io-enabled|io-performance). -
volume-status.details-status- The status ofvolume-status.details-name(forio-enabled:passed|failed; forio-performance:normal|degraded|severely-degraded|stalled). -
volume-status.status- The status of the volume (ok|impaired|warning|insufficient-data).
- Parameters:
filters- One or more filters.-
action.code- The action code for the event (for example,enable-volume-io). -
action.description- A description of the action. -
action.event-id- The event ID associated with the action. -
availability-zone- The Availability Zone of the instance. -
event.description- A description of the event. -
event.event-id- The event ID. -
event.event-type- The event type (forio-enabled:passed|failed; forio-performance:io-performance:degraded|io-performance:severely-degraded|io-performance:stalled). -
event.not-after- The latest end time for the event. -
event.not-before- The earliest start time for the event. -
volume-status.details-name- The cause forvolume-status.status(io-enabled|io-performance). -
volume-status.details-status- The status ofvolume-status.details-name(forio-enabled:passed|failed; forio-performance:normal|degraded|severely-degraded|stalled). -
volume-status.status- The status of the volume (ok|impaired|warning|insufficient-data).
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
setNextToken
public void setNextToken(String nextToken)
The
NextTokenvalue to include in a futureDescribeVolumeStatusrequest. When the results of the request exceedMaxResults, this value can be used to retrieve the next page of results. This value isnullwhen there are no more results to return.- Parameters:
nextToken- TheNextTokenvalue to include in a futureDescribeVolumeStatusrequest. When the results of the request exceedMaxResults, this value can be used to retrieve the next page of results. This value isnullwhen there are no more results to return.
-
getNextToken
public String getNextToken()
The
NextTokenvalue to include in a futureDescribeVolumeStatusrequest. When the results of the request exceedMaxResults, this value can be used to retrieve the next page of results. This value isnullwhen there are no more results to return.- Returns:
- The
NextTokenvalue to include in a futureDescribeVolumeStatusrequest. When the results of the request exceedMaxResults, this value can be used to retrieve the next page of results. This value isnullwhen there are no more results to return.
-
withNextToken
public DescribeVolumeStatusRequest withNextToken(String nextToken)
The
NextTokenvalue to include in a futureDescribeVolumeStatusrequest. When the results of the request exceedMaxResults, this value can be used to retrieve the next page of results. This value isnullwhen there are no more results to return.- Parameters:
nextToken- TheNextTokenvalue to include in a futureDescribeVolumeStatusrequest. When the results of the request exceedMaxResults, this value can be used to retrieve the next page of results. This value isnullwhen there are no more results to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMaxResults
public void setMaxResults(Integer maxResults)
The maximum number of volume results returned by
DescribeVolumeStatusin paginated output. When this parameter is used, the request only returnsMaxResultsresults in a single page along with aNextTokenresponse element. The remaining results of the initial request can be seen by sending another request with the returnedNextTokenvalue. This value can be between 5 and 1000; ifMaxResultsis given a value larger than 1000, only 1000 results are returned. If this parameter is not used, thenDescribeVolumeStatusreturns all results. You cannot specify this parameter and the volume IDs parameter in the same request.- Parameters:
maxResults- The maximum number of volume results returned byDescribeVolumeStatusin paginated output. When this parameter is used, the request only returnsMaxResultsresults in a single page along with aNextTokenresponse element. The remaining results of the initial request can be seen by sending another request with the returnedNextTokenvalue. This value can be between 5 and 1000; ifMaxResultsis given a value larger than 1000, only 1000 results are returned. If this parameter is not used, thenDescribeVolumeStatusreturns all results. You cannot specify this parameter and the volume IDs parameter in the same request.
-
getMaxResults
public Integer getMaxResults()
The maximum number of volume results returned by
DescribeVolumeStatusin paginated output. When this parameter is used, the request only returnsMaxResultsresults in a single page along with aNextTokenresponse element. The remaining results of the initial request can be seen by sending another request with the returnedNextTokenvalue. This value can be between 5 and 1000; ifMaxResultsis given a value larger than 1000, only 1000 results are returned. If this parameter is not used, thenDescribeVolumeStatusreturns all results. You cannot specify this parameter and the volume IDs parameter in the same request.- Returns:
- The maximum number of volume results returned by
DescribeVolumeStatusin paginated output. When this parameter is used, the request only returnsMaxResultsresults in a single page along with aNextTokenresponse element. The remaining results of the initial request can be seen by sending another request with the returnedNextTokenvalue. This value can be between 5 and 1000; ifMaxResultsis given a value larger than 1000, only 1000 results are returned. If this parameter is not used, thenDescribeVolumeStatusreturns all results. You cannot specify this parameter and the volume IDs parameter in the same request.
-
withMaxResults
public DescribeVolumeStatusRequest withMaxResults(Integer maxResults)
The maximum number of volume results returned by
DescribeVolumeStatusin paginated output. When this parameter is used, the request only returnsMaxResultsresults in a single page along with aNextTokenresponse element. The remaining results of the initial request can be seen by sending another request with the returnedNextTokenvalue. This value can be between 5 and 1000; ifMaxResultsis given a value larger than 1000, only 1000 results are returned. If this parameter is not used, thenDescribeVolumeStatusreturns all results. You cannot specify this parameter and the volume IDs parameter in the same request.- Parameters:
maxResults- The maximum number of volume results returned byDescribeVolumeStatusin paginated output. When this parameter is used, the request only returnsMaxResultsresults in a single page along with aNextTokenresponse element. The remaining results of the initial request can be seen by sending another request with the returnedNextTokenvalue. This value can be between 5 and 1000; ifMaxResultsis given a value larger than 1000, only 1000 results are returned. If this parameter is not used, thenDescribeVolumeStatusreturns all results. You cannot specify this parameter and the volume IDs parameter in the same request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDryRunRequest
public Request<DescribeVolumeStatusRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.- Specified by:
getDryRunRequestin interfaceDryRunSupportedRequest<DescribeVolumeStatusRequest>
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DescribeVolumeStatusRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-