AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
LendingDetection.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#include <aws/textract/model/SelectionStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Textract {
22namespace Model {
23
30 public:
31 AWS_TEXTRACT_API LendingDetection() = default;
32 AWS_TEXTRACT_API LendingDetection(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 LendingDetection& WithText(TextT&& value) {
49 SetText(std::forward<TextT>(value));
50 return *this;
51 }
53
55
59 inline SelectionStatus GetSelectionStatus() const { return m_selectionStatus; }
60 inline bool SelectionStatusHasBeenSet() const { return m_selectionStatusHasBeenSet; }
62 m_selectionStatusHasBeenSet = true;
63 m_selectionStatus = value;
64 }
66 SetSelectionStatus(value);
67 return *this;
68 }
70
72
73 inline const Geometry& GetGeometry() const { return m_geometry; }
74 inline bool GeometryHasBeenSet() const { return m_geometryHasBeenSet; }
75 template <typename GeometryT = Geometry>
76 void SetGeometry(GeometryT&& value) {
77 m_geometryHasBeenSet = true;
78 m_geometry = std::forward<GeometryT>(value);
79 }
80 template <typename GeometryT = Geometry>
81 LendingDetection& WithGeometry(GeometryT&& value) {
82 SetGeometry(std::forward<GeometryT>(value));
83 return *this;
84 }
86
88
92 inline double GetConfidence() const { return m_confidence; }
93 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
94 inline void SetConfidence(double value) {
95 m_confidenceHasBeenSet = true;
96 m_confidence = value;
97 }
98 inline LendingDetection& WithConfidence(double value) {
99 SetConfidence(value);
100 return *this;
101 }
103 private:
104 Aws::String m_text;
105
106 SelectionStatus m_selectionStatus{SelectionStatus::NOT_SET};
107
108 Geometry m_geometry;
109
110 double m_confidence{0.0};
111 bool m_textHasBeenSet = false;
112 bool m_selectionStatusHasBeenSet = false;
113 bool m_geometryHasBeenSet = false;
114 bool m_confidenceHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace Textract
119} // namespace Aws
SelectionStatus GetSelectionStatus() const
AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const
LendingDetection & WithGeometry(GeometryT &&value)
LendingDetection & WithSelectionStatus(SelectionStatus value)
void SetSelectionStatus(SelectionStatus value)
AWS_TEXTRACT_API LendingDetection()=default
AWS_TEXTRACT_API LendingDetection(Aws::Utils::Json::JsonView jsonValue)
LendingDetection & WithText(TextT &&value)
AWS_TEXTRACT_API LendingDetection & operator=(Aws::Utils::Json::JsonView jsonValue)
LendingDetection & WithConfidence(double value)
const Aws::String & GetText() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue