AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
DetectLabelsResult.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/DetectLabelsImageProperties.h>
12#include <aws/rekognition/model/Label.h>
13#include <aws/rekognition/model/OrientationCorrection.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace Rekognition {
27namespace Model {
29 public:
30 AWS_REKOGNITION_API DetectLabelsResult() = default;
33
35
38 inline const Aws::Vector<Label>& GetLabels() const { return m_labels; }
39 template <typename LabelsT = Aws::Vector<Label>>
40 void SetLabels(LabelsT&& value) {
41 m_labelsHasBeenSet = true;
42 m_labels = std::forward<LabelsT>(value);
43 }
44 template <typename LabelsT = Aws::Vector<Label>>
45 DetectLabelsResult& WithLabels(LabelsT&& value) {
46 SetLabels(std::forward<LabelsT>(value));
47 return *this;
48 }
49 template <typename LabelsT = Label>
50 DetectLabelsResult& AddLabels(LabelsT&& value) {
51 m_labelsHasBeenSet = true;
52 m_labels.emplace_back(std::forward<LabelsT>(value));
53 return *this;
54 }
56
58
71 inline OrientationCorrection GetOrientationCorrection() const { return m_orientationCorrection; }
73 m_orientationCorrectionHasBeenSet = true;
74 m_orientationCorrection = value;
75 }
78 return *this;
79 }
81
83
87 inline const Aws::String& GetLabelModelVersion() const { return m_labelModelVersion; }
88 template <typename LabelModelVersionT = Aws::String>
89 void SetLabelModelVersion(LabelModelVersionT&& value) {
90 m_labelModelVersionHasBeenSet = true;
91 m_labelModelVersion = std::forward<LabelModelVersionT>(value);
92 }
93 template <typename LabelModelVersionT = Aws::String>
94 DetectLabelsResult& WithLabelModelVersion(LabelModelVersionT&& value) {
95 SetLabelModelVersion(std::forward<LabelModelVersionT>(value));
96 return *this;
97 }
99
101
105 inline const DetectLabelsImageProperties& GetImageProperties() const { return m_imageProperties; }
106 template <typename ImagePropertiesT = DetectLabelsImageProperties>
107 void SetImageProperties(ImagePropertiesT&& value) {
108 m_imagePropertiesHasBeenSet = true;
109 m_imageProperties = std::forward<ImagePropertiesT>(value);
110 }
111 template <typename ImagePropertiesT = DetectLabelsImageProperties>
112 DetectLabelsResult& WithImageProperties(ImagePropertiesT&& value) {
113 SetImageProperties(std::forward<ImagePropertiesT>(value));
114 return *this;
115 }
117
119
120 inline const Aws::String& GetRequestId() const { return m_requestId; }
121 template <typename RequestIdT = Aws::String>
122 void SetRequestId(RequestIdT&& value) {
123 m_requestIdHasBeenSet = true;
124 m_requestId = std::forward<RequestIdT>(value);
125 }
126 template <typename RequestIdT = Aws::String>
127 DetectLabelsResult& WithRequestId(RequestIdT&& value) {
128 SetRequestId(std::forward<RequestIdT>(value));
129 return *this;
130 }
132 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
133
134 private:
135 Aws::Vector<Label> m_labels;
136
138
139 Aws::String m_labelModelVersion;
140
141 DetectLabelsImageProperties m_imageProperties;
142
143 Aws::String m_requestId;
144 Aws::Http::HttpResponseCode m_HttpResponseCode;
145 bool m_labelsHasBeenSet = false;
146 bool m_orientationCorrectionHasBeenSet = false;
147 bool m_labelModelVersionHasBeenSet = false;
148 bool m_imagePropertiesHasBeenSet = false;
149 bool m_requestIdHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace Rekognition
154} // namespace Aws
AWS_REKOGNITION_API DetectLabelsResult()=default
DetectLabelsResult & WithLabels(LabelsT &&value)
DetectLabelsResult & AddLabels(LabelsT &&value)
const Aws::String & GetLabelModelVersion() const
AWS_REKOGNITION_API DetectLabelsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const DetectLabelsImageProperties & GetImageProperties() const
const Aws::Vector< Label > & GetLabels() const
DetectLabelsResult & WithOrientationCorrection(OrientationCorrection value)
OrientationCorrection GetOrientationCorrection() const
DetectLabelsResult & WithLabelModelVersion(LabelModelVersionT &&value)
void SetOrientationCorrection(OrientationCorrection value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
DetectLabelsResult & WithRequestId(RequestIdT &&value)
AWS_REKOGNITION_API DetectLabelsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetImageProperties(ImagePropertiesT &&value)
DetectLabelsResult & WithImageProperties(ImagePropertiesT &&value)
void SetLabelModelVersion(LabelModelVersionT &&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