/** * 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 Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace Redshift { namespace Model { /** *

Returns information about an HSM client certificate. The certificate is * stored in a secure Hardware Storage Module (HSM), and used by the Amazon * Redshift cluster to encrypt data files.

See Also:

AWS * API Reference

*/ class HsmClientCertificate { public: AWS_REDSHIFT_API HsmClientCertificate(); AWS_REDSHIFT_API HsmClientCertificate(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_REDSHIFT_API HsmClientCertificate& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The identifier of the HSM client certificate.

*/ inline const Aws::String& GetHsmClientCertificateIdentifier() const{ return m_hsmClientCertificateIdentifier; } /** *

The identifier of the HSM client certificate.

*/ inline bool HsmClientCertificateIdentifierHasBeenSet() const { return m_hsmClientCertificateIdentifierHasBeenSet; } /** *

The identifier of the HSM client certificate.

*/ inline void SetHsmClientCertificateIdentifier(const Aws::String& value) { m_hsmClientCertificateIdentifierHasBeenSet = true; m_hsmClientCertificateIdentifier = value; } /** *

The identifier of the HSM client certificate.

*/ inline void SetHsmClientCertificateIdentifier(Aws::String&& value) { m_hsmClientCertificateIdentifierHasBeenSet = true; m_hsmClientCertificateIdentifier = std::move(value); } /** *

The identifier of the HSM client certificate.

*/ inline void SetHsmClientCertificateIdentifier(const char* value) { m_hsmClientCertificateIdentifierHasBeenSet = true; m_hsmClientCertificateIdentifier.assign(value); } /** *

The identifier of the HSM client certificate.

*/ inline HsmClientCertificate& WithHsmClientCertificateIdentifier(const Aws::String& value) { SetHsmClientCertificateIdentifier(value); return *this;} /** *

The identifier of the HSM client certificate.

*/ inline HsmClientCertificate& WithHsmClientCertificateIdentifier(Aws::String&& value) { SetHsmClientCertificateIdentifier(std::move(value)); return *this;} /** *

The identifier of the HSM client certificate.

*/ inline HsmClientCertificate& WithHsmClientCertificateIdentifier(const char* value) { SetHsmClientCertificateIdentifier(value); return *this;} /** *

The public key that the Amazon Redshift cluster will use to connect to the * HSM. You must register the public key in the HSM.

*/ inline const Aws::String& GetHsmClientCertificatePublicKey() const{ return m_hsmClientCertificatePublicKey; } /** *

The public key that the Amazon Redshift cluster will use to connect to the * HSM. You must register the public key in the HSM.

*/ inline bool HsmClientCertificatePublicKeyHasBeenSet() const { return m_hsmClientCertificatePublicKeyHasBeenSet; } /** *

The public key that the Amazon Redshift cluster will use to connect to the * HSM. You must register the public key in the HSM.

*/ inline void SetHsmClientCertificatePublicKey(const Aws::String& value) { m_hsmClientCertificatePublicKeyHasBeenSet = true; m_hsmClientCertificatePublicKey = value; } /** *

The public key that the Amazon Redshift cluster will use to connect to the * HSM. You must register the public key in the HSM.

*/ inline void SetHsmClientCertificatePublicKey(Aws::String&& value) { m_hsmClientCertificatePublicKeyHasBeenSet = true; m_hsmClientCertificatePublicKey = std::move(value); } /** *

The public key that the Amazon Redshift cluster will use to connect to the * HSM. You must register the public key in the HSM.

*/ inline void SetHsmClientCertificatePublicKey(const char* value) { m_hsmClientCertificatePublicKeyHasBeenSet = true; m_hsmClientCertificatePublicKey.assign(value); } /** *

The public key that the Amazon Redshift cluster will use to connect to the * HSM. You must register the public key in the HSM.

*/ inline HsmClientCertificate& WithHsmClientCertificatePublicKey(const Aws::String& value) { SetHsmClientCertificatePublicKey(value); return *this;} /** *

The public key that the Amazon Redshift cluster will use to connect to the * HSM. You must register the public key in the HSM.

*/ inline HsmClientCertificate& WithHsmClientCertificatePublicKey(Aws::String&& value) { SetHsmClientCertificatePublicKey(std::move(value)); return *this;} /** *

The public key that the Amazon Redshift cluster will use to connect to the * HSM. You must register the public key in the HSM.

*/ inline HsmClientCertificate& WithHsmClientCertificatePublicKey(const char* value) { SetHsmClientCertificatePublicKey(value); return *this;} /** *

The list of tags for the HSM client certificate.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The list of tags for the HSM client certificate.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The list of tags for the HSM client certificate.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The list of tags for the HSM client certificate.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The list of tags for the HSM client certificate.

*/ inline HsmClientCertificate& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The list of tags for the HSM client certificate.

*/ inline HsmClientCertificate& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The list of tags for the HSM client certificate.

*/ inline HsmClientCertificate& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The list of tags for the HSM client certificate.

*/ inline HsmClientCertificate& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_hsmClientCertificateIdentifier; bool m_hsmClientCertificateIdentifierHasBeenSet = false; Aws::String m_hsmClientCertificatePublicKey; bool m_hsmClientCertificatePublicKeyHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Redshift } // namespace Aws