/** * 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 Comprehend { namespace Model { /** *

Specifies one of the label or labels that categorize the document being * analyzed.

See Also:

AWS * API Reference

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

The name of the label.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the label.

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

The name of the label.

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

The name of the label.

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

The name of the label.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the label.

*/ inline DocumentLabel& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the label.

*/ inline DocumentLabel& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the label.

*/ inline DocumentLabel& WithName(const char* value) { SetName(value); return *this;} /** *

The confidence score that Amazon Comprehend has this label correctly * attributed.

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

The confidence score that Amazon Comprehend has this label correctly * attributed.

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

The confidence score that Amazon Comprehend has this label correctly * attributed.

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

The confidence score that Amazon Comprehend has this label correctly * attributed.

*/ inline DocumentLabel& WithScore(double value) { SetScore(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet; double m_score; bool m_scoreHasBeenSet; }; } // namespace Model } // namespace Comprehend } // namespace Aws