/** * 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 Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Comprehend { namespace Model { /** *

Configuration required for an entity recognition model.

See * Also:

AWS * API Reference

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

Up to 25 entity types that the model is trained to recognize.

*/ inline const Aws::Vector& GetEntityTypes() const{ return m_entityTypes; } /** *

Up to 25 entity types that the model is trained to recognize.

*/ inline bool EntityTypesHasBeenSet() const { return m_entityTypesHasBeenSet; } /** *

Up to 25 entity types that the model is trained to recognize.

*/ inline void SetEntityTypes(const Aws::Vector& value) { m_entityTypesHasBeenSet = true; m_entityTypes = value; } /** *

Up to 25 entity types that the model is trained to recognize.

*/ inline void SetEntityTypes(Aws::Vector&& value) { m_entityTypesHasBeenSet = true; m_entityTypes = std::move(value); } /** *

Up to 25 entity types that the model is trained to recognize.

*/ inline EntityRecognitionConfig& WithEntityTypes(const Aws::Vector& value) { SetEntityTypes(value); return *this;} /** *

Up to 25 entity types that the model is trained to recognize.

*/ inline EntityRecognitionConfig& WithEntityTypes(Aws::Vector&& value) { SetEntityTypes(std::move(value)); return *this;} /** *

Up to 25 entity types that the model is trained to recognize.

*/ inline EntityRecognitionConfig& AddEntityTypes(const EntityTypesListItem& value) { m_entityTypesHasBeenSet = true; m_entityTypes.push_back(value); return *this; } /** *

Up to 25 entity types that the model is trained to recognize.

*/ inline EntityRecognitionConfig& AddEntityTypes(EntityTypesListItem&& value) { m_entityTypesHasBeenSet = true; m_entityTypes.push_back(std::move(value)); return *this; } private: Aws::Vector m_entityTypes; bool m_entityTypesHasBeenSet = false; }; } // namespace Model } // namespace Comprehend } // namespace Aws