/*
* Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.ec2.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
import com.amazonaws.Request;
import com.amazonaws.services.ec2.model.transform.DescribeVolumeStatusRequestMarshaller;
/**
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeVolumeStatusRequest extends AmazonWebServiceRequest implements Serializable, Cloneable,
DryRunSupportedRequest
* The filters.
*
*
*
*
*
*
*
*
*
*
*
*
*
* The maximum number of items to return for this request. To get the next page of items, make another request with
* the token returned in the output. This value can be between 5 and 1,000; if the value is larger than 1,000, only
* 1,000 results are returned. If this parameter is not used, then all items are returned. You cannot specify this
* parameter and the volume IDs parameter in the same request. For more information, see Pagination.
*
* The token returned from a previous paginated request. Pagination continues from the end of the items returned by
* the previous request.
*
* The IDs of the volumes.
*
* Default: Describes all your volumes.
*
* The filters.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
private com.amazonaws.internal.SdkInternalListaction.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 (for io-enabled
: passed
|
* failed
; for io-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 for volume-status.status
(
* io-enabled
| io-performance
).
* volume-status.details-status
- The status of volume-status.details-name
(for
* io-enabled
: passed
| failed
; for io-performance
:
* normal
| degraded
| severely-degraded
| stalled
).
* volume-status.status
- The status of the volume (ok
| impaired
|
* warning
| insufficient-data
).
*
*
*
* @return The 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 (for io-enabled
: passed
|
* failed
; for io-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 for volume-status.status
(
* io-enabled
| io-performance
).
* volume-status.details-status
- The status of volume-status.details-name
(for
* io-enabled
: passed
| failed
; for io-performance
:
* normal
| degraded
| severely-degraded
| stalled
).
* volume-status.status
- The status of the volume (ok
| impaired
|
* warning
| insufficient-data
).
*
* 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 (for io-enabled
: passed
|
* failed
; for io-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 for volume-status.status
(
* io-enabled
| io-performance
).
*
* volume-status.details-status
- The status of volume-status.details-name
(for
* io-enabled
: passed
| failed
; for io-performance
:
* normal
| degraded
| severely-degraded
| stalled
).
*
* volume-status.status
- The status of the volume (ok
| impaired
|
* warning
| insufficient-data
).
*
* The 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 (for io-enabled
: passed
|
* failed
; for io-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 for volume-status.status
(
* io-enabled
| io-performance
).
*
* volume-status.details-status
- The status of volume-status.details-name
(for
* io-enabled
: passed
| failed
; for io-performance
:
* normal
| degraded
| severely-degraded
| stalled
).
*
* volume-status.status
- The status of the volume (ok
| impaired
|
* warning
| insufficient-data
).
*
* 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 (for io-enabled
: passed
|
* failed
; for io-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 for volume-status.status
(
* io-enabled
| io-performance
).
*
* volume-status.details-status
- The status of volume-status.details-name
(for
* io-enabled
: passed
| failed
; for io-performance
:
* normal
| degraded
| severely-degraded
| stalled
).
*
* volume-status.status
- The status of the volume (ok
| impaired
|
* warning
| insufficient-data
).
*
* The 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 (for io-enabled
: passed
|
* failed
; for io-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 for volume-status.status
(
* io-enabled
| io-performance
).
*
* volume-status.details-status
- The status of volume-status.details-name
(for
* io-enabled
: passed
| failed
; for io-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 * {@link #setFilters(java.util.Collection)} or {@link #withFilters(java.util.Collection)} if you want to override * the existing values. *
* * @param filters * The 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 (for io-enabled
: passed
|
* failed
; for io-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 for volume-status.status
(
* io-enabled
| io-performance
).
*
* volume-status.details-status
- The status of volume-status.details-name
(for
* io-enabled
: passed
| failed
; for io-performance
:
* normal
| degraded
| severely-degraded
| stalled
).
*
* volume-status.status
- The status of the volume (ok
| impaired
|
* warning
| insufficient-data
).
*
* The 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 (for io-enabled
: passed
|
* failed
; for io-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 for volume-status.status
(
* io-enabled
| io-performance
).
*
* volume-status.details-status
- The status of volume-status.details-name
(for
* io-enabled
: passed
| failed
; for io-performance
:
* normal
| degraded
| severely-degraded
| stalled
).
*
* volume-status.status
- The status of the volume (ok
| impaired
|
* warning
| insufficient-data
).
*
* 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 (for io-enabled
: passed
|
* failed
; for io-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 for volume-status.status
(
* io-enabled
| io-performance
).
*
* volume-status.details-status
- The status of volume-status.details-name
(for
* io-enabled
: passed
| failed
; for io-performance
:
* normal
| degraded
| severely-degraded
| stalled
).
*
* volume-status.status
- The status of the volume (ok
| impaired
|
* warning
| insufficient-data
).
*
* The maximum number of items to return for this request. To get the next page of items, make another request with * the token returned in the output. This value can be between 5 and 1,000; if the value is larger than 1,000, only * 1,000 results are returned. If this parameter is not used, then all items are returned. You cannot specify this * parameter and the volume IDs parameter in the same request. For more information, see Pagination. *
* * @param maxResults * The maximum number of items to return for this request. To get the next page of items, make another * request with the token returned in the output. This value can be between 5 and 1,000; if the value is * larger than 1,000, only 1,000 results are returned. If this parameter is not used, then all items are * returned. You cannot specify this parameter and the volume IDs parameter in the same request. For more * information, see Pagination. */ public void setMaxResults(Integer maxResults) { this.maxResults = maxResults; } /** ** The maximum number of items to return for this request. To get the next page of items, make another request with * the token returned in the output. This value can be between 5 and 1,000; if the value is larger than 1,000, only * 1,000 results are returned. If this parameter is not used, then all items are returned. You cannot specify this * parameter and the volume IDs parameter in the same request. For more information, see Pagination. *
* * @return The maximum number of items to return for this request. To get the next page of items, make another * request with the token returned in the output. This value can be between 5 and 1,000; if the value is * larger than 1,000, only 1,000 results are returned. If this parameter is not used, then all items are * returned. You cannot specify this parameter and the volume IDs parameter in the same request. For more * information, see Pagination. */ public Integer getMaxResults() { return this.maxResults; } /** ** The maximum number of items to return for this request. To get the next page of items, make another request with * the token returned in the output. This value can be between 5 and 1,000; if the value is larger than 1,000, only * 1,000 results are returned. If this parameter is not used, then all items are returned. You cannot specify this * parameter and the volume IDs parameter in the same request. For more information, see Pagination. *
* * @param maxResults * The maximum number of items to return for this request. To get the next page of items, make another * request with the token returned in the output. This value can be between 5 and 1,000; if the value is * larger than 1,000, only 1,000 results are returned. If this parameter is not used, then all items are * returned. You cannot specify this parameter and the volume IDs parameter in the same request. For more * information, see Pagination. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeVolumeStatusRequest withMaxResults(Integer maxResults) { setMaxResults(maxResults); return this; } /** ** The token returned from a previous paginated request. Pagination continues from the end of the items returned by * the previous request. *
* * @param nextToken * The token returned from a previous paginated request. Pagination continues from the end of the items * returned by the previous request. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** ** The token returned from a previous paginated request. Pagination continues from the end of the items returned by * the previous request. *
* * @return The token returned from a previous paginated request. Pagination continues from the end of the items * returned by the previous request. */ public String getNextToken() { return this.nextToken; } /** ** The token returned from a previous paginated request. Pagination continues from the end of the items returned by * the previous request. *
* * @param nextToken * The token returned from a previous paginated request. Pagination continues from the end of the items * returned by the previous request. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeVolumeStatusRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** ** The IDs of the volumes. *
** Default: Describes all your volumes. *
* * @return The IDs of the volumes. *
* Default: Describes all your volumes.
*/
public java.util.List
* The IDs of the volumes.
*
* Default: Describes all your volumes.
*
* Default: Describes all your volumes.
*/
public void setVolumeIds(java.util.Collection
* The IDs of the volumes.
*
* Default: Describes all your volumes.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setVolumeIds(java.util.Collection)} or {@link #withVolumeIds(java.util.Collection)} if you want to
* override the existing values.
*
* Default: Describes all your volumes.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeVolumeStatusRequest withVolumeIds(String... volumeIds) {
if (this.volumeIds == null) {
setVolumeIds(new com.amazonaws.internal.SdkInternalList
* The IDs of the volumes.
*
* Default: Describes all your volumes.
*
* Default: Describes all your volumes.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeVolumeStatusRequest withVolumeIds(java.util.Collection