/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ACMPCA { namespace Model { /** *

Certificate revocation information used by the CreateCertificateAuthority * and UpdateCertificateAuthority * actions. Your private certificate authority (CA) can configure Online * Certificate Status Protocol (OCSP) support and/or maintain a certificate * revocation list (CRL). OCSP returns validation information about certificates as * requested by clients, and a CRL contains an updated list of certificates revoked * by your CA. For more information, see RevokeCertificate * and Setting * up a certificate revocation method in the Amazon Web Services Private * Certificate Authority User Guide.

See Also:

AWS * API Reference

*/ class RevocationConfiguration { public: AWS_ACMPCA_API RevocationConfiguration(); AWS_ACMPCA_API RevocationConfiguration(Aws::Utils::Json::JsonView jsonValue); AWS_ACMPCA_API RevocationConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_ACMPCA_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Configuration of the certificate revocation list (CRL), if any, maintained by * your private CA. A CRL is typically updated approximately 30 minutes after a * certificate is revoked. If for any reason a CRL update fails, Amazon Web * Services Private CA makes further attempts every 15 minutes.

*/ inline const CrlConfiguration& GetCrlConfiguration() const{ return m_crlConfiguration; } /** *

Configuration of the certificate revocation list (CRL), if any, maintained by * your private CA. A CRL is typically updated approximately 30 minutes after a * certificate is revoked. If for any reason a CRL update fails, Amazon Web * Services Private CA makes further attempts every 15 minutes.

*/ inline bool CrlConfigurationHasBeenSet() const { return m_crlConfigurationHasBeenSet; } /** *

Configuration of the certificate revocation list (CRL), if any, maintained by * your private CA. A CRL is typically updated approximately 30 minutes after a * certificate is revoked. If for any reason a CRL update fails, Amazon Web * Services Private CA makes further attempts every 15 minutes.

*/ inline void SetCrlConfiguration(const CrlConfiguration& value) { m_crlConfigurationHasBeenSet = true; m_crlConfiguration = value; } /** *

Configuration of the certificate revocation list (CRL), if any, maintained by * your private CA. A CRL is typically updated approximately 30 minutes after a * certificate is revoked. If for any reason a CRL update fails, Amazon Web * Services Private CA makes further attempts every 15 minutes.

*/ inline void SetCrlConfiguration(CrlConfiguration&& value) { m_crlConfigurationHasBeenSet = true; m_crlConfiguration = std::move(value); } /** *

Configuration of the certificate revocation list (CRL), if any, maintained by * your private CA. A CRL is typically updated approximately 30 minutes after a * certificate is revoked. If for any reason a CRL update fails, Amazon Web * Services Private CA makes further attempts every 15 minutes.

*/ inline RevocationConfiguration& WithCrlConfiguration(const CrlConfiguration& value) { SetCrlConfiguration(value); return *this;} /** *

Configuration of the certificate revocation list (CRL), if any, maintained by * your private CA. A CRL is typically updated approximately 30 minutes after a * certificate is revoked. If for any reason a CRL update fails, Amazon Web * Services Private CA makes further attempts every 15 minutes.

*/ inline RevocationConfiguration& WithCrlConfiguration(CrlConfiguration&& value) { SetCrlConfiguration(std::move(value)); return *this;} /** *

Configuration of Online Certificate Status Protocol (OCSP) support, if any, * maintained by your private CA. When you revoke a certificate, OCSP responses may * take up to 60 minutes to reflect the new status.

*/ inline const OcspConfiguration& GetOcspConfiguration() const{ return m_ocspConfiguration; } /** *

Configuration of Online Certificate Status Protocol (OCSP) support, if any, * maintained by your private CA. When you revoke a certificate, OCSP responses may * take up to 60 minutes to reflect the new status.

*/ inline bool OcspConfigurationHasBeenSet() const { return m_ocspConfigurationHasBeenSet; } /** *

Configuration of Online Certificate Status Protocol (OCSP) support, if any, * maintained by your private CA. When you revoke a certificate, OCSP responses may * take up to 60 minutes to reflect the new status.

*/ inline void SetOcspConfiguration(const OcspConfiguration& value) { m_ocspConfigurationHasBeenSet = true; m_ocspConfiguration = value; } /** *

Configuration of Online Certificate Status Protocol (OCSP) support, if any, * maintained by your private CA. When you revoke a certificate, OCSP responses may * take up to 60 minutes to reflect the new status.

*/ inline void SetOcspConfiguration(OcspConfiguration&& value) { m_ocspConfigurationHasBeenSet = true; m_ocspConfiguration = std::move(value); } /** *

Configuration of Online Certificate Status Protocol (OCSP) support, if any, * maintained by your private CA. When you revoke a certificate, OCSP responses may * take up to 60 minutes to reflect the new status.

*/ inline RevocationConfiguration& WithOcspConfiguration(const OcspConfiguration& value) { SetOcspConfiguration(value); return *this;} /** *

Configuration of Online Certificate Status Protocol (OCSP) support, if any, * maintained by your private CA. When you revoke a certificate, OCSP responses may * take up to 60 minutes to reflect the new status.

*/ inline RevocationConfiguration& WithOcspConfiguration(OcspConfiguration&& value) { SetOcspConfiguration(std::move(value)); return *this;} private: CrlConfiguration m_crlConfiguration; bool m_crlConfigurationHasBeenSet = false; OcspConfiguration m_ocspConfiguration; bool m_ocspConfigurationHasBeenSet = false; }; } // namespace Model } // namespace ACMPCA } // namespace Aws