/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Provides information about an extracted medical entity.See
* Also:
AWS
* API Reference
The numeric identifier for the entity. This is a monotonically increasing id * unique within this response rather than a global unique identifier.
*/ inline int GetId() const{ return m_id; } /** *The numeric identifier for the entity. This is a monotonically increasing id * unique within this response rather than a global unique identifier.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The numeric identifier for the entity. This is a monotonically increasing id * unique within this response rather than a global unique identifier.
*/ inline void SetId(int value) { m_idHasBeenSet = true; m_id = value; } /** *The numeric identifier for the entity. This is a monotonically increasing id * unique within this response rather than a global unique identifier.
*/ inline Entity& WithId(int value) { SetId(value); return *this;} /** *The 0-based character offset in the input text that shows where the entity * begins. The offset returns the UTF-8 code point in the string.
*/ inline int GetBeginOffset() const{ return m_beginOffset; } /** *The 0-based character offset in the input text that shows where the entity * begins. The offset returns the UTF-8 code point in the string.
*/ inline bool BeginOffsetHasBeenSet() const { return m_beginOffsetHasBeenSet; } /** *The 0-based character offset in the input text that shows where the entity * begins. The offset returns the UTF-8 code point in the string.
*/ inline void SetBeginOffset(int value) { m_beginOffsetHasBeenSet = true; m_beginOffset = value; } /** *The 0-based character offset in the input text that shows where the entity * begins. The offset returns the UTF-8 code point in the string.
*/ inline Entity& WithBeginOffset(int value) { SetBeginOffset(value); return *this;} /** *The 0-based character offset in the input text that shows where the entity * ends. The offset returns the UTF-8 code point in the string.
*/ inline int GetEndOffset() const{ return m_endOffset; } /** *The 0-based character offset in the input text that shows where the entity * ends. The offset returns the UTF-8 code point in the string.
*/ inline bool EndOffsetHasBeenSet() const { return m_endOffsetHasBeenSet; } /** *The 0-based character offset in the input text that shows where the entity * ends. The offset returns the UTF-8 code point in the string.
*/ inline void SetEndOffset(int value) { m_endOffsetHasBeenSet = true; m_endOffset = value; } /** *The 0-based character offset in the input text that shows where the entity * ends. The offset returns the UTF-8 code point in the string.
*/ inline Entity& WithEndOffset(int value) { SetEndOffset(value); return *this;} /** *The level of confidence that Amazon Comprehend Medical has in the accuracy of * the detection.
*/ inline double GetScore() const{ return m_score; } /** *The level of confidence that Amazon Comprehend Medical has in the accuracy of * the detection.
*/ inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; } /** *The level of confidence that Amazon Comprehend Medical has in the accuracy of * the detection.
*/ inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; } /** *The level of confidence that Amazon Comprehend Medical has in the accuracy of * the detection.
*/ inline Entity& WithScore(double value) { SetScore(value); return *this;} /** *The segment of input text extracted as this entity.
*/ inline const Aws::String& GetText() const{ return m_text; } /** *The segment of input text extracted as this entity.
*/ inline bool TextHasBeenSet() const { return m_textHasBeenSet; } /** *The segment of input text extracted as this entity.
*/ inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; } /** *The segment of input text extracted as this entity.
*/ inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); } /** *The segment of input text extracted as this entity.
*/ inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); } /** *The segment of input text extracted as this entity.
*/ inline Entity& WithText(const Aws::String& value) { SetText(value); return *this;} /** *The segment of input text extracted as this entity.
*/ inline Entity& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;} /** *The segment of input text extracted as this entity.
*/ inline Entity& WithText(const char* value) { SetText(value); return *this;} /** *The category of the entity.
*/ inline const EntityType& GetCategory() const{ return m_category; } /** *The category of the entity.
*/ inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; } /** *The category of the entity.
*/ inline void SetCategory(const EntityType& value) { m_categoryHasBeenSet = true; m_category = value; } /** *The category of the entity.
*/ inline void SetCategory(EntityType&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); } /** *The category of the entity.
*/ inline Entity& WithCategory(const EntityType& value) { SetCategory(value); return *this;} /** *The category of the entity.
*/ inline Entity& WithCategory(EntityType&& value) { SetCategory(std::move(value)); return *this;} /** *Describes the specific type of entity with category of entities.
*/ inline const EntitySubType& GetType() const{ return m_type; } /** *Describes the specific type of entity with category of entities.
*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *Describes the specific type of entity with category of entities.
*/ inline void SetType(const EntitySubType& value) { m_typeHasBeenSet = true; m_type = value; } /** *Describes the specific type of entity with category of entities.
*/ inline void SetType(EntitySubType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *Describes the specific type of entity with category of entities.
*/ inline Entity& WithType(const EntitySubType& value) { SetType(value); return *this;} /** *Describes the specific type of entity with category of entities.
*/ inline Entity& WithType(EntitySubType&& value) { SetType(std::move(value)); return *this;} /** *Contextual information for the entity.
*/ inline const Aws::VectorContextual information for the entity.
*/ inline bool TraitsHasBeenSet() const { return m_traitsHasBeenSet; } /** *Contextual information for the entity.
*/ inline void SetTraits(const Aws::VectorContextual information for the entity.
*/ inline void SetTraits(Aws::VectorContextual information for the entity.
*/ inline Entity& WithTraits(const Aws::VectorContextual information for the entity.
*/ inline Entity& WithTraits(Aws::VectorContextual information for the entity.
*/ inline Entity& AddTraits(const Trait& value) { m_traitsHasBeenSet = true; m_traits.push_back(value); return *this; } /** *Contextual information for the entity.
*/ inline Entity& AddTraits(Trait&& value) { m_traitsHasBeenSet = true; m_traits.push_back(std::move(value)); return *this; } /** *The extracted attributes that relate to this entity.
*/ inline const Aws::VectorThe extracted attributes that relate to this entity.
*/ inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; } /** *The extracted attributes that relate to this entity.
*/ inline void SetAttributes(const Aws::VectorThe extracted attributes that relate to this entity.
*/ inline void SetAttributes(Aws::VectorThe extracted attributes that relate to this entity.
*/ inline Entity& WithAttributes(const Aws::VectorThe extracted attributes that relate to this entity.
*/ inline Entity& WithAttributes(Aws::VectorThe extracted attributes that relate to this entity.
*/ inline Entity& AddAttributes(const Attribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; } /** *The extracted attributes that relate to this entity.
*/ inline Entity& AddAttributes(Attribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; } private: int m_id; bool m_idHasBeenSet = false; int m_beginOffset; bool m_beginOffsetHasBeenSet = false; int m_endOffset; bool m_endOffsetHasBeenSet = false; double m_score; bool m_scoreHasBeenSet = false; Aws::String m_text; bool m_textHasBeenSet = false; EntityType m_category; bool m_categoryHasBeenSet = false; EntitySubType m_type; bool m_typeHasBeenSet = false; Aws::Vector