/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace ElasticBeanstalk { namespace Model { /** *

The description of an Amazon EC2 instance.

See Also:

AWS * API Reference

*/ class Instance { public: AWS_ELASTICBEANSTALK_API Instance(); AWS_ELASTICBEANSTALK_API Instance(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICBEANSTALK_API Instance& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The ID of the Amazon EC2 instance.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The ID of the Amazon EC2 instance.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The ID of the Amazon EC2 instance.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The ID of the Amazon EC2 instance.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The ID of the Amazon EC2 instance.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The ID of the Amazon EC2 instance.

*/ inline Instance& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The ID of the Amazon EC2 instance.

*/ inline Instance& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The ID of the Amazon EC2 instance.

*/ inline Instance& WithId(const char* value) { SetId(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; }; } // namespace Model } // namespace ElasticBeanstalk } // namespace Aws