/** * 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 CloudHSMV2 { namespace Model { /** *

Contains one or more certificates or a certificate signing request * (CSR).

See Also:

AWS * API Reference

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

The cluster's certificate signing request (CSR). The CSR exists only when the * cluster's state is UNINITIALIZED.

*/ inline const Aws::String& GetClusterCsr() const{ return m_clusterCsr; } /** *

The cluster's certificate signing request (CSR). The CSR exists only when the * cluster's state is UNINITIALIZED.

*/ inline bool ClusterCsrHasBeenSet() const { return m_clusterCsrHasBeenSet; } /** *

The cluster's certificate signing request (CSR). The CSR exists only when the * cluster's state is UNINITIALIZED.

*/ inline void SetClusterCsr(const Aws::String& value) { m_clusterCsrHasBeenSet = true; m_clusterCsr = value; } /** *

The cluster's certificate signing request (CSR). The CSR exists only when the * cluster's state is UNINITIALIZED.

*/ inline void SetClusterCsr(Aws::String&& value) { m_clusterCsrHasBeenSet = true; m_clusterCsr = std::move(value); } /** *

The cluster's certificate signing request (CSR). The CSR exists only when the * cluster's state is UNINITIALIZED.

*/ inline void SetClusterCsr(const char* value) { m_clusterCsrHasBeenSet = true; m_clusterCsr.assign(value); } /** *

The cluster's certificate signing request (CSR). The CSR exists only when the * cluster's state is UNINITIALIZED.

*/ inline Certificates& WithClusterCsr(const Aws::String& value) { SetClusterCsr(value); return *this;} /** *

The cluster's certificate signing request (CSR). The CSR exists only when the * cluster's state is UNINITIALIZED.

*/ inline Certificates& WithClusterCsr(Aws::String&& value) { SetClusterCsr(std::move(value)); return *this;} /** *

The cluster's certificate signing request (CSR). The CSR exists only when the * cluster's state is UNINITIALIZED.

*/ inline Certificates& WithClusterCsr(const char* value) { SetClusterCsr(value); return *this;} /** *

The HSM certificate issued (signed) by the HSM hardware.

*/ inline const Aws::String& GetHsmCertificate() const{ return m_hsmCertificate; } /** *

The HSM certificate issued (signed) by the HSM hardware.

*/ inline bool HsmCertificateHasBeenSet() const { return m_hsmCertificateHasBeenSet; } /** *

The HSM certificate issued (signed) by the HSM hardware.

*/ inline void SetHsmCertificate(const Aws::String& value) { m_hsmCertificateHasBeenSet = true; m_hsmCertificate = value; } /** *

The HSM certificate issued (signed) by the HSM hardware.

*/ inline void SetHsmCertificate(Aws::String&& value) { m_hsmCertificateHasBeenSet = true; m_hsmCertificate = std::move(value); } /** *

The HSM certificate issued (signed) by the HSM hardware.

*/ inline void SetHsmCertificate(const char* value) { m_hsmCertificateHasBeenSet = true; m_hsmCertificate.assign(value); } /** *

The HSM certificate issued (signed) by the HSM hardware.

*/ inline Certificates& WithHsmCertificate(const Aws::String& value) { SetHsmCertificate(value); return *this;} /** *

The HSM certificate issued (signed) by the HSM hardware.

*/ inline Certificates& WithHsmCertificate(Aws::String&& value) { SetHsmCertificate(std::move(value)); return *this;} /** *

The HSM certificate issued (signed) by the HSM hardware.

*/ inline Certificates& WithHsmCertificate(const char* value) { SetHsmCertificate(value); return *this;} /** *

The HSM hardware certificate issued (signed) by AWS CloudHSM.

*/ inline const Aws::String& GetAwsHardwareCertificate() const{ return m_awsHardwareCertificate; } /** *

The HSM hardware certificate issued (signed) by AWS CloudHSM.

*/ inline bool AwsHardwareCertificateHasBeenSet() const { return m_awsHardwareCertificateHasBeenSet; } /** *

The HSM hardware certificate issued (signed) by AWS CloudHSM.

*/ inline void SetAwsHardwareCertificate(const Aws::String& value) { m_awsHardwareCertificateHasBeenSet = true; m_awsHardwareCertificate = value; } /** *

The HSM hardware certificate issued (signed) by AWS CloudHSM.

*/ inline void SetAwsHardwareCertificate(Aws::String&& value) { m_awsHardwareCertificateHasBeenSet = true; m_awsHardwareCertificate = std::move(value); } /** *

The HSM hardware certificate issued (signed) by AWS CloudHSM.

*/ inline void SetAwsHardwareCertificate(const char* value) { m_awsHardwareCertificateHasBeenSet = true; m_awsHardwareCertificate.assign(value); } /** *

The HSM hardware certificate issued (signed) by AWS CloudHSM.

*/ inline Certificates& WithAwsHardwareCertificate(const Aws::String& value) { SetAwsHardwareCertificate(value); return *this;} /** *

The HSM hardware certificate issued (signed) by AWS CloudHSM.

*/ inline Certificates& WithAwsHardwareCertificate(Aws::String&& value) { SetAwsHardwareCertificate(std::move(value)); return *this;} /** *

The HSM hardware certificate issued (signed) by AWS CloudHSM.

*/ inline Certificates& WithAwsHardwareCertificate(const char* value) { SetAwsHardwareCertificate(value); return *this;} /** *

The HSM hardware certificate issued (signed) by the hardware * manufacturer.

*/ inline const Aws::String& GetManufacturerHardwareCertificate() const{ return m_manufacturerHardwareCertificate; } /** *

The HSM hardware certificate issued (signed) by the hardware * manufacturer.

*/ inline bool ManufacturerHardwareCertificateHasBeenSet() const { return m_manufacturerHardwareCertificateHasBeenSet; } /** *

The HSM hardware certificate issued (signed) by the hardware * manufacturer.

*/ inline void SetManufacturerHardwareCertificate(const Aws::String& value) { m_manufacturerHardwareCertificateHasBeenSet = true; m_manufacturerHardwareCertificate = value; } /** *

The HSM hardware certificate issued (signed) by the hardware * manufacturer.

*/ inline void SetManufacturerHardwareCertificate(Aws::String&& value) { m_manufacturerHardwareCertificateHasBeenSet = true; m_manufacturerHardwareCertificate = std::move(value); } /** *

The HSM hardware certificate issued (signed) by the hardware * manufacturer.

*/ inline void SetManufacturerHardwareCertificate(const char* value) { m_manufacturerHardwareCertificateHasBeenSet = true; m_manufacturerHardwareCertificate.assign(value); } /** *

The HSM hardware certificate issued (signed) by the hardware * manufacturer.

*/ inline Certificates& WithManufacturerHardwareCertificate(const Aws::String& value) { SetManufacturerHardwareCertificate(value); return *this;} /** *

The HSM hardware certificate issued (signed) by the hardware * manufacturer.

*/ inline Certificates& WithManufacturerHardwareCertificate(Aws::String&& value) { SetManufacturerHardwareCertificate(std::move(value)); return *this;} /** *

The HSM hardware certificate issued (signed) by the hardware * manufacturer.

*/ inline Certificates& WithManufacturerHardwareCertificate(const char* value) { SetManufacturerHardwareCertificate(value); return *this;} /** *

The cluster certificate issued (signed) by the issuing certificate authority * (CA) of the cluster's owner.

*/ inline const Aws::String& GetClusterCertificate() const{ return m_clusterCertificate; } /** *

The cluster certificate issued (signed) by the issuing certificate authority * (CA) of the cluster's owner.

*/ inline bool ClusterCertificateHasBeenSet() const { return m_clusterCertificateHasBeenSet; } /** *

The cluster certificate issued (signed) by the issuing certificate authority * (CA) of the cluster's owner.

*/ inline void SetClusterCertificate(const Aws::String& value) { m_clusterCertificateHasBeenSet = true; m_clusterCertificate = value; } /** *

The cluster certificate issued (signed) by the issuing certificate authority * (CA) of the cluster's owner.

*/ inline void SetClusterCertificate(Aws::String&& value) { m_clusterCertificateHasBeenSet = true; m_clusterCertificate = std::move(value); } /** *

The cluster certificate issued (signed) by the issuing certificate authority * (CA) of the cluster's owner.

*/ inline void SetClusterCertificate(const char* value) { m_clusterCertificateHasBeenSet = true; m_clusterCertificate.assign(value); } /** *

The cluster certificate issued (signed) by the issuing certificate authority * (CA) of the cluster's owner.

*/ inline Certificates& WithClusterCertificate(const Aws::String& value) { SetClusterCertificate(value); return *this;} /** *

The cluster certificate issued (signed) by the issuing certificate authority * (CA) of the cluster's owner.

*/ inline Certificates& WithClusterCertificate(Aws::String&& value) { SetClusterCertificate(std::move(value)); return *this;} /** *

The cluster certificate issued (signed) by the issuing certificate authority * (CA) of the cluster's owner.

*/ inline Certificates& WithClusterCertificate(const char* value) { SetClusterCertificate(value); return *this;} private: Aws::String m_clusterCsr; bool m_clusterCsrHasBeenSet; Aws::String m_hsmCertificate; bool m_hsmCertificateHasBeenSet; Aws::String m_awsHardwareCertificate; bool m_awsHardwareCertificateHasBeenSet; Aws::String m_manufacturerHardwareCertificate; bool m_manufacturerHardwareCertificateHasBeenSet; Aws::String m_clusterCertificate; bool m_clusterCertificateHasBeenSet; }; } // namespace Model } // namespace CloudHSMV2 } // namespace Aws