AWS SDK for C++

AWS SDK for C++ Version 1.11.783

Loading...
Searching...
No Matches
DetectTextResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/rekognition/Rekognition_EXPORTS.h>
11#include <aws/rekognition/model/TextDetection.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Rekognition {
25namespace Model {
27 public:
28 AWS_REKOGNITION_API DetectTextResult() = default;
31
33
36 inline const Aws::Vector<TextDetection>& GetTextDetections() const { return m_textDetections; }
37 template <typename TextDetectionsT = Aws::Vector<TextDetection>>
38 void SetTextDetections(TextDetectionsT&& value) {
39 m_textDetectionsHasBeenSet = true;
40 m_textDetections = std::forward<TextDetectionsT>(value);
41 }
42 template <typename TextDetectionsT = Aws::Vector<TextDetection>>
43 DetectTextResult& WithTextDetections(TextDetectionsT&& value) {
44 SetTextDetections(std::forward<TextDetectionsT>(value));
45 return *this;
46 }
47 template <typename TextDetectionsT = TextDetection>
48 DetectTextResult& AddTextDetections(TextDetectionsT&& value) {
49 m_textDetectionsHasBeenSet = true;
50 m_textDetections.emplace_back(std::forward<TextDetectionsT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetTextModelVersion() const { return m_textModelVersion; }
60 template <typename TextModelVersionT = Aws::String>
61 void SetTextModelVersion(TextModelVersionT&& value) {
62 m_textModelVersionHasBeenSet = true;
63 m_textModelVersion = std::forward<TextModelVersionT>(value);
64 }
65 template <typename TextModelVersionT = Aws::String>
66 DetectTextResult& WithTextModelVersion(TextModelVersionT&& value) {
67 SetTextModelVersion(std::forward<TextModelVersionT>(value));
68 return *this;
69 }
71
73
74 inline const Aws::String& GetRequestId() const { return m_requestId; }
75 template <typename RequestIdT = Aws::String>
76 void SetRequestId(RequestIdT&& value) {
77 m_requestIdHasBeenSet = true;
78 m_requestId = std::forward<RequestIdT>(value);
79 }
80 template <typename RequestIdT = Aws::String>
81 DetectTextResult& WithRequestId(RequestIdT&& value) {
82 SetRequestId(std::forward<RequestIdT>(value));
83 return *this;
84 }
86 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
87
88 private:
89 Aws::Vector<TextDetection> m_textDetections;
90
91 Aws::String m_textModelVersion;
92
93 Aws::String m_requestId;
94 Aws::Http::HttpResponseCode m_HttpResponseCode;
95 bool m_textDetectionsHasBeenSet = false;
96 bool m_textModelVersionHasBeenSet = false;
97 bool m_requestIdHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace Rekognition
102} // namespace Aws
const Aws::String & GetRequestId() const
DetectTextResult & WithTextDetections(TextDetectionsT &&value)
AWS_REKOGNITION_API DetectTextResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetTextModelVersion(TextModelVersionT &&value)
const Aws::String & GetTextModelVersion() const
AWS_REKOGNITION_API DetectTextResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< TextDetection > & GetTextDetections() const
DetectTextResult & WithRequestId(RequestIdT &&value)
AWS_REKOGNITION_API DetectTextResult()=default
DetectTextResult & AddTextDetections(TextDetectionsT &&value)
void SetTextDetections(TextDetectionsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
DetectTextResult & WithTextModelVersion(TextModelVersionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue