/** * 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 ACMPCA { namespace Model { /** */ class UpdateCertificateAuthorityRequest : public ACMPCARequest { public: AWS_ACMPCA_API UpdateCertificateAuthorityRequest(); // 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 "UpdateCertificateAuthority"; } AWS_ACMPCA_API Aws::String SerializePayload() const override; AWS_ACMPCA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Amazon Resource Name (ARN) of the private CA that issued the certificate to * be revoked. This must be of the form:

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

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

Amazon Resource Name (ARN) of the private CA that issued the certificate to * be revoked. This must be of the form:

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

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

Amazon Resource Name (ARN) of the private CA that issued the certificate to * be revoked. This must be of the 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; } /** *

Amazon Resource Name (ARN) of the private CA that issued the certificate to * be revoked. This must be of the 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); } /** *

Amazon Resource Name (ARN) of the private CA that issued the certificate to * be revoked. This must be of the 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); } /** *

Amazon Resource Name (ARN) of the private CA that issued the certificate to * be revoked. This must be of the form:

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

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

Amazon Resource Name (ARN) of the private CA that issued the certificate to * be revoked. This must be of the form:

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

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

Amazon Resource Name (ARN) of the private CA that issued the certificate to * be revoked. This must be of the form:

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

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

Contains information to enable Online Certificate Status Protocol (OCSP) * support, to enable a certificate revocation list (CRL), to enable both, or to * enable neither. If this parameter is not supplied, existing capibilites remain * unchanged. For more information, see the OcspConfiguration * and CrlConfiguration * types.

The following requirements apply to revocation * configurations.

  • A configuration disabling CRLs or OCSP must * contain only the Enabled=False parameter, and will fail if other * parameters such as CustomCname or ExpirationInDays are * included.

  • In a CRL configuration, the * S3BucketName parameter must conform to Amazon * S3 bucket naming rules.

  • A configuration containing a * custom Canonical Name (CNAME) parameter for CRLs or OCSP must conform to RFC2396 restrictions on the use * of special characters in a CNAME.

  • In a CRL or OCSP * configuration, the value of a CNAME parameter must not include a protocol prefix * such as "http://" or "https://".

*/ inline const RevocationConfiguration& GetRevocationConfiguration() const{ return m_revocationConfiguration; } /** *

Contains information to enable Online Certificate Status Protocol (OCSP) * support, to enable a certificate revocation list (CRL), to enable both, or to * enable neither. If this parameter is not supplied, existing capibilites remain * unchanged. For more information, see the OcspConfiguration * and CrlConfiguration * types.

The following requirements apply to revocation * configurations.

  • A configuration disabling CRLs or OCSP must * contain only the Enabled=False parameter, and will fail if other * parameters such as CustomCname or ExpirationInDays are * included.

  • In a CRL configuration, the * S3BucketName parameter must conform to Amazon * S3 bucket naming rules.

  • A configuration containing a * custom Canonical Name (CNAME) parameter for CRLs or OCSP must conform to RFC2396 restrictions on the use * of special characters in a CNAME.

  • In a CRL or OCSP * configuration, the value of a CNAME parameter must not include a protocol prefix * such as "http://" or "https://".

*/ inline bool RevocationConfigurationHasBeenSet() const { return m_revocationConfigurationHasBeenSet; } /** *

Contains information to enable Online Certificate Status Protocol (OCSP) * support, to enable a certificate revocation list (CRL), to enable both, or to * enable neither. If this parameter is not supplied, existing capibilites remain * unchanged. For more information, see the OcspConfiguration * and CrlConfiguration * types.

The following requirements apply to revocation * configurations.

  • A configuration disabling CRLs or OCSP must * contain only the Enabled=False parameter, and will fail if other * parameters such as CustomCname or ExpirationInDays are * included.

  • In a CRL configuration, the * S3BucketName parameter must conform to Amazon * S3 bucket naming rules.

  • A configuration containing a * custom Canonical Name (CNAME) parameter for CRLs or OCSP must conform to RFC2396 restrictions on the use * of special characters in a CNAME.

  • In a CRL or OCSP * configuration, the value of a CNAME parameter must not include a protocol prefix * such as "http://" or "https://".

*/ inline void SetRevocationConfiguration(const RevocationConfiguration& value) { m_revocationConfigurationHasBeenSet = true; m_revocationConfiguration = value; } /** *

Contains information to enable Online Certificate Status Protocol (OCSP) * support, to enable a certificate revocation list (CRL), to enable both, or to * enable neither. If this parameter is not supplied, existing capibilites remain * unchanged. For more information, see the OcspConfiguration * and CrlConfiguration * types.

The following requirements apply to revocation * configurations.

  • A configuration disabling CRLs or OCSP must * contain only the Enabled=False parameter, and will fail if other * parameters such as CustomCname or ExpirationInDays are * included.

  • In a CRL configuration, the * S3BucketName parameter must conform to Amazon * S3 bucket naming rules.

  • A configuration containing a * custom Canonical Name (CNAME) parameter for CRLs or OCSP must conform to RFC2396 restrictions on the use * of special characters in a CNAME.

  • In a CRL or OCSP * configuration, the value of a CNAME parameter must not include a protocol prefix * such as "http://" or "https://".

*/ inline void SetRevocationConfiguration(RevocationConfiguration&& value) { m_revocationConfigurationHasBeenSet = true; m_revocationConfiguration = std::move(value); } /** *

Contains information to enable Online Certificate Status Protocol (OCSP) * support, to enable a certificate revocation list (CRL), to enable both, or to * enable neither. If this parameter is not supplied, existing capibilites remain * unchanged. For more information, see the OcspConfiguration * and CrlConfiguration * types.

The following requirements apply to revocation * configurations.

  • A configuration disabling CRLs or OCSP must * contain only the Enabled=False parameter, and will fail if other * parameters such as CustomCname or ExpirationInDays are * included.

  • In a CRL configuration, the * S3BucketName parameter must conform to Amazon * S3 bucket naming rules.

  • A configuration containing a * custom Canonical Name (CNAME) parameter for CRLs or OCSP must conform to RFC2396 restrictions on the use * of special characters in a CNAME.

  • In a CRL or OCSP * configuration, the value of a CNAME parameter must not include a protocol prefix * such as "http://" or "https://".

*/ inline UpdateCertificateAuthorityRequest& WithRevocationConfiguration(const RevocationConfiguration& value) { SetRevocationConfiguration(value); return *this;} /** *

Contains information to enable Online Certificate Status Protocol (OCSP) * support, to enable a certificate revocation list (CRL), to enable both, or to * enable neither. If this parameter is not supplied, existing capibilites remain * unchanged. For more information, see the OcspConfiguration * and CrlConfiguration * types.

The following requirements apply to revocation * configurations.

  • A configuration disabling CRLs or OCSP must * contain only the Enabled=False parameter, and will fail if other * parameters such as CustomCname or ExpirationInDays are * included.

  • In a CRL configuration, the * S3BucketName parameter must conform to Amazon * S3 bucket naming rules.

  • A configuration containing a * custom Canonical Name (CNAME) parameter for CRLs or OCSP must conform to RFC2396 restrictions on the use * of special characters in a CNAME.

  • In a CRL or OCSP * configuration, the value of a CNAME parameter must not include a protocol prefix * such as "http://" or "https://".

*/ inline UpdateCertificateAuthorityRequest& WithRevocationConfiguration(RevocationConfiguration&& value) { SetRevocationConfiguration(std::move(value)); return *this;} /** *

Status of your private CA.

*/ inline const CertificateAuthorityStatus& GetStatus() const{ return m_status; } /** *

Status of your private CA.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

Status of your private CA.

*/ inline void SetStatus(const CertificateAuthorityStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

Status of your private CA.

*/ inline void SetStatus(CertificateAuthorityStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

Status of your private CA.

*/ inline UpdateCertificateAuthorityRequest& WithStatus(const CertificateAuthorityStatus& value) { SetStatus(value); return *this;} /** *

Status of your private CA.

*/ inline UpdateCertificateAuthorityRequest& WithStatus(CertificateAuthorityStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_certificateAuthorityArn; bool m_certificateAuthorityArnHasBeenSet = false; RevocationConfiguration m_revocationConfiguration; bool m_revocationConfigurationHasBeenSet = false; CertificateAuthorityStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace ACMPCA } // namespace Aws