/** * 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 the properties of a Dedicated Host.

See Also:

AWS * API Reference

*/ class HostProperties { public: AWS_EC2_API HostProperties(); AWS_EC2_API HostProperties(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API HostProperties& 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 number of cores on the Dedicated Host.

*/ inline int GetCores() const{ return m_cores; } /** *

The number of cores on the Dedicated Host.

*/ inline bool CoresHasBeenSet() const { return m_coresHasBeenSet; } /** *

The number of cores on the Dedicated Host.

*/ inline void SetCores(int value) { m_coresHasBeenSet = true; m_cores = value; } /** *

The number of cores on the Dedicated Host.

*/ inline HostProperties& WithCores(int value) { SetCores(value); return *this;} /** *

The instance type supported by the Dedicated Host. For example, * m5.large. If the host supports multiple instance types, no * instanceType is returned.

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

The instance type supported by the Dedicated Host. For example, * m5.large. If the host supports multiple instance types, no * instanceType is returned.

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

The instance type supported by the Dedicated Host. For example, * m5.large. If the host supports multiple instance types, no * instanceType is returned.

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

The instance type supported by the Dedicated Host. For example, * m5.large. If the host supports multiple instance types, no * instanceType is returned.

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

The instance type supported by the Dedicated Host. For example, * m5.large. If the host supports multiple instance types, no * instanceType is returned.

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

The instance type supported by the Dedicated Host. For example, * m5.large. If the host supports multiple instance types, no * instanceType is returned.

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

The instance type supported by the Dedicated Host. For example, * m5.large. If the host supports multiple instance types, no * instanceType is returned.

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

The instance type supported by the Dedicated Host. For example, * m5.large. If the host supports multiple instance types, no * instanceType is returned.

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

The instance family supported by the Dedicated Host. For example, * m5.

*/ inline const Aws::String& GetInstanceFamily() const{ return m_instanceFamily; } /** *

The instance family supported by the Dedicated Host. For example, * m5.

*/ inline bool InstanceFamilyHasBeenSet() const { return m_instanceFamilyHasBeenSet; } /** *

The instance family supported by the Dedicated Host. For example, * m5.

*/ inline void SetInstanceFamily(const Aws::String& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = value; } /** *

The instance family supported by the Dedicated Host. For example, * m5.

*/ inline void SetInstanceFamily(Aws::String&& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = std::move(value); } /** *

The instance family supported by the Dedicated Host. For example, * m5.

*/ inline void SetInstanceFamily(const char* value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily.assign(value); } /** *

The instance family supported by the Dedicated Host. For example, * m5.

*/ inline HostProperties& WithInstanceFamily(const Aws::String& value) { SetInstanceFamily(value); return *this;} /** *

The instance family supported by the Dedicated Host. For example, * m5.

*/ inline HostProperties& WithInstanceFamily(Aws::String&& value) { SetInstanceFamily(std::move(value)); return *this;} /** *

The instance family supported by the Dedicated Host. For example, * m5.

*/ inline HostProperties& WithInstanceFamily(const char* value) { SetInstanceFamily(value); return *this;} /** *

The number of sockets on the Dedicated Host.

*/ inline int GetSockets() const{ return m_sockets; } /** *

The number of sockets on the Dedicated Host.

*/ inline bool SocketsHasBeenSet() const { return m_socketsHasBeenSet; } /** *

The number of sockets on the Dedicated Host.

*/ inline void SetSockets(int value) { m_socketsHasBeenSet = true; m_sockets = value; } /** *

The number of sockets on the Dedicated Host.

*/ inline HostProperties& WithSockets(int value) { SetSockets(value); return *this;} /** *

The total number of vCPUs on the Dedicated Host.

*/ inline int GetTotalVCpus() const{ return m_totalVCpus; } /** *

The total number of vCPUs on the Dedicated Host.

*/ inline bool TotalVCpusHasBeenSet() const { return m_totalVCpusHasBeenSet; } /** *

The total number of vCPUs on the Dedicated Host.

*/ inline void SetTotalVCpus(int value) { m_totalVCpusHasBeenSet = true; m_totalVCpus = value; } /** *

The total number of vCPUs on the Dedicated Host.

*/ inline HostProperties& WithTotalVCpus(int value) { SetTotalVCpus(value); return *this;} private: int m_cores; bool m_coresHasBeenSet = false; Aws::String m_instanceType; bool m_instanceTypeHasBeenSet = false; Aws::String m_instanceFamily; bool m_instanceFamilyHasBeenSet = false; int m_sockets; bool m_socketsHasBeenSet = false; int m_totalVCpus; bool m_totalVCpusHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws