/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 DetectPHIResult { public: AWS_COMPREHENDMEDICAL_API DetectPHIResult(); AWS_COMPREHENDMEDICAL_API DetectPHIResult(const Aws::AmazonWebServiceResult& result); AWS_COMPREHENDMEDICAL_API DetectPHIResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The collection of PHI 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 that Amazon Comprehend Medical has in its detection.

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

The collection of PHI 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 that Amazon Comprehend Medical has in its detection.

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

The collection of PHI 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 that Amazon Comprehend Medical has in its detection.

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

The collection of PHI 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 that Amazon Comprehend Medical has in its detection.

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

The collection of PHI 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 that Amazon Comprehend Medical has in its detection.

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

The collection of PHI 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 that Amazon Comprehend Medical has in its detection.

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

The collection of PHI 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 that Amazon Comprehend Medical has in its detection.

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

If the result of the previous request to DetectPHI was * truncated, include the PaginationToken to fetch the next page of * PHI entities.

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

If the result of the previous request to DetectPHI was * truncated, include the PaginationToken to fetch the next page of * PHI entities.

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

If the result of the previous request to DetectPHI was * truncated, include the PaginationToken to fetch the next page of * PHI entities.

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

If the result of the previous request to DetectPHI was * truncated, include the PaginationToken to fetch the next page of * PHI entities.

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

If the result of the previous request to DetectPHI was * truncated, include the PaginationToken to fetch the next page of * PHI entities.

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

If the result of the previous request to DetectPHI was * truncated, include the PaginationToken to fetch the next page of * PHI entities.

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

If the result of the previous request to DetectPHI was * truncated, include the PaginationToken to fetch the next page of * PHI entities.

*/ inline DetectPHIResult& 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 DetectPHIResult& 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 DetectPHIResult& 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 DetectPHIResult& 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 DetectPHIResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DetectPHIResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DetectPHIResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_entities; Aws::String m_paginationToken; Aws::String m_modelVersion; Aws::String m_requestId; }; } // namespace Model } // namespace ComprehendMedical } // namespace Aws