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

The Amazon Resource Number (ARN) of the private CA to inspect. You can find * the ARN by calling the ListCertificateAuthorities * action. This must be of the form: * arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 * You can get a private CA's ARN by running the ListCertificateAuthorities * action.

*/ inline const Aws::String& GetCertificateAuthorityArn() const{ return m_certificateAuthorityArn; } /** *

The Amazon Resource Number (ARN) of the private CA to inspect. You can find * the ARN by calling the ListCertificateAuthorities * action. This must be of the form: * arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 * You can get a private CA's ARN by running the ListCertificateAuthorities * action.

*/ inline bool CertificateAuthorityArnHasBeenSet() const { return m_certificateAuthorityArnHasBeenSet; } /** *

The Amazon Resource Number (ARN) of the private CA to inspect. You can find * the ARN by calling the ListCertificateAuthorities * action. This must be of the form: * arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 * You can get a private CA's ARN by running the ListCertificateAuthorities * action.

*/ inline void SetCertificateAuthorityArn(const Aws::String& value) { m_certificateAuthorityArnHasBeenSet = true; m_certificateAuthorityArn = value; } /** *

The Amazon Resource Number (ARN) of the private CA to inspect. You can find * the ARN by calling the ListCertificateAuthorities * action. This must be of the form: * arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 * You can get a private CA's ARN by running the ListCertificateAuthorities * action.

*/ inline void SetCertificateAuthorityArn(Aws::String&& value) { m_certificateAuthorityArnHasBeenSet = true; m_certificateAuthorityArn = std::move(value); } /** *

The Amazon Resource Number (ARN) of the private CA to inspect. You can find * the ARN by calling the ListCertificateAuthorities * action. This must be of the form: * arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 * You can get a private CA's ARN by running the ListCertificateAuthorities * action.

*/ inline void SetCertificateAuthorityArn(const char* value) { m_certificateAuthorityArnHasBeenSet = true; m_certificateAuthorityArn.assign(value); } /** *

The Amazon Resource Number (ARN) of the private CA to inspect. You can find * the ARN by calling the ListCertificateAuthorities * action. This must be of the form: * arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 * You can get a private CA's ARN by running the ListCertificateAuthorities * action.

*/ inline ListPermissionsRequest& WithCertificateAuthorityArn(const Aws::String& value) { SetCertificateAuthorityArn(value); return *this;} /** *

The Amazon Resource Number (ARN) of the private CA to inspect. You can find * the ARN by calling the ListCertificateAuthorities * action. This must be of the form: * arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 * You can get a private CA's ARN by running the ListCertificateAuthorities * action.

*/ inline ListPermissionsRequest& WithCertificateAuthorityArn(Aws::String&& value) { SetCertificateAuthorityArn(std::move(value)); return *this;} /** *

The Amazon Resource Number (ARN) of the private CA to inspect. You can find * the ARN by calling the ListCertificateAuthorities * action. This must be of the form: * arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 * You can get a private CA's ARN by running the ListCertificateAuthorities * action.

*/ inline ListPermissionsRequest& WithCertificateAuthorityArn(const char* value) { SetCertificateAuthorityArn(value); return *this;} /** *

When paginating results, use this parameter 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; } /** *

When paginating results, use this parameter 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; } /** *

When paginating results, use this parameter 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; } /** *

When paginating results, use this parameter 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); } /** *

When paginating results, use this parameter 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); } /** *

When paginating results, use this parameter 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 ListPermissionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

When paginating results, use this parameter 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 ListPermissionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

When paginating results, use this parameter 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 ListPermissionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

When paginating results, use this parameter 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 GetMaxResults() const{ return m_maxResults; } /** *

When paginating results, use this parameter 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 MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

When paginating results, use this parameter 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 SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

When paginating results, use this parameter 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 ListPermissionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::String m_certificateAuthorityArn; bool m_certificateAuthorityArnHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace ACMPCA } // namespace Aws