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

Contains a description of an Amazon EC2 instance from the Amazon EC2 metadata * service. For more information, see Instance * Metadata and User Data.

See Also:

AWS * API Reference

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

A JSON document that contains the metadata.

*/ inline const Aws::String& GetDocument() const{ return m_document; } /** *

A JSON document that contains the metadata.

*/ inline bool DocumentHasBeenSet() const { return m_documentHasBeenSet; } /** *

A JSON document that contains the metadata.

*/ inline void SetDocument(const Aws::String& value) { m_documentHasBeenSet = true; m_document = value; } /** *

A JSON document that contains the metadata.

*/ inline void SetDocument(Aws::String&& value) { m_documentHasBeenSet = true; m_document = std::move(value); } /** *

A JSON document that contains the metadata.

*/ inline void SetDocument(const char* value) { m_documentHasBeenSet = true; m_document.assign(value); } /** *

A JSON document that contains the metadata.

*/ inline InstanceIdentity& WithDocument(const Aws::String& value) { SetDocument(value); return *this;} /** *

A JSON document that contains the metadata.

*/ inline InstanceIdentity& WithDocument(Aws::String&& value) { SetDocument(std::move(value)); return *this;} /** *

A JSON document that contains the metadata.

*/ inline InstanceIdentity& WithDocument(const char* value) { SetDocument(value); return *this;} /** *

A signature that can be used to verify the document's accuracy and * authenticity.

*/ inline const Aws::String& GetSignature() const{ return m_signature; } /** *

A signature that can be used to verify the document's accuracy and * authenticity.

*/ inline bool SignatureHasBeenSet() const { return m_signatureHasBeenSet; } /** *

A signature that can be used to verify the document's accuracy and * authenticity.

*/ inline void SetSignature(const Aws::String& value) { m_signatureHasBeenSet = true; m_signature = value; } /** *

A signature that can be used to verify the document's accuracy and * authenticity.

*/ inline void SetSignature(Aws::String&& value) { m_signatureHasBeenSet = true; m_signature = std::move(value); } /** *

A signature that can be used to verify the document's accuracy and * authenticity.

*/ inline void SetSignature(const char* value) { m_signatureHasBeenSet = true; m_signature.assign(value); } /** *

A signature that can be used to verify the document's accuracy and * authenticity.

*/ inline InstanceIdentity& WithSignature(const Aws::String& value) { SetSignature(value); return *this;} /** *

A signature that can be used to verify the document's accuracy and * authenticity.

*/ inline InstanceIdentity& WithSignature(Aws::String&& value) { SetSignature(std::move(value)); return *this;} /** *

A signature that can be used to verify the document's accuracy and * authenticity.

*/ inline InstanceIdentity& WithSignature(const char* value) { SetSignature(value); return *this;} private: Aws::String m_document; bool m_documentHasBeenSet = false; Aws::String m_signature; bool m_signatureHasBeenSet = false; }; } // namespace Model } // namespace OpsWorks } // namespace Aws