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

Returns the details of the DB instance’s server certificate.

For more * information, see Using * SSL/TLS to encrypt a connection to a DB instance in the Amazon RDS User * Guide and * Using SSL/TLS to encrypt a connection to a DB cluster in the Amazon * Aurora User Guide.

See Also:

AWS * API Reference

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

The CA identifier of the CA certificate used for the DB instance's server * certificate.

*/ inline const Aws::String& GetCAIdentifier() const{ return m_cAIdentifier; } /** *

The CA identifier of the CA certificate used for the DB instance's server * certificate.

*/ inline bool CAIdentifierHasBeenSet() const { return m_cAIdentifierHasBeenSet; } /** *

The CA identifier of the CA certificate used for the DB instance's server * certificate.

*/ inline void SetCAIdentifier(const Aws::String& value) { m_cAIdentifierHasBeenSet = true; m_cAIdentifier = value; } /** *

The CA identifier of the CA certificate used for the DB instance's server * certificate.

*/ inline void SetCAIdentifier(Aws::String&& value) { m_cAIdentifierHasBeenSet = true; m_cAIdentifier = std::move(value); } /** *

The CA identifier of the CA certificate used for the DB instance's server * certificate.

*/ inline void SetCAIdentifier(const char* value) { m_cAIdentifierHasBeenSet = true; m_cAIdentifier.assign(value); } /** *

The CA identifier of the CA certificate used for the DB instance's server * certificate.

*/ inline CertificateDetails& WithCAIdentifier(const Aws::String& value) { SetCAIdentifier(value); return *this;} /** *

The CA identifier of the CA certificate used for the DB instance's server * certificate.

*/ inline CertificateDetails& WithCAIdentifier(Aws::String&& value) { SetCAIdentifier(std::move(value)); return *this;} /** *

The CA identifier of the CA certificate used for the DB instance's server * certificate.

*/ inline CertificateDetails& WithCAIdentifier(const char* value) { SetCAIdentifier(value); return *this;} /** *

The expiration date of the DB instance’s server certificate.

*/ inline const Aws::Utils::DateTime& GetValidTill() const{ return m_validTill; } /** *

The expiration date of the DB instance’s server certificate.

*/ inline bool ValidTillHasBeenSet() const { return m_validTillHasBeenSet; } /** *

The expiration date of the DB instance’s server certificate.

*/ inline void SetValidTill(const Aws::Utils::DateTime& value) { m_validTillHasBeenSet = true; m_validTill = value; } /** *

The expiration date of the DB instance’s server certificate.

*/ inline void SetValidTill(Aws::Utils::DateTime&& value) { m_validTillHasBeenSet = true; m_validTill = std::move(value); } /** *

The expiration date of the DB instance’s server certificate.

*/ inline CertificateDetails& WithValidTill(const Aws::Utils::DateTime& value) { SetValidTill(value); return *this;} /** *

The expiration date of the DB instance’s server certificate.

*/ inline CertificateDetails& WithValidTill(Aws::Utils::DateTime&& value) { SetValidTill(std::move(value)); return *this;} private: Aws::String m_cAIdentifier; bool m_cAIdentifierHasBeenSet = false; Aws::Utils::DateTime m_validTill; bool m_validTillHasBeenSet = false; }; } // namespace Model } // namespace RDS } // namespace Aws