/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ACMPCA { namespace Model { /** *

Contains information to enable and configure Online Certificate Status * Protocol (OCSP) for validating certificate revocation status.

When you * revoke a certificate, OCSP responses may take up to 60 minutes to reflect the * new status.

See Also:

AWS * API Reference

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

Flag enabling use of the Online Certificate Status Protocol (OCSP) for * validating certificate revocation status.

*/ inline bool GetEnabled() const{ return m_enabled; } /** *

Flag enabling use of the Online Certificate Status Protocol (OCSP) for * validating certificate revocation status.

*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *

Flag enabling use of the Online Certificate Status Protocol (OCSP) for * validating certificate revocation status.

*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *

Flag enabling use of the Online Certificate Status Protocol (OCSP) for * validating certificate revocation status.

*/ inline OcspConfiguration& WithEnabled(bool value) { SetEnabled(value); return *this;} /** *

By default, Amazon Web Services Private CA injects an Amazon Web Services * domain into certificates being validated by the Online Certificate Status * Protocol (OCSP). A customer can alternatively use this object to define a CNAME * specifying a customized OCSP domain.

The content of a Canonical * Name (CNAME) record must conform to RFC2396 restrictions on the use * of special characters in URIs. Additionally, the value of the CNAME must not * include a protocol prefix such as "http://" or "https://".

For * more information, see Customizing * Online Certificate Status Protocol (OCSP) in the Amazon Web Services * Private Certificate Authority User Guide.

*/ inline const Aws::String& GetOcspCustomCname() const{ return m_ocspCustomCname; } /** *

By default, Amazon Web Services Private CA injects an Amazon Web Services * domain into certificates being validated by the Online Certificate Status * Protocol (OCSP). A customer can alternatively use this object to define a CNAME * specifying a customized OCSP domain.

The content of a Canonical * Name (CNAME) record must conform to RFC2396 restrictions on the use * of special characters in URIs. Additionally, the value of the CNAME must not * include a protocol prefix such as "http://" or "https://".

For * more information, see Customizing * Online Certificate Status Protocol (OCSP) in the Amazon Web Services * Private Certificate Authority User Guide.

*/ inline bool OcspCustomCnameHasBeenSet() const { return m_ocspCustomCnameHasBeenSet; } /** *

By default, Amazon Web Services Private CA injects an Amazon Web Services * domain into certificates being validated by the Online Certificate Status * Protocol (OCSP). A customer can alternatively use this object to define a CNAME * specifying a customized OCSP domain.

The content of a Canonical * Name (CNAME) record must conform to RFC2396 restrictions on the use * of special characters in URIs. Additionally, the value of the CNAME must not * include a protocol prefix such as "http://" or "https://".

For * more information, see Customizing * Online Certificate Status Protocol (OCSP) in the Amazon Web Services * Private Certificate Authority User Guide.

*/ inline void SetOcspCustomCname(const Aws::String& value) { m_ocspCustomCnameHasBeenSet = true; m_ocspCustomCname = value; } /** *

By default, Amazon Web Services Private CA injects an Amazon Web Services * domain into certificates being validated by the Online Certificate Status * Protocol (OCSP). A customer can alternatively use this object to define a CNAME * specifying a customized OCSP domain.

The content of a Canonical * Name (CNAME) record must conform to RFC2396 restrictions on the use * of special characters in URIs. Additionally, the value of the CNAME must not * include a protocol prefix such as "http://" or "https://".

For * more information, see Customizing * Online Certificate Status Protocol (OCSP) in the Amazon Web Services * Private Certificate Authority User Guide.

*/ inline void SetOcspCustomCname(Aws::String&& value) { m_ocspCustomCnameHasBeenSet = true; m_ocspCustomCname = std::move(value); } /** *

By default, Amazon Web Services Private CA injects an Amazon Web Services * domain into certificates being validated by the Online Certificate Status * Protocol (OCSP). A customer can alternatively use this object to define a CNAME * specifying a customized OCSP domain.

The content of a Canonical * Name (CNAME) record must conform to RFC2396 restrictions on the use * of special characters in URIs. Additionally, the value of the CNAME must not * include a protocol prefix such as "http://" or "https://".

For * more information, see Customizing * Online Certificate Status Protocol (OCSP) in the Amazon Web Services * Private Certificate Authority User Guide.

*/ inline void SetOcspCustomCname(const char* value) { m_ocspCustomCnameHasBeenSet = true; m_ocspCustomCname.assign(value); } /** *

By default, Amazon Web Services Private CA injects an Amazon Web Services * domain into certificates being validated by the Online Certificate Status * Protocol (OCSP). A customer can alternatively use this object to define a CNAME * specifying a customized OCSP domain.

The content of a Canonical * Name (CNAME) record must conform to RFC2396 restrictions on the use * of special characters in URIs. Additionally, the value of the CNAME must not * include a protocol prefix such as "http://" or "https://".

For * more information, see Customizing * Online Certificate Status Protocol (OCSP) in the Amazon Web Services * Private Certificate Authority User Guide.

*/ inline OcspConfiguration& WithOcspCustomCname(const Aws::String& value) { SetOcspCustomCname(value); return *this;} /** *

By default, Amazon Web Services Private CA injects an Amazon Web Services * domain into certificates being validated by the Online Certificate Status * Protocol (OCSP). A customer can alternatively use this object to define a CNAME * specifying a customized OCSP domain.

The content of a Canonical * Name (CNAME) record must conform to RFC2396 restrictions on the use * of special characters in URIs. Additionally, the value of the CNAME must not * include a protocol prefix such as "http://" or "https://".

For * more information, see Customizing * Online Certificate Status Protocol (OCSP) in the Amazon Web Services * Private Certificate Authority User Guide.

*/ inline OcspConfiguration& WithOcspCustomCname(Aws::String&& value) { SetOcspCustomCname(std::move(value)); return *this;} /** *

By default, Amazon Web Services Private CA injects an Amazon Web Services * domain into certificates being validated by the Online Certificate Status * Protocol (OCSP). A customer can alternatively use this object to define a CNAME * specifying a customized OCSP domain.

The content of a Canonical * Name (CNAME) record must conform to RFC2396 restrictions on the use * of special characters in URIs. Additionally, the value of the CNAME must not * include a protocol prefix such as "http://" or "https://".

For * more information, see Customizing * Online Certificate Status Protocol (OCSP) in the Amazon Web Services * Private Certificate Authority User Guide.

*/ inline OcspConfiguration& WithOcspCustomCname(const char* value) { SetOcspCustomCname(value); return *this;} private: bool m_enabled; bool m_enabledHasBeenSet = false; Aws::String m_ocspCustomCname; bool m_ocspCustomCnameHasBeenSet = false; }; } // namespace Model } // namespace ACMPCA } // namespace Aws