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

Provides details for an Amazon Elastic Inference accelerator.

See * Also:

AWS * API Reference

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

The number of Elastic Inference accelerators to attach to the instance.

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

The number of Elastic Inference accelerators to attach to the instance.

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

The number of Elastic Inference accelerators to attach to the instance.

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

The number of Elastic Inference accelerators to attach to the instance.

*/ inline AwsEc2LaunchTemplateDataElasticInferenceAcceleratorSetDetails& WithCount(int value) { SetCount(value); return *this;} /** *

The type of Elastic Inference accelerator.

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

The type of Elastic Inference accelerator.

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

The type of Elastic Inference accelerator.

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

The type of Elastic Inference accelerator.

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

The type of Elastic Inference accelerator.

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

The type of Elastic Inference accelerator.

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

The type of Elastic Inference accelerator.

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

The type of Elastic Inference accelerator.

*/ inline AwsEc2LaunchTemplateDataElasticInferenceAcceleratorSetDetails& WithType(const char* value) { SetType(value); return *this;} private: int m_count; bool m_countHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws