AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DetectLabelsResult.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/rekognition/model/OrientationCorrection.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/rekognition/model/DetectLabelsImageProperties.h>
12#include <aws/rekognition/model/Label.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace Rekognition
28{
29namespace Model
30{
32 {
33 public:
34 AWS_REKOGNITION_API DetectLabelsResult() = default;
37
38
40
43 inline const Aws::Vector<Label>& GetLabels() const { return m_labels; }
44 template<typename LabelsT = Aws::Vector<Label>>
45 void SetLabels(LabelsT&& value) { m_labelsHasBeenSet = true; m_labels = std::forward<LabelsT>(value); }
46 template<typename LabelsT = Aws::Vector<Label>>
47 DetectLabelsResult& WithLabels(LabelsT&& value) { SetLabels(std::forward<LabelsT>(value)); return *this;}
48 template<typename LabelsT = Label>
49 DetectLabelsResult& AddLabels(LabelsT&& value) { m_labelsHasBeenSet = true; m_labels.emplace_back(std::forward<LabelsT>(value)); return *this; }
51
53
66 inline OrientationCorrection GetOrientationCorrection() const { return m_orientationCorrection; }
67 inline void SetOrientationCorrection(OrientationCorrection value) { m_orientationCorrectionHasBeenSet = true; m_orientationCorrection = value; }
70
72
76 inline const Aws::String& GetLabelModelVersion() const { return m_labelModelVersion; }
77 template<typename LabelModelVersionT = Aws::String>
78 void SetLabelModelVersion(LabelModelVersionT&& value) { m_labelModelVersionHasBeenSet = true; m_labelModelVersion = std::forward<LabelModelVersionT>(value); }
79 template<typename LabelModelVersionT = Aws::String>
80 DetectLabelsResult& WithLabelModelVersion(LabelModelVersionT&& value) { SetLabelModelVersion(std::forward<LabelModelVersionT>(value)); return *this;}
82
84
88 inline const DetectLabelsImageProperties& GetImageProperties() const { return m_imageProperties; }
89 template<typename ImagePropertiesT = DetectLabelsImageProperties>
90 void SetImageProperties(ImagePropertiesT&& value) { m_imagePropertiesHasBeenSet = true; m_imageProperties = std::forward<ImagePropertiesT>(value); }
91 template<typename ImagePropertiesT = DetectLabelsImageProperties>
92 DetectLabelsResult& WithImageProperties(ImagePropertiesT&& value) { SetImageProperties(std::forward<ImagePropertiesT>(value)); return *this;}
94
96
97 inline const Aws::String& GetRequestId() const { return m_requestId; }
98 template<typename RequestIdT = Aws::String>
99 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
100 template<typename RequestIdT = Aws::String>
101 DetectLabelsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
103 private:
104
105 Aws::Vector<Label> m_labels;
106 bool m_labelsHasBeenSet = false;
107
109 bool m_orientationCorrectionHasBeenSet = false;
110
111 Aws::String m_labelModelVersion;
112 bool m_labelModelVersionHasBeenSet = false;
113
114 DetectLabelsImageProperties m_imageProperties;
115 bool m_imagePropertiesHasBeenSet = false;
116
117 Aws::String m_requestId;
118 bool m_requestIdHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace Rekognition
123} // 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