/** * 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 #include #include namespace Aws { namespace ACM { namespace Model { /** */ class ListCertificatesRequest : public ACMRequest { public: AWS_ACM_API ListCertificatesRequest(); // 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 "ListCertificates"; } AWS_ACM_API Aws::String SerializePayload() const override; AWS_ACM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Filter the certificate list by status value.

*/ inline const Aws::Vector& GetCertificateStatuses() const{ return m_certificateStatuses; } /** *

Filter the certificate list by status value.

*/ inline bool CertificateStatusesHasBeenSet() const { return m_certificateStatusesHasBeenSet; } /** *

Filter the certificate list by status value.

*/ inline void SetCertificateStatuses(const Aws::Vector& value) { m_certificateStatusesHasBeenSet = true; m_certificateStatuses = value; } /** *

Filter the certificate list by status value.

*/ inline void SetCertificateStatuses(Aws::Vector&& value) { m_certificateStatusesHasBeenSet = true; m_certificateStatuses = std::move(value); } /** *

Filter the certificate list by status value.

*/ inline ListCertificatesRequest& WithCertificateStatuses(const Aws::Vector& value) { SetCertificateStatuses(value); return *this;} /** *

Filter the certificate list by status value.

*/ inline ListCertificatesRequest& WithCertificateStatuses(Aws::Vector&& value) { SetCertificateStatuses(std::move(value)); return *this;} /** *

Filter the certificate list by status value.

*/ inline ListCertificatesRequest& AddCertificateStatuses(const CertificateStatus& value) { m_certificateStatusesHasBeenSet = true; m_certificateStatuses.push_back(value); return *this; } /** *

Filter the certificate list by status value.

*/ inline ListCertificatesRequest& AddCertificateStatuses(CertificateStatus&& value) { m_certificateStatusesHasBeenSet = true; m_certificateStatuses.push_back(std::move(value)); return *this; } /** *

Filter the certificate list. For more information, see the Filters * structure.

*/ inline const Filters& GetIncludes() const{ return m_includes; } /** *

Filter the certificate list. For more information, see the Filters * structure.

*/ inline bool IncludesHasBeenSet() const { return m_includesHasBeenSet; } /** *

Filter the certificate list. For more information, see the Filters * structure.

*/ inline void SetIncludes(const Filters& value) { m_includesHasBeenSet = true; m_includes = value; } /** *

Filter the certificate list. For more information, see the Filters * structure.

*/ inline void SetIncludes(Filters&& value) { m_includesHasBeenSet = true; m_includes = std::move(value); } /** *

Filter the certificate list. For more information, see the Filters * structure.

*/ inline ListCertificatesRequest& WithIncludes(const Filters& value) { SetIncludes(value); return *this;} /** *

Filter the certificate list. For more information, see the Filters * structure.

*/ inline ListCertificatesRequest& WithIncludes(Filters&& value) { SetIncludes(std::move(value)); return *this;} /** *

Use this parameter only when paginating results and only in a subsequent * request after you receive a response with truncated results. Set it to the value * of NextToken from the response you just received.

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

Use this parameter only when paginating results and only in a subsequent * request after you receive a response with truncated results. Set it to the value * of NextToken from the response you just received.

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

Use this parameter only when paginating results and only in a subsequent * request after you receive a response with truncated results. Set it to the value * of NextToken from the response you just received.

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

Use this parameter only when paginating results and only in a subsequent * request after you receive a response with truncated results. Set it to the value * of NextToken from the response you just received.

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

Use this parameter only when paginating results and only in a subsequent * request after you receive a response with truncated results. Set it to the value * of NextToken from the response you just received.

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

Use this parameter only when paginating results and only in a subsequent * request after you receive a response with truncated results. Set it to the value * of NextToken from the response you just received.

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

Use this parameter only when paginating results and only in a subsequent * request after you receive a response with truncated results. Set it to the value * of NextToken from the response you just received.

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

Use this parameter only when paginating results and only in a subsequent * request after you receive a response with truncated results. Set it to the value * of NextToken from the response you just received.

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

Use this parameter when paginating results to specify the maximum number of * items to return in the response. If additional items exist beyond the number you * specify, the NextToken element is sent in the response. Use this * NextToken value in a subsequent request to retrieve additional * items.

*/ inline int GetMaxItems() const{ return m_maxItems; } /** *

Use this parameter when paginating results to specify the maximum number of * items to return in the response. If additional items exist beyond the number you * specify, the NextToken element is sent in the response. Use this * NextToken value in a subsequent request to retrieve additional * items.

*/ inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; } /** *

Use this parameter when paginating results to specify the maximum number of * items to return in the response. If additional items exist beyond the number you * specify, the NextToken element is sent in the response. Use this * NextToken value in a subsequent request to retrieve additional * items.

*/ inline void SetMaxItems(int value) { m_maxItemsHasBeenSet = true; m_maxItems = value; } /** *

Use this parameter when paginating results to specify the maximum number of * items to return in the response. If additional items exist beyond the number you * specify, the NextToken element is sent in the response. Use this * NextToken value in a subsequent request to retrieve additional * items.

*/ inline ListCertificatesRequest& WithMaxItems(int value) { SetMaxItems(value); return *this;} /** *

Specifies the field to sort results by. If you specify SortBy, * you must also specify SortOrder.

*/ inline const SortBy& GetSortBy() const{ return m_sortBy; } /** *

Specifies the field to sort results by. If you specify SortBy, * you must also specify SortOrder.

*/ inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; } /** *

Specifies the field to sort results by. If you specify SortBy, * you must also specify SortOrder.

*/ inline void SetSortBy(const SortBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; } /** *

Specifies the field to sort results by. If you specify SortBy, * you must also specify SortOrder.

*/ inline void SetSortBy(SortBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); } /** *

Specifies the field to sort results by. If you specify SortBy, * you must also specify SortOrder.

*/ inline ListCertificatesRequest& WithSortBy(const SortBy& value) { SetSortBy(value); return *this;} /** *

Specifies the field to sort results by. If you specify SortBy, * you must also specify SortOrder.

*/ inline ListCertificatesRequest& WithSortBy(SortBy&& value) { SetSortBy(std::move(value)); return *this;} /** *

Specifies the order of sorted results. If you specify SortOrder, * you must also specify SortBy.

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

Specifies the order of sorted results. If you specify SortOrder, * you must also specify SortBy.

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

Specifies the order of sorted results. If you specify SortOrder, * you must also specify SortBy.

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

Specifies the order of sorted results. If you specify SortOrder, * you must also specify SortBy.

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

Specifies the order of sorted results. If you specify SortOrder, * you must also specify SortBy.

*/ inline ListCertificatesRequest& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;} /** *

Specifies the order of sorted results. If you specify SortOrder, * you must also specify SortBy.

*/ inline ListCertificatesRequest& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;} private: Aws::Vector m_certificateStatuses; bool m_certificateStatusesHasBeenSet = false; Filters m_includes; bool m_includesHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxItems; bool m_maxItemsHasBeenSet = false; SortBy m_sortBy; bool m_sortByHasBeenSet = false; SortOrder m_sortOrder; bool m_sortOrderHasBeenSet = false; }; } // namespace Model } // namespace ACM } // namespace Aws