/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace SecretsManager { namespace Model { /** */ class ListSecretsRequest : public SecretsManagerRequest { public: AWS_SECRETSMANAGER_API ListSecretsRequest(); // 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 "ListSecrets"; } AWS_SECRETSMANAGER_API Aws::String SerializePayload() const override; AWS_SECRETSMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Specifies whether to include secrets scheduled for deletion. By default, * secrets scheduled for deletion aren't included.

*/ inline bool GetIncludePlannedDeletion() const{ return m_includePlannedDeletion; } /** *

Specifies whether to include secrets scheduled for deletion. By default, * secrets scheduled for deletion aren't included.

*/ inline bool IncludePlannedDeletionHasBeenSet() const { return m_includePlannedDeletionHasBeenSet; } /** *

Specifies whether to include secrets scheduled for deletion. By default, * secrets scheduled for deletion aren't included.

*/ inline void SetIncludePlannedDeletion(bool value) { m_includePlannedDeletionHasBeenSet = true; m_includePlannedDeletion = value; } /** *

Specifies whether to include secrets scheduled for deletion. By default, * secrets scheduled for deletion aren't included.

*/ inline ListSecretsRequest& WithIncludePlannedDeletion(bool value) { SetIncludePlannedDeletion(value); return *this;} /** *

The number of results to include in the response.

If there are more * results available, in the response, Secrets Manager includes * NextToken. To get the next results, call ListSecrets * again with the value from NextToken.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The number of results to include in the response.

If there are more * results available, in the response, Secrets Manager includes * NextToken. To get the next results, call ListSecrets * again with the value from NextToken.

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

The number of results to include in the response.

If there are more * results available, in the response, Secrets Manager includes * NextToken. To get the next results, call ListSecrets * again with the value from NextToken.

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

The number of results to include in the response.

If there are more * results available, in the response, Secrets Manager includes * NextToken. To get the next results, call ListSecrets * again with the value from NextToken.

*/ inline ListSecretsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

A token that indicates where the output should continue from, if a previous * call did not show all results. To get the next results, call * ListSecrets again with this value.

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

A token that indicates where the output should continue from, if a previous * call did not show all results. To get the next results, call * ListSecrets again with this value.

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

A token that indicates where the output should continue from, if a previous * call did not show all results. To get the next results, call * ListSecrets again with this value.

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

A token that indicates where the output should continue from, if a previous * call did not show all results. To get the next results, call * ListSecrets again with this value.

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

A token that indicates where the output should continue from, if a previous * call did not show all results. To get the next results, call * ListSecrets again with this value.

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

A token that indicates where the output should continue from, if a previous * call did not show all results. To get the next results, call * ListSecrets again with this value.

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

A token that indicates where the output should continue from, if a previous * call did not show all results. To get the next results, call * ListSecrets again with this value.

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

A token that indicates where the output should continue from, if a previous * call did not show all results. To get the next results, call * ListSecrets again with this value.

*/ inline ListSecretsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The filters to apply to the list of secrets.

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

The filters to apply to the list of secrets.

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

The filters to apply to the list of secrets.

*/ inline void SetFilters(const Aws::Vector& value) { m_filtersHasBeenSet = true; m_filters = value; } /** *

The filters to apply to the list of secrets.

*/ inline void SetFilters(Aws::Vector&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); } /** *

The filters to apply to the list of secrets.

*/ inline ListSecretsRequest& WithFilters(const Aws::Vector& value) { SetFilters(value); return *this;} /** *

The filters to apply to the list of secrets.

*/ inline ListSecretsRequest& WithFilters(Aws::Vector&& value) { SetFilters(std::move(value)); return *this;} /** *

The filters to apply to the list of secrets.

*/ inline ListSecretsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; } /** *

The filters to apply to the list of secrets.

*/ inline ListSecretsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; } /** *

Secrets are listed by CreatedDate.

*/ inline const SortOrderType& GetSortOrder() const{ return m_sortOrder; } /** *

Secrets are listed by CreatedDate.

*/ inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; } /** *

Secrets are listed by CreatedDate.

*/ inline void SetSortOrder(const SortOrderType& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; } /** *

Secrets are listed by CreatedDate.

*/ inline void SetSortOrder(SortOrderType&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); } /** *

Secrets are listed by CreatedDate.

*/ inline ListSecretsRequest& WithSortOrder(const SortOrderType& value) { SetSortOrder(value); return *this;} /** *

Secrets are listed by CreatedDate.

*/ inline ListSecretsRequest& WithSortOrder(SortOrderType&& value) { SetSortOrder(std::move(value)); return *this;} private: bool m_includePlannedDeletion; bool m_includePlannedDeletionHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; Aws::Vector m_filters; bool m_filtersHasBeenSet = false; SortOrderType m_sortOrder; bool m_sortOrderHasBeenSet = false; }; } // namespace Model } // namespace SecretsManager } // namespace Aws