/* * 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.cloudhsmv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DescribeBackupsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The NextToken
value that you received in the previous response. Use this value to get more backups.
*
* The maximum number of backups to return in the response. When there are more backups than the number you specify,
* the response contains a NextToken
value.
*
* One or more filters to limit the items returned in the response. *
*
* Use the backupIds
filter to return only the specified backups. Specify backups by their backup
* identifier (ID).
*
* Use the sourceBackupIds
filter to return only the backups created from a source backup. The
* sourceBackupID
of a source backup is returned by the CopyBackupToRegion operation.
*
* Use the clusterIds
filter to return only the backups for the specified clusters. Specify clusters by
* their cluster identifier (ID).
*
* Use the states
filter to return only backups that match the specified state.
*
* Use the neverExpires
filter to return backups filtered by the value in the neverExpires
* parameter. True
returns all backups exempt from the backup retention policy. False
* returns all backups with a backup retention policy defined at the cluster.
*
* Designates whether or not to sort the return backups by ascending chronological order of generation. *
*/ private Boolean sortAscending; /** *
* The NextToken
value that you received in the previous response. Use this value to get more backups.
*
NextToken
value that you received in the previous response. Use this value to get more
* backups.
*/
public void setNextToken(String nextToken) {
this.nextToken = nextToken;
}
/**
*
* The NextToken
value that you received in the previous response. Use this value to get more backups.
*
NextToken
value that you received in the previous response. Use this value to get more
* backups.
*/
public String getNextToken() {
return this.nextToken;
}
/**
*
* The NextToken
value that you received in the previous response. Use this value to get more backups.
*
NextToken
value that you received in the previous response. Use this value to get more
* backups.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeBackupsRequest withNextToken(String nextToken) {
setNextToken(nextToken);
return this;
}
/**
*
* The maximum number of backups to return in the response. When there are more backups than the number you specify,
* the response contains a NextToken
value.
*
NextToken
value.
*/
public void setMaxResults(Integer maxResults) {
this.maxResults = maxResults;
}
/**
*
* The maximum number of backups to return in the response. When there are more backups than the number you specify,
* the response contains a NextToken
value.
*
NextToken
value.
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
*
* The maximum number of backups to return in the response. When there are more backups than the number you specify,
* the response contains a NextToken
value.
*
NextToken
value.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeBackupsRequest withMaxResults(Integer maxResults) {
setMaxResults(maxResults);
return this;
}
/**
* * One or more filters to limit the items returned in the response. *
*
* Use the backupIds
filter to return only the specified backups. Specify backups by their backup
* identifier (ID).
*
* Use the sourceBackupIds
filter to return only the backups created from a source backup. The
* sourceBackupID
of a source backup is returned by the CopyBackupToRegion operation.
*
* Use the clusterIds
filter to return only the backups for the specified clusters. Specify clusters by
* their cluster identifier (ID).
*
* Use the states
filter to return only backups that match the specified state.
*
* Use the neverExpires
filter to return backups filtered by the value in the neverExpires
* parameter. True
returns all backups exempt from the backup retention policy. False
* returns all backups with a backup retention policy defined at the cluster.
*
* Use the backupIds
filter to return only the specified backups. Specify backups by their
* backup identifier (ID).
*
* Use the sourceBackupIds
filter to return only the backups created from a source backup. The
* sourceBackupID
of a source backup is returned by the CopyBackupToRegion operation.
*
* Use the clusterIds
filter to return only the backups for the specified clusters. Specify
* clusters by their cluster identifier (ID).
*
* Use the states
filter to return only backups that match the specified state.
*
* Use the
* One or more filters to limit the items returned in the response.
*
* Use the
* Use the
* Use the
* Use the
* Use the neverExpires
filter to return backups filtered by the value in the
* neverExpires
parameter. True
returns all backups exempt from the backup
* retention policy. False
returns all backups with a backup retention policy defined at the
* cluster.
*/
public java.util.MapbackupIds
filter to return only the specified backups. Specify backups by their backup
* identifier (ID).
* sourceBackupIds
filter to return only the backups created from a source backup. The
* sourceBackupID
of a source backup is returned by the CopyBackupToRegion operation.
* clusterIds
filter to return only the backups for the specified clusters. Specify clusters by
* their cluster identifier (ID).
* states
filter to return only backups that match the specified state.
* neverExpires
filter to return backups filtered by the value in the neverExpires
* parameter. True
returns all backups exempt from the backup retention policy. False
* returns all backups with a backup retention policy defined at the cluster.
*
* Use the backupIds
filter to return only the specified backups. Specify backups by their
* backup identifier (ID).
*
* Use the sourceBackupIds
filter to return only the backups created from a source backup. The
* sourceBackupID
of a source backup is returned by the CopyBackupToRegion operation.
*
* Use the clusterIds
filter to return only the backups for the specified clusters. Specify
* clusters by their cluster identifier (ID).
*
* Use the states
filter to return only backups that match the specified state.
*
* Use the
* One or more filters to limit the items returned in the response.
*
* Use the
* Use the
* Use the
* Use the
* Use the neverExpires
filter to return backups filtered by the value in the
* neverExpires
parameter. True
returns all backups exempt from the backup
* retention policy. False
returns all backups with a backup retention policy defined at the
* cluster.
*/
public void setFilters(java.util.MapbackupIds
filter to return only the specified backups. Specify backups by their backup
* identifier (ID).
* sourceBackupIds
filter to return only the backups created from a source backup. The
* sourceBackupID
of a source backup is returned by the CopyBackupToRegion operation.
* clusterIds
filter to return only the backups for the specified clusters. Specify clusters by
* their cluster identifier (ID).
* states
filter to return only backups that match the specified state.
* neverExpires
filter to return backups filtered by the value in the neverExpires
* parameter. True
returns all backups exempt from the backup retention policy. False
* returns all backups with a backup retention policy defined at the cluster.
*
* Use the backupIds
filter to return only the specified backups. Specify backups by their
* backup identifier (ID).
*
* Use the sourceBackupIds
filter to return only the backups created from a source backup. The
* sourceBackupID
of a source backup is returned by the CopyBackupToRegion operation.
*
* Use the clusterIds
filter to return only the backups for the specified clusters. Specify
* clusters by their cluster identifier (ID).
*
* Use the states
filter to return only backups that match the specified state.
*
* Use the
* Designates whether or not to sort the return backups by ascending chronological order of generation.
*
* Designates whether or not to sort the return backups by ascending chronological order of generation.
*
* Designates whether or not to sort the return backups by ascending chronological order of generation.
*
* Designates whether or not to sort the return backups by ascending chronological order of generation.
* neverExpires
filter to return backups filtered by the value in the
* neverExpires
parameter. True
returns all backups exempt from the backup
* retention policy. False
returns all backups with a backup retention policy defined at the
* cluster.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeBackupsRequest withFilters(java.util.Map