121 lines
5.5 KiB
C++
121 lines
5.5 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/comprehend/Comprehend_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/comprehend/model/Entity.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
template<typename RESULT_TYPE>
|
|
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<Aws::Utils::Json::JsonValue>& result);
|
|
DetectEntitiesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|
|
|
|
|
/**
|
|
* <p>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.
|
|
* </p> <p>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 <a>how-entities</a>.</p>
|
|
*/
|
|
inline const Aws::Vector<Entity>& GetEntities() const{ return m_entities; }
|
|
|
|
/**
|
|
* <p>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.
|
|
* </p> <p>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 <a>how-entities</a>.</p>
|
|
*/
|
|
inline void SetEntities(const Aws::Vector<Entity>& value) { m_entities = value; }
|
|
|
|
/**
|
|
* <p>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.
|
|
* </p> <p>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 <a>how-entities</a>.</p>
|
|
*/
|
|
inline void SetEntities(Aws::Vector<Entity>&& value) { m_entities = std::move(value); }
|
|
|
|
/**
|
|
* <p>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.
|
|
* </p> <p>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 <a>how-entities</a>.</p>
|
|
*/
|
|
inline DetectEntitiesResult& WithEntities(const Aws::Vector<Entity>& value) { SetEntities(value); return *this;}
|
|
|
|
/**
|
|
* <p>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.
|
|
* </p> <p>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 <a>how-entities</a>.</p>
|
|
*/
|
|
inline DetectEntitiesResult& WithEntities(Aws::Vector<Entity>&& value) { SetEntities(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>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.
|
|
* </p> <p>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 <a>how-entities</a>.</p>
|
|
*/
|
|
inline DetectEntitiesResult& AddEntities(const Entity& value) { m_entities.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>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.
|
|
* </p> <p>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 <a>how-entities</a>.</p>
|
|
*/
|
|
inline DetectEntitiesResult& AddEntities(Entity&& value) { m_entities.push_back(std::move(value)); return *this; }
|
|
|
|
private:
|
|
|
|
Aws::Vector<Entity> m_entities;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace Comprehend
|
|
} // namespace Aws
|