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

Describes the certificate chain being used when code signing a * file.

See Also:

AWS * API Reference

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

The name of the certificate.

*/ inline const Aws::String& GetCertificateName() const{ return m_certificateName; } /** *

The name of the certificate.

*/ inline bool CertificateNameHasBeenSet() const { return m_certificateNameHasBeenSet; } /** *

The name of the certificate.

*/ inline void SetCertificateName(const Aws::String& value) { m_certificateNameHasBeenSet = true; m_certificateName = value; } /** *

The name of the certificate.

*/ inline void SetCertificateName(Aws::String&& value) { m_certificateNameHasBeenSet = true; m_certificateName = std::move(value); } /** *

The name of the certificate.

*/ inline void SetCertificateName(const char* value) { m_certificateNameHasBeenSet = true; m_certificateName.assign(value); } /** *

The name of the certificate.

*/ inline CodeSigningCertificateChain& WithCertificateName(const Aws::String& value) { SetCertificateName(value); return *this;} /** *

The name of the certificate.

*/ inline CodeSigningCertificateChain& WithCertificateName(Aws::String&& value) { SetCertificateName(std::move(value)); return *this;} /** *

The name of the certificate.

*/ inline CodeSigningCertificateChain& WithCertificateName(const char* value) { SetCertificateName(value); return *this;} /** *

A base64 encoded binary representation of the code signing certificate * chain.

*/ inline const Aws::String& GetInlineDocument() const{ return m_inlineDocument; } /** *

A base64 encoded binary representation of the code signing certificate * chain.

*/ inline bool InlineDocumentHasBeenSet() const { return m_inlineDocumentHasBeenSet; } /** *

A base64 encoded binary representation of the code signing certificate * chain.

*/ inline void SetInlineDocument(const Aws::String& value) { m_inlineDocumentHasBeenSet = true; m_inlineDocument = value; } /** *

A base64 encoded binary representation of the code signing certificate * chain.

*/ inline void SetInlineDocument(Aws::String&& value) { m_inlineDocumentHasBeenSet = true; m_inlineDocument = std::move(value); } /** *

A base64 encoded binary representation of the code signing certificate * chain.

*/ inline void SetInlineDocument(const char* value) { m_inlineDocumentHasBeenSet = true; m_inlineDocument.assign(value); } /** *

A base64 encoded binary representation of the code signing certificate * chain.

*/ inline CodeSigningCertificateChain& WithInlineDocument(const Aws::String& value) { SetInlineDocument(value); return *this;} /** *

A base64 encoded binary representation of the code signing certificate * chain.

*/ inline CodeSigningCertificateChain& WithInlineDocument(Aws::String&& value) { SetInlineDocument(std::move(value)); return *this;} /** *

A base64 encoded binary representation of the code signing certificate * chain.

*/ inline CodeSigningCertificateChain& WithInlineDocument(const char* value) { SetInlineDocument(value); return *this;} private: Aws::String m_certificateName; bool m_certificateNameHasBeenSet = false; Aws::String m_inlineDocument; bool m_inlineDocumentHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws