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

An object used to store information about the Value or Label detected by * Amazon Textract.

See Also:

AWS * API Reference

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

The word or line of text recognized by Amazon Textract

*/ inline const Aws::String& GetText() const{ return m_text; } /** *

The word or line of text recognized by Amazon Textract

*/ inline bool TextHasBeenSet() const { return m_textHasBeenSet; } /** *

The word or line of text recognized by Amazon Textract

*/ inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; } /** *

The word or line of text recognized by Amazon Textract

*/ inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); } /** *

The word or line of text recognized by Amazon Textract

*/ inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); } /** *

The word or line of text recognized by Amazon Textract

*/ inline ExpenseDetection& WithText(const Aws::String& value) { SetText(value); return *this;} /** *

The word or line of text recognized by Amazon Textract

*/ inline ExpenseDetection& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;} /** *

The word or line of text recognized by Amazon Textract

*/ inline ExpenseDetection& WithText(const char* value) { SetText(value); return *this;} inline const Geometry& GetGeometry() const{ return m_geometry; } inline bool GeometryHasBeenSet() const { return m_geometryHasBeenSet; } inline void SetGeometry(const Geometry& value) { m_geometryHasBeenSet = true; m_geometry = value; } inline void SetGeometry(Geometry&& value) { m_geometryHasBeenSet = true; m_geometry = std::move(value); } inline ExpenseDetection& WithGeometry(const Geometry& value) { SetGeometry(value); return *this;} inline ExpenseDetection& WithGeometry(Geometry&& value) { SetGeometry(std::move(value)); return *this;} /** *

The confidence in detection, as a percentage

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

The confidence in detection, as a percentage

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

The confidence in detection, as a percentage

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

The confidence in detection, as a percentage

*/ inline ExpenseDetection& WithConfidence(double value) { SetConfidence(value); return *this;} private: Aws::String m_text; bool m_textHasBeenSet = false; Geometry m_geometry; bool m_geometryHasBeenSet = false; double m_confidence; bool m_confidenceHasBeenSet = false; }; } // namespace Model } // namespace Textract } // namespace Aws