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

Identity information for the EC2 instance that is hosting the task runner. * You can get this value by calling a metadata URI from the EC2 instance. For more * information, see Instance * Metadata in the Amazon Elastic Compute Cloud User Guide. Passing in * this value proves that your task runner is running on an EC2 instance, and * ensures the proper AWS Data Pipeline service charges are applied to your * pipeline.

See Also:

AWS * API Reference

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

A description of an EC2 instance that is generated when the instance is * launched and exposed to the instance via the instance metadata service in the * form of a JSON representation of an object.

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

A description of an EC2 instance that is generated when the instance is * launched and exposed to the instance via the instance metadata service in the * form of a JSON representation of an object.

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

A description of an EC2 instance that is generated when the instance is * launched and exposed to the instance via the instance metadata service in the * form of a JSON representation of an object.

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

A description of an EC2 instance that is generated when the instance is * launched and exposed to the instance via the instance metadata service in the * form of a JSON representation of an object.

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

A description of an EC2 instance that is generated when the instance is * launched and exposed to the instance via the instance metadata service in the * form of a JSON representation of an object.

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

A description of an EC2 instance that is generated when the instance is * launched and exposed to the instance via the instance metadata service in the * form of a JSON representation of an object.

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

A description of an EC2 instance that is generated when the instance is * launched and exposed to the instance via the instance metadata service in the * form of a JSON representation of an object.

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

A description of an EC2 instance that is generated when the instance is * launched and exposed to the instance via the instance metadata service in the * form of a JSON representation of an object.

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

A signature which can be used to verify the accuracy and authenticity of the * information provided in the instance identity document.

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

A signature which can be used to verify the accuracy and authenticity of the * information provided in the instance identity document.

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

A signature which can be used to verify the accuracy and authenticity of the * information provided in the instance identity document.

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

A signature which can be used to verify the accuracy and authenticity of the * information provided in the instance identity document.

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

A signature which can be used to verify the accuracy and authenticity of the * information provided in the instance identity document.

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

A signature which can be used to verify the accuracy and authenticity of the * information provided in the instance identity document.

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

A signature which can be used to verify the accuracy and authenticity of the * information provided in the instance identity document.

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

A signature which can be used to verify the accuracy and authenticity of the * information provided in the instance identity document.

*/ 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 DataPipeline } // namespace Aws