/** * 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 elastic inference accelerator.

See Also:

AWS * API Reference

*/ class ElasticInferenceAccelerator { public: AWS_EC2_API ElasticInferenceAccelerator(); AWS_EC2_API ElasticInferenceAccelerator(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API ElasticInferenceAccelerator& 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 type of elastic inference accelerator. The possible values are * eia1.medium, eia1.large, eia1.xlarge, * eia2.medium, eia2.large, and eia2.xlarge. *

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The type of elastic inference accelerator. The possible values are * eia1.medium, eia1.large, eia1.xlarge, * eia2.medium, eia2.large, and eia2.xlarge. *

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of elastic inference accelerator. The possible values are * eia1.medium, eia1.large, eia1.xlarge, * eia2.medium, eia2.large, and eia2.xlarge. *

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of elastic inference accelerator. The possible values are * eia1.medium, eia1.large, eia1.xlarge, * eia2.medium, eia2.large, and eia2.xlarge. *

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of elastic inference accelerator. The possible values are * eia1.medium, eia1.large, eia1.xlarge, * eia2.medium, eia2.large, and eia2.xlarge. *

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The type of elastic inference accelerator. The possible values are * eia1.medium, eia1.large, eia1.xlarge, * eia2.medium, eia2.large, and eia2.xlarge. *

*/ inline ElasticInferenceAccelerator& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

The type of elastic inference accelerator. The possible values are * eia1.medium, eia1.large, eia1.xlarge, * eia2.medium, eia2.large, and eia2.xlarge. *

*/ inline ElasticInferenceAccelerator& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

The type of elastic inference accelerator. The possible values are * eia1.medium, eia1.large, eia1.xlarge, * eia2.medium, eia2.large, and eia2.xlarge. *

*/ inline ElasticInferenceAccelerator& WithType(const char* value) { SetType(value); return *this;} /** *

The number of elastic inference accelerators to attach to the instance.

*

Default: 1

*/ inline int GetCount() const{ return m_count; } /** *

The number of elastic inference accelerators to attach to the instance.

*

Default: 1

*/ inline bool CountHasBeenSet() const { return m_countHasBeenSet; } /** *

The number of elastic inference accelerators to attach to the instance.

*

Default: 1

*/ inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; } /** *

The number of elastic inference accelerators to attach to the instance.

*

Default: 1

*/ inline ElasticInferenceAccelerator& WithCount(int value) { SetCount(value); return *this;} private: Aws::String m_type; bool m_typeHasBeenSet = false; int m_count; bool m_countHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws