/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace ACMPCA { namespace Model { class GetCertificateResult { public: AWS_ACMPCA_API GetCertificateResult(); AWS_ACMPCA_API GetCertificateResult(const Aws::AmazonWebServiceResult& result); AWS_ACMPCA_API GetCertificateResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The base64 PEM-encoded certificate specified by the * CertificateArn parameter.

*/ inline const Aws::String& GetCertificate() const{ return m_certificate; } /** *

The base64 PEM-encoded certificate specified by the * CertificateArn parameter.

*/ inline void SetCertificate(const Aws::String& value) { m_certificate = value; } /** *

The base64 PEM-encoded certificate specified by the * CertificateArn parameter.

*/ inline void SetCertificate(Aws::String&& value) { m_certificate = std::move(value); } /** *

The base64 PEM-encoded certificate specified by the * CertificateArn parameter.

*/ inline void SetCertificate(const char* value) { m_certificate.assign(value); } /** *

The base64 PEM-encoded certificate specified by the * CertificateArn parameter.

*/ inline GetCertificateResult& WithCertificate(const Aws::String& value) { SetCertificate(value); return *this;} /** *

The base64 PEM-encoded certificate specified by the * CertificateArn parameter.

*/ inline GetCertificateResult& WithCertificate(Aws::String&& value) { SetCertificate(std::move(value)); return *this;} /** *

The base64 PEM-encoded certificate specified by the * CertificateArn parameter.

*/ inline GetCertificateResult& WithCertificate(const char* value) { SetCertificate(value); return *this;} /** *

The base64 PEM-encoded certificate chain that chains up to the root CA * certificate that you used to sign your private CA certificate.

*/ inline const Aws::String& GetCertificateChain() const{ return m_certificateChain; } /** *

The base64 PEM-encoded certificate chain that chains up to the root CA * certificate that you used to sign your private CA certificate.

*/ inline void SetCertificateChain(const Aws::String& value) { m_certificateChain = value; } /** *

The base64 PEM-encoded certificate chain that chains up to the root CA * certificate that you used to sign your private CA certificate.

*/ inline void SetCertificateChain(Aws::String&& value) { m_certificateChain = std::move(value); } /** *

The base64 PEM-encoded certificate chain that chains up to the root CA * certificate that you used to sign your private CA certificate.

*/ inline void SetCertificateChain(const char* value) { m_certificateChain.assign(value); } /** *

The base64 PEM-encoded certificate chain that chains up to the root CA * certificate that you used to sign your private CA certificate.

*/ inline GetCertificateResult& WithCertificateChain(const Aws::String& value) { SetCertificateChain(value); return *this;} /** *

The base64 PEM-encoded certificate chain that chains up to the root CA * certificate that you used to sign your private CA certificate.

*/ inline GetCertificateResult& WithCertificateChain(Aws::String&& value) { SetCertificateChain(std::move(value)); return *this;} /** *

The base64 PEM-encoded certificate chain that chains up to the root CA * certificate that you used to sign your private CA certificate.

*/ inline GetCertificateResult& WithCertificateChain(const char* value) { SetCertificateChain(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetCertificateResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetCertificateResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetCertificateResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_certificate; Aws::String m_certificateChain; Aws::String m_requestId; }; } // namespace Model } // namespace ACMPCA } // namespace Aws