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

Describes an instance running on a Dedicated Host.

See Also:

* AWS * API Reference

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

The ID of instance that is running on the Dedicated Host.

*/ inline const Aws::String& GetInstanceId() const{ return m_instanceId; } /** *

The ID of instance that is running on the Dedicated Host.

*/ inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; } /** *

The ID of instance that is running on the Dedicated Host.

*/ inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; } /** *

The ID of instance that is running on the Dedicated Host.

*/ inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); } /** *

The ID of instance that is running on the Dedicated Host.

*/ inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); } /** *

The ID of instance that is running on the Dedicated Host.

*/ inline HostInstance& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} /** *

The ID of instance that is running on the Dedicated Host.

*/ inline HostInstance& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} /** *

The ID of instance that is running on the Dedicated Host.

*/ inline HostInstance& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} /** *

The instance type (for example, m3.medium) of the running * instance.

*/ inline const Aws::String& GetInstanceType() const{ return m_instanceType; } /** *

The instance type (for example, m3.medium) of the running * instance.

*/ inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; } /** *

The instance type (for example, m3.medium) of the running * instance.

*/ inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; } /** *

The instance type (for example, m3.medium) of the running * instance.

*/ inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); } /** *

The instance type (for example, m3.medium) of the running * instance.

*/ inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); } /** *

The instance type (for example, m3.medium) of the running * instance.

*/ inline HostInstance& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;} /** *

The instance type (for example, m3.medium) of the running * instance.

*/ inline HostInstance& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;} /** *

The instance type (for example, m3.medium) of the running * instance.

*/ inline HostInstance& WithInstanceType(const char* value) { SetInstanceType(value); return *this;} /** *

The ID of the Amazon Web Services account that owns the instance.

*/ inline const Aws::String& GetOwnerId() const{ return m_ownerId; } /** *

The ID of the Amazon Web Services account that owns the instance.

*/ inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; } /** *

The ID of the Amazon Web Services account that owns the instance.

*/ inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; } /** *

The ID of the Amazon Web Services account that owns the instance.

*/ inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); } /** *

The ID of the Amazon Web Services account that owns the instance.

*/ inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); } /** *

The ID of the Amazon Web Services account that owns the instance.

*/ inline HostInstance& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;} /** *

The ID of the Amazon Web Services account that owns the instance.

*/ inline HostInstance& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;} /** *

The ID of the Amazon Web Services account that owns the instance.

*/ inline HostInstance& WithOwnerId(const char* value) { SetOwnerId(value); return *this;} private: Aws::String m_instanceId; bool m_instanceIdHasBeenSet = false; Aws::String m_instanceType; bool m_instanceTypeHasBeenSet = false; Aws::String m_ownerId; bool m_ownerIdHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws