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

The output from the CreateCertificateFromCsr operation.

See * Also:

AWS * API Reference

*/ class AWS_IOT_API CreateCertificateFromCsrResult { public: CreateCertificateFromCsrResult(); CreateCertificateFromCsrResult(const Aws::AmazonWebServiceResult& result); CreateCertificateFromCsrResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Amazon Resource Name (ARN) of the certificate. You can use the ARN as a * principal for policy operations.

*/ inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; } /** *

The Amazon Resource Name (ARN) of the certificate. You can use the ARN as a * principal for policy operations.

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

The Amazon Resource Name (ARN) of the certificate. You can use the ARN as a * principal for policy operations.

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

The Amazon Resource Name (ARN) of the certificate. You can use the ARN as a * principal for policy operations.

*/ inline void SetCertificateArn(const char* value) { m_certificateArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the certificate. You can use the ARN as a * principal for policy operations.

*/ inline CreateCertificateFromCsrResult& WithCertificateArn(const Aws::String& value) { SetCertificateArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the certificate. You can use the ARN as a * principal for policy operations.

*/ inline CreateCertificateFromCsrResult& WithCertificateArn(Aws::String&& value) { SetCertificateArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the certificate. You can use the ARN as a * principal for policy operations.

*/ inline CreateCertificateFromCsrResult& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;} /** *

The ID of the certificate. Certificate management operations only take a * certificateId.

*/ inline const Aws::String& GetCertificateId() const{ return m_certificateId; } /** *

The ID of the certificate. Certificate management operations only take a * certificateId.

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

The ID of the certificate. Certificate management operations only take a * certificateId.

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

The ID of the certificate. Certificate management operations only take a * certificateId.

*/ inline void SetCertificateId(const char* value) { m_certificateId.assign(value); } /** *

The ID of the certificate. Certificate management operations only take a * certificateId.

*/ inline CreateCertificateFromCsrResult& WithCertificateId(const Aws::String& value) { SetCertificateId(value); return *this;} /** *

The ID of the certificate. Certificate management operations only take a * certificateId.

*/ inline CreateCertificateFromCsrResult& WithCertificateId(Aws::String&& value) { SetCertificateId(std::move(value)); return *this;} /** *

The ID of the certificate. Certificate management operations only take a * certificateId.

*/ inline CreateCertificateFromCsrResult& WithCertificateId(const char* value) { SetCertificateId(value); return *this;} /** *

The certificate data, in PEM format.

*/ inline const Aws::String& GetCertificatePem() const{ return m_certificatePem; } /** *

The certificate data, in PEM format.

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

The certificate data, in PEM format.

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

The certificate data, in PEM format.

*/ inline void SetCertificatePem(const char* value) { m_certificatePem.assign(value); } /** *

The certificate data, in PEM format.

*/ inline CreateCertificateFromCsrResult& WithCertificatePem(const Aws::String& value) { SetCertificatePem(value); return *this;} /** *

The certificate data, in PEM format.

*/ inline CreateCertificateFromCsrResult& WithCertificatePem(Aws::String&& value) { SetCertificatePem(std::move(value)); return *this;} /** *

The certificate data, in PEM format.

*/ inline CreateCertificateFromCsrResult& WithCertificatePem(const char* value) { SetCertificatePem(value); return *this;} private: Aws::String m_certificateArn; Aws::String m_certificateId; Aws::String m_certificatePem; }; } // namespace Model } // namespace IoT } // namespace Aws