AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ExpenseDetection.h
1
6#pragma once
7#include <aws/textract/Textract_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/textract/model/Geometry.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Textract
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_TEXTRACT_API ExpenseDetection() = default;
37 AWS_TEXTRACT_API ExpenseDetection(Aws::Utils::Json::JsonView jsonValue);
39 AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetText() const { return m_text; }
47 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
48 template<typename TextT = Aws::String>
49 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
50 template<typename TextT = Aws::String>
51 ExpenseDetection& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
53
55
56 inline const Geometry& GetGeometry() const { return m_geometry; }
57 inline bool GeometryHasBeenSet() const { return m_geometryHasBeenSet; }
58 template<typename GeometryT = Geometry>
59 void SetGeometry(GeometryT&& value) { m_geometryHasBeenSet = true; m_geometry = std::forward<GeometryT>(value); }
60 template<typename GeometryT = Geometry>
61 ExpenseDetection& WithGeometry(GeometryT&& value) { SetGeometry(std::forward<GeometryT>(value)); return *this;}
63
65
68 inline double GetConfidence() const { return m_confidence; }
69 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
70 inline void SetConfidence(double value) { m_confidenceHasBeenSet = true; m_confidence = value; }
71 inline ExpenseDetection& WithConfidence(double value) { SetConfidence(value); return *this;}
73 private:
74
75 Aws::String m_text;
76 bool m_textHasBeenSet = false;
77
78 Geometry m_geometry;
79 bool m_geometryHasBeenSet = false;
80
81 double m_confidence{0.0};
82 bool m_confidenceHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace Textract
87} // namespace Aws
ExpenseDetection & WithText(TextT &&value)
AWS_TEXTRACT_API ExpenseDetection()=default
ExpenseDetection & WithConfidence(double value)
AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_TEXTRACT_API ExpenseDetection & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_TEXTRACT_API ExpenseDetection(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetText() const
ExpenseDetection & WithGeometry(GeometryT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue