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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

*/ inline DetectEntitiesV2Result& AddEntities(Entity&& value) { m_entities.push_back(std::move(value)); return *this; } /** *

Attributes extracted from the input text that couldn't be related to an * entity.

*/ inline const Aws::Vector& GetUnmappedAttributes() const{ return m_unmappedAttributes; } /** *

Attributes extracted from the input text that couldn't be related to an * entity.

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

Attributes extracted from the input text that couldn't be related to an * entity.

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

Attributes extracted from the input text that couldn't be related to an * entity.

*/ inline DetectEntitiesV2Result& WithUnmappedAttributes(const Aws::Vector& value) { SetUnmappedAttributes(value); return *this;} /** *

Attributes extracted from the input text that couldn't be related to an * entity.

*/ inline DetectEntitiesV2Result& WithUnmappedAttributes(Aws::Vector&& value) { SetUnmappedAttributes(std::move(value)); return *this;} /** *

Attributes extracted from the input text that couldn't be related to an * entity.

*/ inline DetectEntitiesV2Result& AddUnmappedAttributes(const UnmappedAttribute& value) { m_unmappedAttributes.push_back(value); return *this; } /** *

Attributes extracted from the input text that couldn't be related to an * entity.

*/ inline DetectEntitiesV2Result& AddUnmappedAttributes(UnmappedAttribute&& value) { m_unmappedAttributes.push_back(std::move(value)); return *this; } /** *

If the result to the DetectEntitiesV2 operation was truncated, * include the PaginationToken to fetch the next page of entities.

*/ inline const Aws::String& GetPaginationToken() const{ return m_paginationToken; } /** *

If the result to the DetectEntitiesV2 operation was truncated, * include the PaginationToken to fetch the next page of entities.

*/ inline void SetPaginationToken(const Aws::String& value) { m_paginationToken = value; } /** *

If the result to the DetectEntitiesV2 operation was truncated, * include the PaginationToken to fetch the next page of entities.

*/ inline void SetPaginationToken(Aws::String&& value) { m_paginationToken = std::move(value); } /** *

If the result to the DetectEntitiesV2 operation was truncated, * include the PaginationToken to fetch the next page of entities.

*/ inline void SetPaginationToken(const char* value) { m_paginationToken.assign(value); } /** *

If the result to the DetectEntitiesV2 operation was truncated, * include the PaginationToken to fetch the next page of entities.

*/ inline DetectEntitiesV2Result& WithPaginationToken(const Aws::String& value) { SetPaginationToken(value); return *this;} /** *

If the result to the DetectEntitiesV2 operation was truncated, * include the PaginationToken to fetch the next page of entities.

*/ inline DetectEntitiesV2Result& WithPaginationToken(Aws::String&& value) { SetPaginationToken(std::move(value)); return *this;} /** *

If the result to the DetectEntitiesV2 operation was truncated, * include the PaginationToken to fetch the next page of entities.

*/ inline DetectEntitiesV2Result& WithPaginationToken(const char* value) { SetPaginationToken(value); return *this;} /** *

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.

*/ inline const Aws::String& GetModelVersion() const{ return m_modelVersion; } /** *

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.

*/ inline void SetModelVersion(const Aws::String& value) { m_modelVersion = value; } /** *

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.

*/ inline void SetModelVersion(Aws::String&& value) { m_modelVersion = std::move(value); } /** *

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.

*/ inline void SetModelVersion(const char* value) { m_modelVersion.assign(value); } /** *

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.

*/ inline DetectEntitiesV2Result& WithModelVersion(const Aws::String& value) { SetModelVersion(value); return *this;} /** *

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.

*/ inline DetectEntitiesV2Result& WithModelVersion(Aws::String&& value) { SetModelVersion(std::move(value)); return *this;} /** *

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.

*/ inline DetectEntitiesV2Result& WithModelVersion(const char* value) { SetModelVersion(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DetectEntitiesV2Result& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DetectEntitiesV2Result& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DetectEntitiesV2Result& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_entities; Aws::Vector m_unmappedAttributes; Aws::String m_paginationToken; Aws::String m_modelVersion; Aws::String m_requestId; }; } // namespace Model } // namespace ComprehendMedical } // namespace Aws