AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDetectedText(const Aws::String& value) { m_detectedTextHasBeenSet = true; m_detectedText = value; }
56 inline void SetDetectedText(Aws::String&& value) { m_detectedTextHasBeenSet = true; m_detectedText = std::move(value); }
57 inline void SetDetectedText(const char* value) { m_detectedTextHasBeenSet = true; m_detectedText.assign(value); }
58 inline TextDetection& WithDetectedText(const Aws::String& value) { SetDetectedText(value); return *this;}
59 inline TextDetection& WithDetectedText(Aws::String&& value) { SetDetectedText(std::move(value)); return *this;}
60 inline TextDetection& WithDetectedText(const char* value) { SetDetectedText(value); return *this;}
62
64
67 inline const TextTypes& GetType() const{ return m_type; }
68 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
69 inline void SetType(const TextTypes& value) { m_typeHasBeenSet = true; m_type = value; }
70 inline void SetType(TextTypes&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
71 inline TextDetection& WithType(const TextTypes& value) { SetType(value); return *this;}
72 inline TextDetection& WithType(TextTypes&& value) { SetType(std::move(value)); return *this;}
74
76
80 inline int GetId() const{ return m_id; }
81 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
82 inline void SetId(int value) { m_idHasBeenSet = true; m_id = value; }
83 inline TextDetection& WithId(int value) { SetId(value); return *this;}
85
87
92 inline int GetParentId() const{ return m_parentId; }
93 inline bool ParentIdHasBeenSet() const { return m_parentIdHasBeenSet; }
94 inline void SetParentId(int value) { m_parentIdHasBeenSet = true; m_parentId = value; }
95 inline TextDetection& WithParentId(int value) { SetParentId(value); return *this;}
97
99
103 inline double GetConfidence() const{ return m_confidence; }
104 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
105 inline void SetConfidence(double value) { m_confidenceHasBeenSet = true; m_confidence = value; }
106 inline TextDetection& WithConfidence(double value) { SetConfidence(value); return *this;}
108
110
115 inline const Geometry& GetGeometry() const{ return m_geometry; }
116 inline bool GeometryHasBeenSet() const { return m_geometryHasBeenSet; }
117 inline void SetGeometry(const Geometry& value) { m_geometryHasBeenSet = true; m_geometry = value; }
118 inline void SetGeometry(Geometry&& value) { m_geometryHasBeenSet = true; m_geometry = std::move(value); }
119 inline TextDetection& WithGeometry(const Geometry& value) { SetGeometry(value); return *this;}
120 inline TextDetection& WithGeometry(Geometry&& value) { SetGeometry(std::move(value)); return *this;}
122 private:
123
124 Aws::String m_detectedText;
125 bool m_detectedTextHasBeenSet = false;
126
127 TextTypes m_type;
128 bool m_typeHasBeenSet = false;
129
130 int m_id;
131 bool m_idHasBeenSet = false;
132
133 int m_parentId;
134 bool m_parentIdHasBeenSet = false;
135
136 double m_confidence;
137 bool m_confidenceHasBeenSet = false;
138
139 Geometry m_geometry;
140 bool m_geometryHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace Rekognition
145} // namespace Aws
TextDetection & WithDetectedText(Aws::String &&value)
TextDetection & WithConfidence(double value)
const Geometry & GetGeometry() const
const TextTypes & GetType() const
TextDetection & WithDetectedText(const Aws::String &value)
TextDetection & WithId(int value)
TextDetection & WithType(const TextTypes &value)
TextDetection & WithParentId(int value)
TextDetection & WithGeometry(Geometry &&value)
TextDetection & WithDetectedText(const char *value)
TextDetection & WithType(TextTypes &&value)
AWS_REKOGNITION_API TextDetection & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDetectedText(const char *value)
void SetType(const TextTypes &value)
AWS_REKOGNITION_API TextDetection(Aws::Utils::Json::JsonView jsonValue)
void SetDetectedText(const Aws::String &value)
void SetDetectedText(Aws::String &&value)
const Aws::String & GetDetectedText() const
void SetGeometry(const Geometry &value)
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
TextDetection & WithGeometry(const Geometry &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue