AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
TextDetection.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/rekognition/Rekognition_EXPORTS.h>
9#include <aws/rekognition/model/Geometry.h>
10#include <aws/rekognition/model/TextTypes.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Rekognition {
22namespace Model {
23
37 public:
38 AWS_REKOGNITION_API TextDetection() = default;
39 AWS_REKOGNITION_API TextDetection(Aws::Utils::Json::JsonView jsonValue);
40 AWS_REKOGNITION_API TextDetection& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetDetectedText() const { return m_detectedText; }
48 inline bool DetectedTextHasBeenSet() const { return m_detectedTextHasBeenSet; }
49 template <typename DetectedTextT = Aws::String>
50 void SetDetectedText(DetectedTextT&& value) {
51 m_detectedTextHasBeenSet = true;
52 m_detectedText = std::forward<DetectedTextT>(value);
53 }
54 template <typename DetectedTextT = Aws::String>
55 TextDetection& WithDetectedText(DetectedTextT&& value) {
56 SetDetectedText(std::forward<DetectedTextT>(value));
57 return *this;
58 }
60
62
65 inline TextTypes GetType() const { return m_type; }
66 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
67 inline void SetType(TextTypes value) {
68 m_typeHasBeenSet = true;
69 m_type = value;
70 }
72 SetType(value);
73 return *this;
74 }
76
78
82 inline int GetId() const { return m_id; }
83 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
84 inline void SetId(int value) {
85 m_idHasBeenSet = true;
86 m_id = value;
87 }
88 inline TextDetection& WithId(int value) {
89 SetId(value);
90 return *this;
91 }
93
95
100 inline int GetParentId() const { return m_parentId; }
101 inline bool ParentIdHasBeenSet() const { return m_parentIdHasBeenSet; }
102 inline void SetParentId(int value) {
103 m_parentIdHasBeenSet = true;
104 m_parentId = value;
105 }
106 inline TextDetection& WithParentId(int value) {
107 SetParentId(value);
108 return *this;
109 }
111
113
117 inline double GetConfidence() const { return m_confidence; }
118 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
119 inline void SetConfidence(double value) {
120 m_confidenceHasBeenSet = true;
121 m_confidence = value;
122 }
123 inline TextDetection& WithConfidence(double value) {
124 SetConfidence(value);
125 return *this;
126 }
128
130
135 inline const Geometry& GetGeometry() const { return m_geometry; }
136 inline bool GeometryHasBeenSet() const { return m_geometryHasBeenSet; }
137 template <typename GeometryT = Geometry>
138 void SetGeometry(GeometryT&& value) {
139 m_geometryHasBeenSet = true;
140 m_geometry = std::forward<GeometryT>(value);
141 }
142 template <typename GeometryT = Geometry>
143 TextDetection& WithGeometry(GeometryT&& value) {
144 SetGeometry(std::forward<GeometryT>(value));
145 return *this;
146 }
148 private:
149 Aws::String m_detectedText;
150
152
153 int m_id{0};
154
155 int m_parentId{0};
156
157 double m_confidence{0.0};
158
159 Geometry m_geometry;
160 bool m_detectedTextHasBeenSet = false;
161 bool m_typeHasBeenSet = false;
162 bool m_idHasBeenSet = false;
163 bool m_parentIdHasBeenSet = false;
164 bool m_confidenceHasBeenSet = false;
165 bool m_geometryHasBeenSet = false;
166};
167
168} // namespace Model
169} // namespace Rekognition
170} // namespace Aws
TextDetection & WithConfidence(double value)
const Geometry & GetGeometry() const
TextDetection & WithId(int value)
TextDetection & WithGeometry(GeometryT &&value)
TextDetection & WithParentId(int value)
TextDetection & WithDetectedText(DetectedTextT &&value)
void SetDetectedText(DetectedTextT &&value)
AWS_REKOGNITION_API TextDetection()=default
AWS_REKOGNITION_API TextDetection & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_REKOGNITION_API TextDetection(Aws::Utils::Json::JsonView jsonValue)
TextDetection & WithType(TextTypes value)
const Aws::String & GetDetectedText() const
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue