/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Comprehend { namespace Model { class AWS_COMPREHEND_API DetectEntitiesResult { public: DetectEntitiesResult(); DetectEntitiesResult(const Aws::AmazonWebServiceResult& result); DetectEntitiesResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A collection of entities identified in the input text. For each entity, the * response provides the entity text, entity type, where the entity text begins and * ends, and the level of confidence that Amazon Comprehend has in the detection. *

If your request uses a custom entity recognition model, Amazon * Comprehend detects the entities that the model is trained to recognize. * Otherwise, it detects the default entity types. For a list of default entity * types, see how-entities.

*/ inline const Aws::Vector& GetEntities() const{ return m_entities; } /** *

A collection of entities identified in the input text. For each entity, the * response provides the entity text, entity type, where the entity text begins and * ends, and the level of confidence that Amazon Comprehend has in the detection. *

If your request uses a custom entity recognition model, Amazon * Comprehend detects the entities that the model is trained to recognize. * Otherwise, it detects the default entity types. For a list of default entity * types, see how-entities.

*/ inline void SetEntities(const Aws::Vector& value) { m_entities = value; } /** *

A collection of entities identified in the input text. For each entity, the * response provides the entity text, entity type, where the entity text begins and * ends, and the level of confidence that Amazon Comprehend has in the detection. *

If your request uses a custom entity recognition model, Amazon * Comprehend detects the entities that the model is trained to recognize. * Otherwise, it detects the default entity types. For a list of default entity * types, see how-entities.

*/ inline void SetEntities(Aws::Vector&& value) { m_entities = std::move(value); } /** *

A collection of entities identified in the input text. For each entity, the * response provides the entity text, entity type, where the entity text begins and * ends, and the level of confidence that Amazon Comprehend has in the detection. *

If your request uses a custom entity recognition model, Amazon * Comprehend detects the entities that the model is trained to recognize. * Otherwise, it detects the default entity types. For a list of default entity * types, see how-entities.

*/ inline DetectEntitiesResult& WithEntities(const Aws::Vector& value) { SetEntities(value); return *this;} /** *

A collection of entities identified in the input text. For each entity, the * response provides the entity text, entity type, where the entity text begins and * ends, and the level of confidence that Amazon Comprehend has in the detection. *

If your request uses a custom entity recognition model, Amazon * Comprehend detects the entities that the model is trained to recognize. * Otherwise, it detects the default entity types. For a list of default entity * types, see how-entities.

*/ inline DetectEntitiesResult& WithEntities(Aws::Vector&& value) { SetEntities(std::move(value)); return *this;} /** *

A collection of entities identified in the input text. For each entity, the * response provides the entity text, entity type, where the entity text begins and * ends, and the level of confidence that Amazon Comprehend has in the detection. *

If your request uses a custom entity recognition model, Amazon * Comprehend detects the entities that the model is trained to recognize. * Otherwise, it detects the default entity types. For a list of default entity * types, see how-entities.

*/ inline DetectEntitiesResult& AddEntities(const Entity& value) { m_entities.push_back(value); return *this; } /** *

A collection of entities identified in the input text. For each entity, the * response provides the entity text, entity type, where the entity text begins and * ends, and the level of confidence that Amazon Comprehend has in the detection. *

If your request uses a custom entity recognition model, Amazon * Comprehend detects the entities that the model is trained to recognize. * Otherwise, it detects the default entity types. For a list of default entity * types, see how-entities.

*/ inline DetectEntitiesResult& AddEntities(Entity&& value) { m_entities.push_back(std::move(value)); return *this; } private: Aws::Vector m_entities; }; } // namespace Model } // namespace Comprehend } // namespace Aws