/** * 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 DeletePermissionRequest : public ACMPCARequest { public: AWS_ACMPCA_API DeletePermissionRequest(); // 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 "DeletePermission"; } 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 that issued the * permissions. You can find the CA's ARN by calling the ListCertificateAuthorities * action. This must have the following form:

* arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 * .

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

The Amazon Resource Number (ARN) of the private CA that issued the * permissions. You can find the CA's ARN by calling the ListCertificateAuthorities * action. This must have the following form:

* arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 * .

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

The Amazon Resource Number (ARN) of the private CA that issued the * permissions. You can find the CA's ARN by calling the ListCertificateAuthorities * action. This must have the following form:

* arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 * .

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

The Amazon Resource Number (ARN) of the private CA that issued the * permissions. You can find the CA's ARN by calling the ListCertificateAuthorities * action. This must have the following form:

* arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 * .

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

The Amazon Resource Number (ARN) of the private CA that issued the * permissions. You can find the CA's ARN by calling the ListCertificateAuthorities * action. This must have the following form:

* arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 * .

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

The Amazon Resource Number (ARN) of the private CA that issued the * permissions. You can find the CA's ARN by calling the ListCertificateAuthorities * action. This must have the following form:

* arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 * .

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

The Amazon Resource Number (ARN) of the private CA that issued the * permissions. You can find the CA's ARN by calling the ListCertificateAuthorities * action. This must have the following form:

* arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 * .

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

The Amazon Resource Number (ARN) of the private CA that issued the * permissions. You can find the CA's ARN by calling the ListCertificateAuthorities * action. This must have the following form:

* arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 * .

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

The Amazon Web Services service or identity that will have its CA permissions * revoked. At this time, the only valid service principal is * acm.amazonaws.com

*/ inline const Aws::String& GetPrincipal() const{ return m_principal; } /** *

The Amazon Web Services service or identity that will have its CA permissions * revoked. At this time, the only valid service principal is * acm.amazonaws.com

*/ inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; } /** *

The Amazon Web Services service or identity that will have its CA permissions * revoked. At this time, the only valid service principal is * acm.amazonaws.com

*/ inline void SetPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal = value; } /** *

The Amazon Web Services service or identity that will have its CA permissions * revoked. At this time, the only valid service principal is * acm.amazonaws.com

*/ inline void SetPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); } /** *

The Amazon Web Services service or identity that will have its CA permissions * revoked. At this time, the only valid service principal is * acm.amazonaws.com

*/ inline void SetPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.assign(value); } /** *

The Amazon Web Services service or identity that will have its CA permissions * revoked. At this time, the only valid service principal is * acm.amazonaws.com

*/ inline DeletePermissionRequest& WithPrincipal(const Aws::String& value) { SetPrincipal(value); return *this;} /** *

The Amazon Web Services service or identity that will have its CA permissions * revoked. At this time, the only valid service principal is * acm.amazonaws.com

*/ inline DeletePermissionRequest& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;} /** *

The Amazon Web Services service or identity that will have its CA permissions * revoked. At this time, the only valid service principal is * acm.amazonaws.com

*/ inline DeletePermissionRequest& WithPrincipal(const char* value) { SetPrincipal(value); return *this;} /** *

The Amazon Web Services account that calls this action.

*/ inline const Aws::String& GetSourceAccount() const{ return m_sourceAccount; } /** *

The Amazon Web Services account that calls this action.

*/ inline bool SourceAccountHasBeenSet() const { return m_sourceAccountHasBeenSet; } /** *

The Amazon Web Services account that calls this action.

*/ inline void SetSourceAccount(const Aws::String& value) { m_sourceAccountHasBeenSet = true; m_sourceAccount = value; } /** *

The Amazon Web Services account that calls this action.

*/ inline void SetSourceAccount(Aws::String&& value) { m_sourceAccountHasBeenSet = true; m_sourceAccount = std::move(value); } /** *

The Amazon Web Services account that calls this action.

*/ inline void SetSourceAccount(const char* value) { m_sourceAccountHasBeenSet = true; m_sourceAccount.assign(value); } /** *

The Amazon Web Services account that calls this action.

*/ inline DeletePermissionRequest& WithSourceAccount(const Aws::String& value) { SetSourceAccount(value); return *this;} /** *

The Amazon Web Services account that calls this action.

*/ inline DeletePermissionRequest& WithSourceAccount(Aws::String&& value) { SetSourceAccount(std::move(value)); return *this;} /** *

The Amazon Web Services account that calls this action.

*/ inline DeletePermissionRequest& WithSourceAccount(const char* value) { SetSourceAccount(value); return *this;} private: Aws::String m_certificateAuthorityArn; bool m_certificateAuthorityArnHasBeenSet = false; Aws::String m_principal; bool m_principalHasBeenSet = false; Aws::String m_sourceAccount; bool m_sourceAccountHasBeenSet = false; }; } // namespace Model } // namespace ACMPCA } // namespace Aws