/** * 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 DocumentLabel { public: AWS_COMPREHEND_API DocumentLabel(); AWS_COMPREHEND_API DocumentLabel(Aws::Utils::Json::JsonView jsonValue); AWS_COMPREHEND_API DocumentLabel& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_COMPREHEND_API 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;} /** *

Page number where the label occurs. This field is present in the response * only if your request includes the Byte parameter.

*/ inline int GetPage() const{ return m_page; } /** *

Page number where the label occurs. This field is present in the response * only if your request includes the Byte parameter.

*/ inline bool PageHasBeenSet() const { return m_pageHasBeenSet; } /** *

Page number where the label occurs. This field is present in the response * only if your request includes the Byte parameter.

*/ inline void SetPage(int value) { m_pageHasBeenSet = true; m_page = value; } /** *

Page number where the label occurs. This field is present in the response * only if your request includes the Byte parameter.

*/ inline DocumentLabel& WithPage(int value) { SetPage(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; double m_score; bool m_scoreHasBeenSet = false; int m_page; bool m_pageHasBeenSet = false; }; } // namespace Model } // namespace Comprehend } // namespace Aws