AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TextDetection.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/rekognition/model/TextTypes.h>
10#include <aws/rekognition/model/Geometry.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Rekognition
24{
25namespace Model
26{
27
41 {
42 public:
43 AWS_REKOGNITION_API TextDetection() = default;
44 AWS_REKOGNITION_API TextDetection(Aws::Utils::Json::JsonView jsonValue);
45 AWS_REKOGNITION_API TextDetection& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetDetectedText() const { return m_detectedText; }
54 inline bool DetectedTextHasBeenSet() const { return m_detectedTextHasBeenSet; }
55 template<typename DetectedTextT = Aws::String>
56 void SetDetectedText(DetectedTextT&& value) { m_detectedTextHasBeenSet = true; m_detectedText = std::forward<DetectedTextT>(value); }
57 template<typename DetectedTextT = Aws::String>
58 TextDetection& WithDetectedText(DetectedTextT&& value) { SetDetectedText(std::forward<DetectedTextT>(value)); return *this;}
60
62
65 inline TextTypes GetType() const { return m_type; }
66 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
67 inline void SetType(TextTypes value) { m_typeHasBeenSet = true; m_type = value; }
68 inline TextDetection& WithType(TextTypes value) { SetType(value); return *this;}
70
72
76 inline int GetId() const { return m_id; }
77 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
78 inline void SetId(int value) { m_idHasBeenSet = true; m_id = value; }
79 inline TextDetection& WithId(int value) { SetId(value); return *this;}
81
83
88 inline int GetParentId() const { return m_parentId; }
89 inline bool ParentIdHasBeenSet() const { return m_parentIdHasBeenSet; }
90 inline void SetParentId(int value) { m_parentIdHasBeenSet = true; m_parentId = value; }
91 inline TextDetection& WithParentId(int value) { SetParentId(value); return *this;}
93
95
99 inline double GetConfidence() const { return m_confidence; }
100 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
101 inline void SetConfidence(double value) { m_confidenceHasBeenSet = true; m_confidence = value; }
102 inline TextDetection& WithConfidence(double value) { SetConfidence(value); return *this;}
104
106
111 inline const Geometry& GetGeometry() const { return m_geometry; }
112 inline bool GeometryHasBeenSet() const { return m_geometryHasBeenSet; }
113 template<typename GeometryT = Geometry>
114 void SetGeometry(GeometryT&& value) { m_geometryHasBeenSet = true; m_geometry = std::forward<GeometryT>(value); }
115 template<typename GeometryT = Geometry>
116 TextDetection& WithGeometry(GeometryT&& value) { SetGeometry(std::forward<GeometryT>(value)); return *this;}
118 private:
119
120 Aws::String m_detectedText;
121 bool m_detectedTextHasBeenSet = false;
122
124 bool m_typeHasBeenSet = false;
125
126 int m_id{0};
127 bool m_idHasBeenSet = false;
128
129 int m_parentId{0};
130 bool m_parentIdHasBeenSet = false;
131
132 double m_confidence{0.0};
133 bool m_confidenceHasBeenSet = false;
134
135 Geometry m_geometry;
136 bool m_geometryHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace Rekognition
141} // 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