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

A throughput entry for an Elastic Inference Accelerator type.

See * Also:

AWS * API Reference

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

The throughput value of the Elastic Inference Accelerator type. It can * assume the following values: TFLOPS16bit: the throughput expressed in 16bit * TeraFLOPS. TFLOPS32bit: the throughput expressed in 32bit TeraFLOPS.

*/ inline const Aws::String& GetKey() const{ return m_key; } /** *

The throughput value of the Elastic Inference Accelerator type. It can * assume the following values: TFLOPS16bit: the throughput expressed in 16bit * TeraFLOPS. TFLOPS32bit: the throughput expressed in 32bit TeraFLOPS.

*/ inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; } /** *

The throughput value of the Elastic Inference Accelerator type. It can * assume the following values: TFLOPS16bit: the throughput expressed in 16bit * TeraFLOPS. TFLOPS32bit: the throughput expressed in 32bit TeraFLOPS.

*/ inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; } /** *

The throughput value of the Elastic Inference Accelerator type. It can * assume the following values: TFLOPS16bit: the throughput expressed in 16bit * TeraFLOPS. TFLOPS32bit: the throughput expressed in 32bit TeraFLOPS.

*/ inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); } /** *

The throughput value of the Elastic Inference Accelerator type. It can * assume the following values: TFLOPS16bit: the throughput expressed in 16bit * TeraFLOPS. TFLOPS32bit: the throughput expressed in 32bit TeraFLOPS.

*/ inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); } /** *

The throughput value of the Elastic Inference Accelerator type. It can * assume the following values: TFLOPS16bit: the throughput expressed in 16bit * TeraFLOPS. TFLOPS32bit: the throughput expressed in 32bit TeraFLOPS.

*/ inline KeyValuePair& WithKey(const Aws::String& value) { SetKey(value); return *this;} /** *

The throughput value of the Elastic Inference Accelerator type. It can * assume the following values: TFLOPS16bit: the throughput expressed in 16bit * TeraFLOPS. TFLOPS32bit: the throughput expressed in 32bit TeraFLOPS.

*/ inline KeyValuePair& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;} /** *

The throughput value of the Elastic Inference Accelerator type. It can * assume the following values: TFLOPS16bit: the throughput expressed in 16bit * TeraFLOPS. TFLOPS32bit: the throughput expressed in 32bit TeraFLOPS.

*/ inline KeyValuePair& WithKey(const char* value) { SetKey(value); return *this;} /** *

The throughput value of the Elastic Inference Accelerator type.

*/ inline int GetValue() const{ return m_value; } /** *

The throughput value of the Elastic Inference Accelerator type.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The throughput value of the Elastic Inference Accelerator type.

*/ inline void SetValue(int value) { m_valueHasBeenSet = true; m_value = value; } /** *

The throughput value of the Elastic Inference Accelerator type.

*/ inline KeyValuePair& WithValue(int value) { SetValue(value); return *this;} private: Aws::String m_key; bool m_keyHasBeenSet = false; int m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace ElasticInference } // namespace Aws