AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DetectLabelsRequest.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/rekognition/RekognitionRequest.h>
9#include <aws/rekognition/model/Image.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/rekognition/model/DetectLabelsSettings.h>
12#include <aws/rekognition/model/DetectLabelsFeatureName.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Rekognition
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_REKOGNITION_API DetectLabelsRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "DetectLabels"; }
34
35 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
36
37 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
49 inline const Image& GetImage() const { return m_image; }
50 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
51 template<typename ImageT = Image>
52 void SetImage(ImageT&& value) { m_imageHasBeenSet = true; m_image = std::forward<ImageT>(value); }
53 template<typename ImageT = Image>
54 DetectLabelsRequest& WithImage(ImageT&& value) { SetImage(std::forward<ImageT>(value)); return *this;}
56
58
64 inline int GetMaxLabels() const { return m_maxLabels; }
65 inline bool MaxLabelsHasBeenSet() const { return m_maxLabelsHasBeenSet; }
66 inline void SetMaxLabels(int value) { m_maxLabelsHasBeenSet = true; m_maxLabels = value; }
67 inline DetectLabelsRequest& WithMaxLabels(int value) { SetMaxLabels(value); return *this;}
69
71
79 inline double GetMinConfidence() const { return m_minConfidence; }
80 inline bool MinConfidenceHasBeenSet() const { return m_minConfidenceHasBeenSet; }
81 inline void SetMinConfidence(double value) { m_minConfidenceHasBeenSet = true; m_minConfidence = value; }
82 inline DetectLabelsRequest& WithMinConfidence(double value) { SetMinConfidence(value); return *this;}
84
86
92 inline const Aws::Vector<DetectLabelsFeatureName>& GetFeatures() const { return m_features; }
93 inline bool FeaturesHasBeenSet() const { return m_featuresHasBeenSet; }
94 template<typename FeaturesT = Aws::Vector<DetectLabelsFeatureName>>
95 void SetFeatures(FeaturesT&& value) { m_featuresHasBeenSet = true; m_features = std::forward<FeaturesT>(value); }
96 template<typename FeaturesT = Aws::Vector<DetectLabelsFeatureName>>
97 DetectLabelsRequest& WithFeatures(FeaturesT&& value) { SetFeatures(std::forward<FeaturesT>(value)); return *this;}
98 inline DetectLabelsRequest& AddFeatures(DetectLabelsFeatureName value) { m_featuresHasBeenSet = true; m_features.push_back(value); return *this; }
100
102
111 inline const DetectLabelsSettings& GetSettings() const { return m_settings; }
112 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
113 template<typename SettingsT = DetectLabelsSettings>
114 void SetSettings(SettingsT&& value) { m_settingsHasBeenSet = true; m_settings = std::forward<SettingsT>(value); }
115 template<typename SettingsT = DetectLabelsSettings>
116 DetectLabelsRequest& WithSettings(SettingsT&& value) { SetSettings(std::forward<SettingsT>(value)); return *this;}
118 private:
119
120 Image m_image;
121 bool m_imageHasBeenSet = false;
122
123 int m_maxLabels{0};
124 bool m_maxLabelsHasBeenSet = false;
125
126 double m_minConfidence{0.0};
127 bool m_minConfidenceHasBeenSet = false;
128
130 bool m_featuresHasBeenSet = false;
131
132 DetectLabelsSettings m_settings;
133 bool m_settingsHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace Rekognition
138} // 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