/** * 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 Lightsail { namespace Model { /** */ class GetCertificatesRequest : public LightsailRequest { public: AWS_LIGHTSAIL_API GetCertificatesRequest(); // 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 "GetCertificates"; } AWS_LIGHTSAIL_API Aws::String SerializePayload() const override; AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The status of the certificates for which to return information.

For * example, specify ISSUED to return only certificates with an * ISSUED status.

When omitted, the response includes all of * your certificates in the Amazon Web Services Region where the request is made, * regardless of their current status.

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

The status of the certificates for which to return information.

For * example, specify ISSUED to return only certificates with an * ISSUED status.

When omitted, the response includes all of * your certificates in the Amazon Web Services Region where the request is made, * regardless of their current status.

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

The status of the certificates for which to return information.

For * example, specify ISSUED to return only certificates with an * ISSUED status.

When omitted, the response includes all of * your certificates in the Amazon Web Services Region where the request is made, * regardless of their current status.

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

The status of the certificates for which to return information.

For * example, specify ISSUED to return only certificates with an * ISSUED status.

When omitted, the response includes all of * your certificates in the Amazon Web Services Region where the request is made, * regardless of their current status.

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

The status of the certificates for which to return information.

For * example, specify ISSUED to return only certificates with an * ISSUED status.

When omitted, the response includes all of * your certificates in the Amazon Web Services Region where the request is made, * regardless of their current status.

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

The status of the certificates for which to return information.

For * example, specify ISSUED to return only certificates with an * ISSUED status.

When omitted, the response includes all of * your certificates in the Amazon Web Services Region where the request is made, * regardless of their current status.

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

The status of the certificates for which to return information.

For * example, specify ISSUED to return only certificates with an * ISSUED status.

When omitted, the response includes all of * your certificates in the Amazon Web Services Region where the request is made, * regardless of their current status.

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

The status of the certificates for which to return information.

For * example, specify ISSUED to return only certificates with an * ISSUED status.

When omitted, the response includes all of * your certificates in the Amazon Web Services Region where the request is made, * regardless of their current status.

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

Indicates whether to include detailed information about the certificates in * the response.

When omitted, the response includes only the certificate * names, Amazon Resource Names (ARNs), domain names, and tags.

*/ inline bool GetIncludeCertificateDetails() const{ return m_includeCertificateDetails; } /** *

Indicates whether to include detailed information about the certificates in * the response.

When omitted, the response includes only the certificate * names, Amazon Resource Names (ARNs), domain names, and tags.

*/ inline bool IncludeCertificateDetailsHasBeenSet() const { return m_includeCertificateDetailsHasBeenSet; } /** *

Indicates whether to include detailed information about the certificates in * the response.

When omitted, the response includes only the certificate * names, Amazon Resource Names (ARNs), domain names, and tags.

*/ inline void SetIncludeCertificateDetails(bool value) { m_includeCertificateDetailsHasBeenSet = true; m_includeCertificateDetails = value; } /** *

Indicates whether to include detailed information about the certificates in * the response.

When omitted, the response includes only the certificate * names, Amazon Resource Names (ARNs), domain names, and tags.

*/ inline GetCertificatesRequest& WithIncludeCertificateDetails(bool value) { SetIncludeCertificateDetails(value); return *this;} /** *

The name for the certificate for which to return information.

When * omitted, the response includes all of your certificates in the Amazon Web * Services Region where the request is made.

*/ inline const Aws::String& GetCertificateName() const{ return m_certificateName; } /** *

The name for the certificate for which to return information.

When * omitted, the response includes all of your certificates in the Amazon Web * Services Region where the request is made.

*/ inline bool CertificateNameHasBeenSet() const { return m_certificateNameHasBeenSet; } /** *

The name for the certificate for which to return information.

When * omitted, the response includes all of your certificates in the Amazon Web * Services Region where the request is made.

*/ inline void SetCertificateName(const Aws::String& value) { m_certificateNameHasBeenSet = true; m_certificateName = value; } /** *

The name for the certificate for which to return information.

When * omitted, the response includes all of your certificates in the Amazon Web * Services Region where the request is made.

*/ inline void SetCertificateName(Aws::String&& value) { m_certificateNameHasBeenSet = true; m_certificateName = std::move(value); } /** *

The name for the certificate for which to return information.

When * omitted, the response includes all of your certificates in the Amazon Web * Services Region where the request is made.

*/ inline void SetCertificateName(const char* value) { m_certificateNameHasBeenSet = true; m_certificateName.assign(value); } /** *

The name for the certificate for which to return information.

When * omitted, the response includes all of your certificates in the Amazon Web * Services Region where the request is made.

*/ inline GetCertificatesRequest& WithCertificateName(const Aws::String& value) { SetCertificateName(value); return *this;} /** *

The name for the certificate for which to return information.

When * omitted, the response includes all of your certificates in the Amazon Web * Services Region where the request is made.

*/ inline GetCertificatesRequest& WithCertificateName(Aws::String&& value) { SetCertificateName(std::move(value)); return *this;} /** *

The name for the certificate for which to return information.

When * omitted, the response includes all of your certificates in the Amazon Web * Services Region where the request is made.

*/ inline GetCertificatesRequest& WithCertificateName(const char* value) { SetCertificateName(value); return *this;} /** *

The token to advance to the next page of results from your request.

To * get a page token, perform an initial GetCertificates request. If * your results are paginated, the response will return a next page token that you * can specify as the page token in a subsequent request.

*/ inline const Aws::String& GetPageToken() const{ return m_pageToken; } /** *

The token to advance to the next page of results from your request.

To * get a page token, perform an initial GetCertificates request. If * your results are paginated, the response will return a next page token that you * can specify as the page token in a subsequent request.

*/ inline bool PageTokenHasBeenSet() const { return m_pageTokenHasBeenSet; } /** *

The token to advance to the next page of results from your request.

To * get a page token, perform an initial GetCertificates request. If * your results are paginated, the response will return a next page token that you * can specify as the page token in a subsequent request.

*/ inline void SetPageToken(const Aws::String& value) { m_pageTokenHasBeenSet = true; m_pageToken = value; } /** *

The token to advance to the next page of results from your request.

To * get a page token, perform an initial GetCertificates request. If * your results are paginated, the response will return a next page token that you * can specify as the page token in a subsequent request.

*/ inline void SetPageToken(Aws::String&& value) { m_pageTokenHasBeenSet = true; m_pageToken = std::move(value); } /** *

The token to advance to the next page of results from your request.

To * get a page token, perform an initial GetCertificates request. If * your results are paginated, the response will return a next page token that you * can specify as the page token in a subsequent request.

*/ inline void SetPageToken(const char* value) { m_pageTokenHasBeenSet = true; m_pageToken.assign(value); } /** *

The token to advance to the next page of results from your request.

To * get a page token, perform an initial GetCertificates request. If * your results are paginated, the response will return a next page token that you * can specify as the page token in a subsequent request.

*/ inline GetCertificatesRequest& WithPageToken(const Aws::String& value) { SetPageToken(value); return *this;} /** *

The token to advance to the next page of results from your request.

To * get a page token, perform an initial GetCertificates request. If * your results are paginated, the response will return a next page token that you * can specify as the page token in a subsequent request.

*/ inline GetCertificatesRequest& WithPageToken(Aws::String&& value) { SetPageToken(std::move(value)); return *this;} /** *

The token to advance to the next page of results from your request.

To * get a page token, perform an initial GetCertificates request. If * your results are paginated, the response will return a next page token that you * can specify as the page token in a subsequent request.

*/ inline GetCertificatesRequest& WithPageToken(const char* value) { SetPageToken(value); return *this;} private: Aws::Vector m_certificateStatuses; bool m_certificateStatusesHasBeenSet = false; bool m_includeCertificateDetails; bool m_includeCertificateDetailsHasBeenSet = false; Aws::String m_certificateName; bool m_certificateNameHasBeenSet = false; Aws::String m_pageToken; bool m_pageTokenHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws