AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ExpenseDetection.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/textract/Textract_EXPORTS.h>
9#include <aws/textract/model/Geometry.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Textract {
21namespace Model {
22
30 public:
31 AWS_TEXTRACT_API ExpenseDetection() = default;
32 AWS_TEXTRACT_API ExpenseDetection(Aws::Utils::Json::JsonView jsonValue);
34 AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetText() const { return m_text; }
41 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
42 template <typename TextT = Aws::String>
43 void SetText(TextT&& value) {
44 m_textHasBeenSet = true;
45 m_text = std::forward<TextT>(value);
46 }
47 template <typename TextT = Aws::String>
48 ExpenseDetection& WithText(TextT&& value) {
49 SetText(std::forward<TextT>(value));
50 return *this;
51 }
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) {
60 m_geometryHasBeenSet = true;
61 m_geometry = std::forward<GeometryT>(value);
62 }
63 template <typename GeometryT = Geometry>
64 ExpenseDetection& WithGeometry(GeometryT&& value) {
65 SetGeometry(std::forward<GeometryT>(value));
66 return *this;
67 }
69
71
74 inline double GetConfidence() const { return m_confidence; }
75 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
76 inline void SetConfidence(double value) {
77 m_confidenceHasBeenSet = true;
78 m_confidence = value;
79 }
80 inline ExpenseDetection& WithConfidence(double value) {
81 SetConfidence(value);
82 return *this;
83 }
85 private:
86 Aws::String m_text;
87
88 Geometry m_geometry;
89
90 double m_confidence{0.0};
91 bool m_textHasBeenSet = false;
92 bool m_geometryHasBeenSet = false;
93 bool m_confidenceHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace Textract
98} // 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