/** * 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 { /** *

Specifies the X.509 extension information for a certificate.

*

Extensions present in CustomExtensions follow the * ApiPassthrough template * rules.

See Also:

AWS * API Reference

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

Specifies the object identifier (OID) of the X.509 extension. For more * information, see the Global OID reference * database.

*/ inline const Aws::String& GetObjectIdentifier() const{ return m_objectIdentifier; } /** *

Specifies the object identifier (OID) of the X.509 extension. For more * information, see the Global OID reference * database.

*/ inline bool ObjectIdentifierHasBeenSet() const { return m_objectIdentifierHasBeenSet; } /** *

Specifies the object identifier (OID) of the X.509 extension. For more * information, see the Global OID reference * database.

*/ inline void SetObjectIdentifier(const Aws::String& value) { m_objectIdentifierHasBeenSet = true; m_objectIdentifier = value; } /** *

Specifies the object identifier (OID) of the X.509 extension. For more * information, see the Global OID reference * database.

*/ inline void SetObjectIdentifier(Aws::String&& value) { m_objectIdentifierHasBeenSet = true; m_objectIdentifier = std::move(value); } /** *

Specifies the object identifier (OID) of the X.509 extension. For more * information, see the Global OID reference * database.

*/ inline void SetObjectIdentifier(const char* value) { m_objectIdentifierHasBeenSet = true; m_objectIdentifier.assign(value); } /** *

Specifies the object identifier (OID) of the X.509 extension. For more * information, see the Global OID reference * database.

*/ inline CustomExtension& WithObjectIdentifier(const Aws::String& value) { SetObjectIdentifier(value); return *this;} /** *

Specifies the object identifier (OID) of the X.509 extension. For more * information, see the Global OID reference * database.

*/ inline CustomExtension& WithObjectIdentifier(Aws::String&& value) { SetObjectIdentifier(std::move(value)); return *this;} /** *

Specifies the object identifier (OID) of the X.509 extension. For more * information, see the Global OID reference * database.

*/ inline CustomExtension& WithObjectIdentifier(const char* value) { SetObjectIdentifier(value); return *this;} /** *

Specifies the base64-encoded value of the X.509 extension.

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

Specifies the base64-encoded value of the X.509 extension.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

Specifies the base64-encoded value of the X.509 extension.

*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *

Specifies the base64-encoded value of the X.509 extension.

*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

Specifies the base64-encoded value of the X.509 extension.

*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *

Specifies the base64-encoded value of the X.509 extension.

*/ inline CustomExtension& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *

Specifies the base64-encoded value of the X.509 extension.

*/ inline CustomExtension& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *

Specifies the base64-encoded value of the X.509 extension.

*/ inline CustomExtension& WithValue(const char* value) { SetValue(value); return *this;} /** *

Specifies the critical flag of the X.509 extension.

*/ inline bool GetCritical() const{ return m_critical; } /** *

Specifies the critical flag of the X.509 extension.

*/ inline bool CriticalHasBeenSet() const { return m_criticalHasBeenSet; } /** *

Specifies the critical flag of the X.509 extension.

*/ inline void SetCritical(bool value) { m_criticalHasBeenSet = true; m_critical = value; } /** *

Specifies the critical flag of the X.509 extension.

*/ inline CustomExtension& WithCritical(bool value) { SetCritical(value); return *this;} private: Aws::String m_objectIdentifier; bool m_objectIdentifierHasBeenSet = false; Aws::String m_value; bool m_valueHasBeenSet = false; bool m_critical; bool m_criticalHasBeenSet = false; }; } // namespace Model } // namespace ACMPCA } // namespace Aws