AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DetectLabelsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/rekognition/RekognitionRequest.h>
9#include <aws/rekognition/Rekognition_EXPORTS.h>
10#include <aws/rekognition/model/DetectLabelsFeatureName.h>
11#include <aws/rekognition/model/DetectLabelsSettings.h>
12#include <aws/rekognition/model/Image.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Rekognition {
18namespace Model {
19
23 public:
24 AWS_REKOGNITION_API DetectLabelsRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "DetectLabels"; }
31
32 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
33
34 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
45 inline const Image& GetImage() const { return m_image; }
46 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
47 template <typename ImageT = Image>
48 void SetImage(ImageT&& value) {
49 m_imageHasBeenSet = true;
50 m_image = std::forward<ImageT>(value);
51 }
52 template <typename ImageT = Image>
53 DetectLabelsRequest& WithImage(ImageT&& value) {
54 SetImage(std::forward<ImageT>(value));
55 return *this;
56 }
58
60
66 inline int GetMaxLabels() const { return m_maxLabels; }
67 inline bool MaxLabelsHasBeenSet() const { return m_maxLabelsHasBeenSet; }
68 inline void SetMaxLabels(int value) {
69 m_maxLabelsHasBeenSet = true;
70 m_maxLabels = value;
71 }
73 SetMaxLabels(value);
74 return *this;
75 }
77
79
87 inline double GetMinConfidence() const { return m_minConfidence; }
88 inline bool MinConfidenceHasBeenSet() const { return m_minConfidenceHasBeenSet; }
89 inline void SetMinConfidence(double value) {
90 m_minConfidenceHasBeenSet = true;
91 m_minConfidence = value;
92 }
93 inline DetectLabelsRequest& WithMinConfidence(double value) {
94 SetMinConfidence(value);
95 return *this;
96 }
98
100
106 inline const Aws::Vector<DetectLabelsFeatureName>& GetFeatures() const { return m_features; }
107 inline bool FeaturesHasBeenSet() const { return m_featuresHasBeenSet; }
108 template <typename FeaturesT = Aws::Vector<DetectLabelsFeatureName>>
109 void SetFeatures(FeaturesT&& value) {
110 m_featuresHasBeenSet = true;
111 m_features = std::forward<FeaturesT>(value);
112 }
113 template <typename FeaturesT = Aws::Vector<DetectLabelsFeatureName>>
114 DetectLabelsRequest& WithFeatures(FeaturesT&& value) {
115 SetFeatures(std::forward<FeaturesT>(value));
116 return *this;
117 }
119 m_featuresHasBeenSet = true;
120 m_features.push_back(value);
121 return *this;
122 }
124
126
135 inline const DetectLabelsSettings& GetSettings() const { return m_settings; }
136 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
137 template <typename SettingsT = DetectLabelsSettings>
138 void SetSettings(SettingsT&& value) {
139 m_settingsHasBeenSet = true;
140 m_settings = std::forward<SettingsT>(value);
141 }
142 template <typename SettingsT = DetectLabelsSettings>
143 DetectLabelsRequest& WithSettings(SettingsT&& value) {
144 SetSettings(std::forward<SettingsT>(value));
145 return *this;
146 }
148 private:
149 Image m_image;
150
151 int m_maxLabels{0};
152
153 double m_minConfidence{0.0};
154
156
157 DetectLabelsSettings m_settings;
158 bool m_imageHasBeenSet = false;
159 bool m_maxLabelsHasBeenSet = false;
160 bool m_minConfidenceHasBeenSet = false;
161 bool m_featuresHasBeenSet = false;
162 bool m_settingsHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace Rekognition
167} // namespace Aws
DetectLabelsRequest & WithImage(ImageT &&value)
DetectLabelsRequest & AddFeatures(DetectLabelsFeatureName value)
virtual const char * GetServiceRequestName() const override
DetectLabelsRequest & WithSettings(SettingsT &&value)
const DetectLabelsSettings & GetSettings() const
DetectLabelsRequest & WithMinConfidence(double value)
DetectLabelsRequest & WithMaxLabels(int value)
DetectLabelsRequest & WithFeatures(FeaturesT &&value)
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< DetectLabelsFeatureName > & GetFeatures() const
AWS_REKOGNITION_API Aws::String SerializePayload() const override
AWS_REKOGNITION_API DetectLabelsRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector