/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace CloudHSMV2 { namespace Model { /** */ class DescribeBackupsRequest : public CloudHSMV2Request { public: AWS_CLOUDHSMV2_API DescribeBackupsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "DescribeBackups"; } AWS_CLOUDHSMV2_API Aws::String SerializePayload() const override; AWS_CLOUDHSMV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The NextToken value that you received in the previous response. * Use this value to get more backups.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The NextToken value that you received in the previous response. * Use this value to get more backups.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

The NextToken value that you received in the previous response. * Use this value to get more backups.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

The NextToken value that you received in the previous response. * Use this value to get more backups.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

The NextToken value that you received in the previous response. * Use this value to get more backups.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

The NextToken value that you received in the previous response. * Use this value to get more backups.

*/ inline DescribeBackupsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The NextToken value that you received in the previous response. * Use this value to get more backups.

*/ inline DescribeBackupsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The NextToken value that you received in the previous response. * Use this value to get more backups.

*/ inline DescribeBackupsRequest& WithNextToken(const char* value) { SetNextToken(value); 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.

*/ inline int GetMaxResults() const{ return m_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.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

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.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

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.

*/ inline DescribeBackupsRequest& WithMaxResults(int value) { SetMaxResults(value); 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.

*/ inline const Aws::Map>& GetFilters() const{ return m_filters; } /** *

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.

*/ inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; } /** *

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.

*/ inline void SetFilters(const Aws::Map>& value) { m_filtersHasBeenSet = true; m_filters = 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.

*/ inline void SetFilters(Aws::Map>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(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.

*/ inline DescribeBackupsRequest& WithFilters(const Aws::Map>& value) { SetFilters(value); 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.

*/ inline DescribeBackupsRequest& WithFilters(Aws::Map>&& value) { SetFilters(std::move(value)); 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.

*/ inline DescribeBackupsRequest& AddFilters(const Aws::String& key, const Aws::Vector& value) { m_filtersHasBeenSet = true; m_filters.emplace(key, value); 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.

*/ inline DescribeBackupsRequest& AddFilters(Aws::String&& key, const Aws::Vector& value) { m_filtersHasBeenSet = true; m_filters.emplace(std::move(key), value); 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.

*/ inline DescribeBackupsRequest& AddFilters(const Aws::String& key, Aws::Vector&& value) { m_filtersHasBeenSet = true; m_filters.emplace(key, std::move(value)); 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.

*/ inline DescribeBackupsRequest& AddFilters(Aws::String&& key, Aws::Vector&& value) { m_filtersHasBeenSet = true; m_filters.emplace(std::move(key), std::move(value)); 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.

*/ inline DescribeBackupsRequest& AddFilters(const char* key, Aws::Vector&& value) { m_filtersHasBeenSet = true; m_filters.emplace(key, std::move(value)); 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.

*/ inline DescribeBackupsRequest& AddFilters(const char* key, const Aws::Vector& value) { m_filtersHasBeenSet = true; m_filters.emplace(key, value); return *this; } /** *

Designates whether or not to sort the return backups by ascending * chronological order of generation.

*/ inline bool GetSortAscending() const{ return m_sortAscending; } /** *

Designates whether or not to sort the return backups by ascending * chronological order of generation.

*/ inline bool SortAscendingHasBeenSet() const { return m_sortAscendingHasBeenSet; } /** *

Designates whether or not to sort the return backups by ascending * chronological order of generation.

*/ inline void SetSortAscending(bool value) { m_sortAscendingHasBeenSet = true; m_sortAscending = value; } /** *

Designates whether or not to sort the return backups by ascending * chronological order of generation.

*/ inline DescribeBackupsRequest& WithSortAscending(bool value) { SetSortAscending(value); return *this;} private: Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::Map> m_filters; bool m_filtersHasBeenSet = false; bool m_sortAscending; bool m_sortAscendingHasBeenSet = false; }; } // namespace Model } // namespace CloudHSMV2 } // namespace Aws