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

Contains information regarding predicted values returned by Amazon Textract * operations, including the predicted value and the confidence in the predicted * value.

See Also:

AWS * API Reference

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

The predicted value of a detected object.

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

The predicted value of a detected object.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The predicted value of a detected object.

*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *

The predicted value of a detected object.

*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

The predicted value of a detected object.

*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *

The predicted value of a detected object.

*/ inline Prediction& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *

The predicted value of a detected object.

*/ inline Prediction& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *

The predicted value of a detected object.

*/ inline Prediction& WithValue(const char* value) { SetValue(value); return *this;} /** *

Amazon Textract's confidence in its predicted value.

*/ inline double GetConfidence() const{ return m_confidence; } /** *

Amazon Textract's confidence in its predicted value.

*/ inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; } /** *

Amazon Textract's confidence in its predicted value.

*/ inline void SetConfidence(double value) { m_confidenceHasBeenSet = true; m_confidence = value; } /** *

Amazon Textract's confidence in its predicted value.

*/ inline Prediction& WithConfidence(double value) { SetConfidence(value); return *this;} private: Aws::String m_value; bool m_valueHasBeenSet = false; double m_confidence; bool m_confidenceHasBeenSet = false; }; } // namespace Model } // namespace Textract } // namespace Aws