AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DetectLabelsResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/rekognition/Rekognition_EXPORTS.h>
10#include <aws/rekognition/model/DetectLabelsImageProperties.h>
11#include <aws/rekognition/model/Label.h>
12#include <aws/rekognition/model/OrientationCorrection.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Rekognition {
26namespace Model {
28 public:
29 AWS_REKOGNITION_API DetectLabelsResult() = default;
32
34
37 inline const Aws::Vector<Label>& GetLabels() const { return m_labels; }
38 template <typename LabelsT = Aws::Vector<Label>>
39 void SetLabels(LabelsT&& value) {
40 m_labelsHasBeenSet = true;
41 m_labels = std::forward<LabelsT>(value);
42 }
43 template <typename LabelsT = Aws::Vector<Label>>
44 DetectLabelsResult& WithLabels(LabelsT&& value) {
45 SetLabels(std::forward<LabelsT>(value));
46 return *this;
47 }
48 template <typename LabelsT = Label>
49 DetectLabelsResult& AddLabels(LabelsT&& value) {
50 m_labelsHasBeenSet = true;
51 m_labels.emplace_back(std::forward<LabelsT>(value));
52 return *this;
53 }
55
57
70 inline OrientationCorrection GetOrientationCorrection() const { return m_orientationCorrection; }
72 m_orientationCorrectionHasBeenSet = true;
73 m_orientationCorrection = value;
74 }
77 return *this;
78 }
80
82
86 inline const Aws::String& GetLabelModelVersion() const { return m_labelModelVersion; }
87 template <typename LabelModelVersionT = Aws::String>
88 void SetLabelModelVersion(LabelModelVersionT&& value) {
89 m_labelModelVersionHasBeenSet = true;
90 m_labelModelVersion = std::forward<LabelModelVersionT>(value);
91 }
92 template <typename LabelModelVersionT = Aws::String>
93 DetectLabelsResult& WithLabelModelVersion(LabelModelVersionT&& value) {
94 SetLabelModelVersion(std::forward<LabelModelVersionT>(value));
95 return *this;
96 }
98
100
104 inline const DetectLabelsImageProperties& GetImageProperties() const { return m_imageProperties; }
105 template <typename ImagePropertiesT = DetectLabelsImageProperties>
106 void SetImageProperties(ImagePropertiesT&& value) {
107 m_imagePropertiesHasBeenSet = true;
108 m_imageProperties = std::forward<ImagePropertiesT>(value);
109 }
110 template <typename ImagePropertiesT = DetectLabelsImageProperties>
111 DetectLabelsResult& WithImageProperties(ImagePropertiesT&& value) {
112 SetImageProperties(std::forward<ImagePropertiesT>(value));
113 return *this;
114 }
116
118
119 inline const Aws::String& GetRequestId() const { return m_requestId; }
120 template <typename RequestIdT = Aws::String>
121 void SetRequestId(RequestIdT&& value) {
122 m_requestIdHasBeenSet = true;
123 m_requestId = std::forward<RequestIdT>(value);
124 }
125 template <typename RequestIdT = Aws::String>
126 DetectLabelsResult& WithRequestId(RequestIdT&& value) {
127 SetRequestId(std::forward<RequestIdT>(value));
128 return *this;
129 }
131 private:
132 Aws::Vector<Label> m_labels;
133
135
136 Aws::String m_labelModelVersion;
137
138 DetectLabelsImageProperties m_imageProperties;
139
140 Aws::String m_requestId;
141 bool m_labelsHasBeenSet = false;
142 bool m_orientationCorrectionHasBeenSet = false;
143 bool m_labelModelVersionHasBeenSet = false;
144 bool m_imagePropertiesHasBeenSet = false;
145 bool m_requestIdHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace Rekognition
150} // 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)
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