/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ComprehendMedical { namespace Model { /** *

Contextual information for an entity.

See Also:

AWS * API Reference

*/ class SNOMEDCTTrait { public: AWS_COMPREHENDMEDICAL_API SNOMEDCTTrait(); AWS_COMPREHENDMEDICAL_API SNOMEDCTTrait(Aws::Utils::Json::JsonView jsonValue); AWS_COMPREHENDMEDICAL_API SNOMEDCTTrait& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_COMPREHENDMEDICAL_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name or contextual description of a detected trait.

*/ inline const SNOMEDCTTraitName& GetName() const{ return m_name; } /** *

The name or contextual description of a detected trait.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name or contextual description of a detected trait.

*/ inline void SetName(const SNOMEDCTTraitName& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name or contextual description of a detected trait.

*/ inline void SetName(SNOMEDCTTraitName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name or contextual description of a detected trait.

*/ inline SNOMEDCTTrait& WithName(const SNOMEDCTTraitName& value) { SetName(value); return *this;} /** *

The name or contextual description of a detected trait.

*/ inline SNOMEDCTTrait& WithName(SNOMEDCTTraitName&& value) { SetName(std::move(value)); return *this;} /** *

The level of confidence that Amazon Comprehend Medical has in the accuracy * of a detected trait.

*/ inline double GetScore() const{ return m_score; } /** *

The level of confidence that Amazon Comprehend Medical has in the accuracy * of a detected trait.

*/ inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; } /** *

The level of confidence that Amazon Comprehend Medical has in the accuracy * of a detected trait.

*/ inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; } /** *

The level of confidence that Amazon Comprehend Medical has in the accuracy * of a detected trait.

*/ inline SNOMEDCTTrait& WithScore(double value) { SetScore(value); return *this;} private: SNOMEDCTTraitName m_name; bool m_nameHasBeenSet = false; double m_score; bool m_scoreHasBeenSet = false; }; } // namespace Model } // namespace ComprehendMedical } // namespace Aws