251 lines
11 KiB
C++
251 lines
11 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/comprehendmedical/model/Entity.h>
|
|
#include <aws/comprehendmedical/model/UnmappedAttribute.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
template<typename RESULT_TYPE>
|
|
class AmazonWebServiceResult;
|
|
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace ComprehendMedical
|
|
{
|
|
namespace Model
|
|
{
|
|
class AWS_COMPREHENDMEDICAL_API DetectEntitiesV2Result
|
|
{
|
|
public:
|
|
DetectEntitiesV2Result();
|
|
DetectEntitiesV2Result(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|
DetectEntitiesV2Result& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|
|
|
|
|
/**
|
|
* <p>The collection of medical entities extracted from the input text and their
|
|
* associated information. For each entity, the response provides the entity text,
|
|
* the entity category, where the entity text begins and ends, and the level of
|
|
* confidence in the detection and analysis. Attributes and traits of the entity
|
|
* are also returned.</p>
|
|
*/
|
|
inline const Aws::Vector<Entity>& GetEntities() const{ return m_entities; }
|
|
|
|
/**
|
|
* <p>The collection of medical entities extracted from the input text and their
|
|
* associated information. For each entity, the response provides the entity text,
|
|
* the entity category, where the entity text begins and ends, and the level of
|
|
* confidence in the detection and analysis. Attributes and traits of the entity
|
|
* are also returned.</p>
|
|
*/
|
|
inline void SetEntities(const Aws::Vector<Entity>& value) { m_entities = value; }
|
|
|
|
/**
|
|
* <p>The collection of medical entities extracted from the input text and their
|
|
* associated information. For each entity, the response provides the entity text,
|
|
* the entity category, where the entity text begins and ends, and the level of
|
|
* confidence in the detection and analysis. Attributes and traits of the entity
|
|
* are also returned.</p>
|
|
*/
|
|
inline void SetEntities(Aws::Vector<Entity>&& value) { m_entities = std::move(value); }
|
|
|
|
/**
|
|
* <p>The collection of medical entities extracted from the input text and their
|
|
* associated information. For each entity, the response provides the entity text,
|
|
* the entity category, where the entity text begins and ends, and the level of
|
|
* confidence in the detection and analysis. Attributes and traits of the entity
|
|
* are also returned.</p>
|
|
*/
|
|
inline DetectEntitiesV2Result& WithEntities(const Aws::Vector<Entity>& value) { SetEntities(value); return *this;}
|
|
|
|
/**
|
|
* <p>The collection of medical entities extracted from the input text and their
|
|
* associated information. For each entity, the response provides the entity text,
|
|
* the entity category, where the entity text begins and ends, and the level of
|
|
* confidence in the detection and analysis. Attributes and traits of the entity
|
|
* are also returned.</p>
|
|
*/
|
|
inline DetectEntitiesV2Result& WithEntities(Aws::Vector<Entity>&& value) { SetEntities(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The collection of medical entities extracted from the input text and their
|
|
* associated information. For each entity, the response provides the entity text,
|
|
* the entity category, where the entity text begins and ends, and the level of
|
|
* confidence in the detection and analysis. Attributes and traits of the entity
|
|
* are also returned.</p>
|
|
*/
|
|
inline DetectEntitiesV2Result& AddEntities(const Entity& value) { m_entities.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>The collection of medical entities extracted from the input text and their
|
|
* associated information. For each entity, the response provides the entity text,
|
|
* the entity category, where the entity text begins and ends, and the level of
|
|
* confidence in the detection and analysis. Attributes and traits of the entity
|
|
* are also returned.</p>
|
|
*/
|
|
inline DetectEntitiesV2Result& AddEntities(Entity&& value) { m_entities.push_back(std::move(value)); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>Attributes extracted from the input text that couldn't be related to an
|
|
* entity.</p>
|
|
*/
|
|
inline const Aws::Vector<UnmappedAttribute>& GetUnmappedAttributes() const{ return m_unmappedAttributes; }
|
|
|
|
/**
|
|
* <p>Attributes extracted from the input text that couldn't be related to an
|
|
* entity.</p>
|
|
*/
|
|
inline void SetUnmappedAttributes(const Aws::Vector<UnmappedAttribute>& value) { m_unmappedAttributes = value; }
|
|
|
|
/**
|
|
* <p>Attributes extracted from the input text that couldn't be related to an
|
|
* entity.</p>
|
|
*/
|
|
inline void SetUnmappedAttributes(Aws::Vector<UnmappedAttribute>&& value) { m_unmappedAttributes = std::move(value); }
|
|
|
|
/**
|
|
* <p>Attributes extracted from the input text that couldn't be related to an
|
|
* entity.</p>
|
|
*/
|
|
inline DetectEntitiesV2Result& WithUnmappedAttributes(const Aws::Vector<UnmappedAttribute>& value) { SetUnmappedAttributes(value); return *this;}
|
|
|
|
/**
|
|
* <p>Attributes extracted from the input text that couldn't be related to an
|
|
* entity.</p>
|
|
*/
|
|
inline DetectEntitiesV2Result& WithUnmappedAttributes(Aws::Vector<UnmappedAttribute>&& value) { SetUnmappedAttributes(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>Attributes extracted from the input text that couldn't be related to an
|
|
* entity.</p>
|
|
*/
|
|
inline DetectEntitiesV2Result& AddUnmappedAttributes(const UnmappedAttribute& value) { m_unmappedAttributes.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>Attributes extracted from the input text that couldn't be related to an
|
|
* entity.</p>
|
|
*/
|
|
inline DetectEntitiesV2Result& AddUnmappedAttributes(UnmappedAttribute&& value) { m_unmappedAttributes.push_back(std::move(value)); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>If the result to the <code>DetectEntitiesV2</code> operation was truncated,
|
|
* include the <code>PaginationToken</code> to fetch the next page of entities.</p>
|
|
*/
|
|
inline const Aws::String& GetPaginationToken() const{ return m_paginationToken; }
|
|
|
|
/**
|
|
* <p>If the result to the <code>DetectEntitiesV2</code> operation was truncated,
|
|
* include the <code>PaginationToken</code> to fetch the next page of entities.</p>
|
|
*/
|
|
inline void SetPaginationToken(const Aws::String& value) { m_paginationToken = value; }
|
|
|
|
/**
|
|
* <p>If the result to the <code>DetectEntitiesV2</code> operation was truncated,
|
|
* include the <code>PaginationToken</code> to fetch the next page of entities.</p>
|
|
*/
|
|
inline void SetPaginationToken(Aws::String&& value) { m_paginationToken = std::move(value); }
|
|
|
|
/**
|
|
* <p>If the result to the <code>DetectEntitiesV2</code> operation was truncated,
|
|
* include the <code>PaginationToken</code> to fetch the next page of entities.</p>
|
|
*/
|
|
inline void SetPaginationToken(const char* value) { m_paginationToken.assign(value); }
|
|
|
|
/**
|
|
* <p>If the result to the <code>DetectEntitiesV2</code> operation was truncated,
|
|
* include the <code>PaginationToken</code> to fetch the next page of entities.</p>
|
|
*/
|
|
inline DetectEntitiesV2Result& WithPaginationToken(const Aws::String& value) { SetPaginationToken(value); return *this;}
|
|
|
|
/**
|
|
* <p>If the result to the <code>DetectEntitiesV2</code> operation was truncated,
|
|
* include the <code>PaginationToken</code> to fetch the next page of entities.</p>
|
|
*/
|
|
inline DetectEntitiesV2Result& WithPaginationToken(Aws::String&& value) { SetPaginationToken(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>If the result to the <code>DetectEntitiesV2</code> operation was truncated,
|
|
* include the <code>PaginationToken</code> to fetch the next page of entities.</p>
|
|
*/
|
|
inline DetectEntitiesV2Result& WithPaginationToken(const char* value) { SetPaginationToken(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The version of the model used to analyze the documents. The version number
|
|
* looks like X.X.X. You can use this information to track the model used for a
|
|
* particular batch of documents.</p>
|
|
*/
|
|
inline const Aws::String& GetModelVersion() const{ return m_modelVersion; }
|
|
|
|
/**
|
|
* <p>The version of the model used to analyze the documents. The version number
|
|
* looks like X.X.X. You can use this information to track the model used for a
|
|
* particular batch of documents.</p>
|
|
*/
|
|
inline void SetModelVersion(const Aws::String& value) { m_modelVersion = value; }
|
|
|
|
/**
|
|
* <p>The version of the model used to analyze the documents. The version number
|
|
* looks like X.X.X. You can use this information to track the model used for a
|
|
* particular batch of documents.</p>
|
|
*/
|
|
inline void SetModelVersion(Aws::String&& value) { m_modelVersion = std::move(value); }
|
|
|
|
/**
|
|
* <p>The version of the model used to analyze the documents. The version number
|
|
* looks like X.X.X. You can use this information to track the model used for a
|
|
* particular batch of documents.</p>
|
|
*/
|
|
inline void SetModelVersion(const char* value) { m_modelVersion.assign(value); }
|
|
|
|
/**
|
|
* <p>The version of the model used to analyze the documents. The version number
|
|
* looks like X.X.X. You can use this information to track the model used for a
|
|
* particular batch of documents.</p>
|
|
*/
|
|
inline DetectEntitiesV2Result& WithModelVersion(const Aws::String& value) { SetModelVersion(value); return *this;}
|
|
|
|
/**
|
|
* <p>The version of the model used to analyze the documents. The version number
|
|
* looks like X.X.X. You can use this information to track the model used for a
|
|
* particular batch of documents.</p>
|
|
*/
|
|
inline DetectEntitiesV2Result& WithModelVersion(Aws::String&& value) { SetModelVersion(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The version of the model used to analyze the documents. The version number
|
|
* looks like X.X.X. You can use this information to track the model used for a
|
|
* particular batch of documents.</p>
|
|
*/
|
|
inline DetectEntitiesV2Result& WithModelVersion(const char* value) { SetModelVersion(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::Vector<Entity> m_entities;
|
|
|
|
Aws::Vector<UnmappedAttribute> m_unmappedAttributes;
|
|
|
|
Aws::String m_paginationToken;
|
|
|
|
Aws::String m_modelVersion;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace ComprehendMedical
|
|
} // namespace Aws
|