AWS SDK for C++  1.9.109
AWS SDK for C++
DetectLabelsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Rekognition
15 {
16 namespace Model
17 {
18 
22  {
23  public:
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::String SerializePayload() const override;
33 
35 
36 
45  inline const Image& GetImage() const{ return m_image; }
46 
55  inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
56 
65  inline void SetImage(const Image& value) { m_imageHasBeenSet = true; m_image = value; }
66 
75  inline void SetImage(Image&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
76 
85  inline DetectLabelsRequest& WithImage(const Image& value) { SetImage(value); return *this;}
86 
95  inline DetectLabelsRequest& WithImage(Image&& value) { SetImage(std::move(value)); return *this;}
96 
97 
102  inline int GetMaxLabels() const{ return m_maxLabels; }
103 
108  inline bool MaxLabelsHasBeenSet() const { return m_maxLabelsHasBeenSet; }
109 
114  inline void SetMaxLabels(int value) { m_maxLabelsHasBeenSet = true; m_maxLabels = value; }
115 
120  inline DetectLabelsRequest& WithMaxLabels(int value) { SetMaxLabels(value); return *this;}
121 
122 
129  inline double GetMinConfidence() const{ return m_minConfidence; }
130 
137  inline bool MinConfidenceHasBeenSet() const { return m_minConfidenceHasBeenSet; }
138 
145  inline void SetMinConfidence(double value) { m_minConfidenceHasBeenSet = true; m_minConfidence = value; }
146 
153  inline DetectLabelsRequest& WithMinConfidence(double value) { SetMinConfidence(value); return *this;}
154 
155  private:
156 
157  Image m_image;
158  bool m_imageHasBeenSet;
159 
160  int m_maxLabels;
161  bool m_maxLabelsHasBeenSet;
162 
163  double m_minConfidence;
164  bool m_minConfidenceHasBeenSet;
165  };
166 
167 } // namespace Model
168 } // namespace Rekognition
169 } // namespace Aws
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Rekognition::Model::DetectLabelsRequest::GetMinConfidence
double GetMinConfidence() const
Definition: DetectLabelsRequest.h:129
Aws::Rekognition::Model::DetectLabelsRequest::SetImage
void SetImage(Image &&value)
Definition: DetectLabelsRequest.h:75
Aws::Rekognition::Model::DetectLabelsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Rekognition::Model::DetectLabelsRequest::WithImage
DetectLabelsRequest & WithImage(Image &&value)
Definition: DetectLabelsRequest.h:95
Aws::Rekognition::Model::DetectLabelsRequest::MaxLabelsHasBeenSet
bool MaxLabelsHasBeenSet() const
Definition: DetectLabelsRequest.h:108
Aws::Rekognition::Model::DetectLabelsRequest::WithMaxLabels
DetectLabelsRequest & WithMaxLabels(int value)
Definition: DetectLabelsRequest.h:120
Image.h
Aws::Rekognition::Model::DetectLabelsRequest::ImageHasBeenSet
bool ImageHasBeenSet() const
Definition: DetectLabelsRequest.h:55
Aws::Rekognition::Model::DetectLabelsRequest::GetImage
const Image & GetImage() const
Definition: DetectLabelsRequest.h:45
Aws::Rekognition::Model::DetectLabelsRequest::WithImage
DetectLabelsRequest & WithImage(const Image &value)
Definition: DetectLabelsRequest.h:85
Aws::Rekognition::RekognitionRequest
Definition: RekognitionRequest.h:17
Aws::Rekognition::Model::DetectLabelsRequest::SetImage
void SetImage(const Image &value)
Definition: DetectLabelsRequest.h:65
Aws::Rekognition::Model::DetectLabelsRequest::WithMinConfidence
DetectLabelsRequest & WithMinConfidence(double value)
Definition: DetectLabelsRequest.h:153
Aws::Rekognition::Model::DetectLabelsRequest::SetMaxLabels
void SetMaxLabels(int value)
Definition: DetectLabelsRequest.h:114
Aws::Rekognition::Model::DetectLabelsRequest
Definition: DetectLabelsRequest.h:22
Aws::Rekognition::Model::DetectLabelsRequest::GetMaxLabels
int GetMaxLabels() const
Definition: DetectLabelsRequest.h:102
Aws::Rekognition::Model::DetectLabelsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Rekognition::Model::DetectLabelsRequest::DetectLabelsRequest
DetectLabelsRequest()
Aws::Rekognition::Model::DetectLabelsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DetectLabelsRequest.h:30
Aws::Rekognition::Model::Image
Definition: Image.h:51
AWS_REKOGNITION_API
#define AWS_REKOGNITION_API
Definition: Rekognition_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Rekognition_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Rekognition::Model::DetectLabelsRequest::MinConfidenceHasBeenSet
bool MinConfidenceHasBeenSet() const
Definition: DetectLabelsRequest.h:137
Aws::Rekognition::Model::DetectLabelsRequest::SetMinConfidence
void SetMinConfidence(double value)
Definition: DetectLabelsRequest.h:145
RekognitionRequest.h