AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetImage(const Image& value) { m_imageHasBeenSet = true; m_image = value; }
52 inline void SetImage(Image&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
53 inline DetectLabelsRequest& WithImage(const Image& value) { SetImage(value); return *this;}
54 inline DetectLabelsRequest& WithImage(Image&& value) { SetImage(std::move(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 inline void SetFeatures(const Aws::Vector<DetectLabelsFeatureName>& value) { m_featuresHasBeenSet = true; m_features = value; }
95 inline void SetFeatures(Aws::Vector<DetectLabelsFeatureName>&& value) { m_featuresHasBeenSet = true; m_features = std::move(value); }
97 inline DetectLabelsRequest& WithFeatures(Aws::Vector<DetectLabelsFeatureName>&& value) { SetFeatures(std::move(value)); return *this;}
98 inline DetectLabelsRequest& AddFeatures(const DetectLabelsFeatureName& value) { m_featuresHasBeenSet = true; m_features.push_back(value); return *this; }
99 inline DetectLabelsRequest& AddFeatures(DetectLabelsFeatureName&& value) { m_featuresHasBeenSet = true; m_features.push_back(std::move(value)); return *this; }
101
103
112 inline const DetectLabelsSettings& GetSettings() const{ return m_settings; }
113 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
114 inline void SetSettings(const DetectLabelsSettings& value) { m_settingsHasBeenSet = true; m_settings = value; }
115 inline void SetSettings(DetectLabelsSettings&& value) { m_settingsHasBeenSet = true; m_settings = std::move(value); }
116 inline DetectLabelsRequest& WithSettings(const DetectLabelsSettings& value) { SetSettings(value); return *this;}
117 inline DetectLabelsRequest& WithSettings(DetectLabelsSettings&& value) { SetSettings(std::move(value)); return *this;}
119 private:
120
121 Image m_image;
122 bool m_imageHasBeenSet = false;
123
124 int m_maxLabels;
125 bool m_maxLabelsHasBeenSet = false;
126
127 double m_minConfidence;
128 bool m_minConfidenceHasBeenSet = false;
129
131 bool m_featuresHasBeenSet = false;
132
133 DetectLabelsSettings m_settings;
134 bool m_settingsHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace Rekognition
139} // namespace Aws
void SetSettings(const DetectLabelsSettings &value)
DetectLabelsRequest & WithImage(Image &&value)
void SetFeatures(const Aws::Vector< DetectLabelsFeatureName > &value)
DetectLabelsRequest & WithSettings(DetectLabelsSettings &&value)
void SetSettings(DetectLabelsSettings &&value)
virtual const char * GetServiceRequestName() const override
const DetectLabelsSettings & GetSettings() const
DetectLabelsRequest & WithMinConfidence(double value)
DetectLabelsRequest & WithMaxLabels(int value)
DetectLabelsRequest & WithImage(const Image &value)
DetectLabelsRequest & WithFeatures(Aws::Vector< DetectLabelsFeatureName > &&value)
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< DetectLabelsFeatureName > & GetFeatures() const
DetectLabelsRequest & AddFeatures(const DetectLabelsFeatureName &value)
AWS_REKOGNITION_API Aws::String SerializePayload() const override
DetectLabelsRequest & WithFeatures(const Aws::Vector< DetectLabelsFeatureName > &value)
DetectLabelsRequest & AddFeatures(DetectLabelsFeatureName &&value)
DetectLabelsRequest & WithSettings(const DetectLabelsSettings &value)
void SetFeatures(Aws::Vector< DetectLabelsFeatureName > &&value)
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