AWS SDK for C++  1.9.159
AWS SDK for C++
DetectCustomLabelsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Rekognition
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "DetectCustomLabels"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetProjectVersionArn() const{ return m_projectVersionArn; }
42 
46  inline bool ProjectVersionArnHasBeenSet() const { return m_projectVersionArnHasBeenSet; }
47 
51  inline void SetProjectVersionArn(const Aws::String& value) { m_projectVersionArnHasBeenSet = true; m_projectVersionArn = value; }
52 
56  inline void SetProjectVersionArn(Aws::String&& value) { m_projectVersionArnHasBeenSet = true; m_projectVersionArn = std::move(value); }
57 
61  inline void SetProjectVersionArn(const char* value) { m_projectVersionArnHasBeenSet = true; m_projectVersionArn.assign(value); }
62 
66  inline DetectCustomLabelsRequest& WithProjectVersionArn(const Aws::String& value) { SetProjectVersionArn(value); return *this;}
67 
71  inline DetectCustomLabelsRequest& WithProjectVersionArn(Aws::String&& value) { SetProjectVersionArn(std::move(value)); return *this;}
72 
76  inline DetectCustomLabelsRequest& WithProjectVersionArn(const char* value) { SetProjectVersionArn(value); return *this;}
77 
78 
79 
80  inline const Image& GetImage() const{ return m_image; }
81 
82 
83  inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
84 
85 
86  inline void SetImage(const Image& value) { m_imageHasBeenSet = true; m_image = value; }
87 
88 
89  inline void SetImage(Image&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
90 
91 
92  inline DetectCustomLabelsRequest& WithImage(const Image& value) { SetImage(value); return *this;}
93 
94 
95  inline DetectCustomLabelsRequest& WithImage(Image&& value) { SetImage(std::move(value)); return *this;}
96 
97 
103  inline int GetMaxResults() const{ return m_maxResults; }
104 
110  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
111 
117  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
118 
124  inline DetectCustomLabelsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
125 
126 
136  inline double GetMinConfidence() const{ return m_minConfidence; }
137 
147  inline bool MinConfidenceHasBeenSet() const { return m_minConfidenceHasBeenSet; }
148 
158  inline void SetMinConfidence(double value) { m_minConfidenceHasBeenSet = true; m_minConfidence = value; }
159 
169  inline DetectCustomLabelsRequest& WithMinConfidence(double value) { SetMinConfidence(value); return *this;}
170 
171  private:
172 
173  Aws::String m_projectVersionArn;
174  bool m_projectVersionArnHasBeenSet;
175 
176  Image m_image;
177  bool m_imageHasBeenSet;
178 
179  int m_maxResults;
180  bool m_maxResultsHasBeenSet;
181 
182  double m_minConfidence;
183  bool m_minConfidenceHasBeenSet;
184  };
185 
186 } // namespace Model
187 } // namespace Rekognition
188 } // namespace Aws
Aws::Rekognition::Model::DetectCustomLabelsRequest::GetProjectVersionArn
const Aws::String & GetProjectVersionArn() const
Definition: DetectCustomLabelsRequest.h:41
Aws::Rekognition::Model::DetectCustomLabelsRequest::WithProjectVersionArn
DetectCustomLabelsRequest & WithProjectVersionArn(const char *value)
Definition: DetectCustomLabelsRequest.h:76
Aws::Rekognition::Model::DetectCustomLabelsRequest::DetectCustomLabelsRequest
DetectCustomLabelsRequest()
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Rekognition::Model::DetectCustomLabelsRequest::SetProjectVersionArn
void SetProjectVersionArn(const char *value)
Definition: DetectCustomLabelsRequest.h:61
Aws::Rekognition::Model::DetectCustomLabelsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Rekognition::Model::DetectCustomLabelsRequest::WithProjectVersionArn
DetectCustomLabelsRequest & WithProjectVersionArn(const Aws::String &value)
Definition: DetectCustomLabelsRequest.h:66
Aws::Rekognition::Model::DetectCustomLabelsRequest::WithMinConfidence
DetectCustomLabelsRequest & WithMinConfidence(double value)
Definition: DetectCustomLabelsRequest.h:169
Aws::Rekognition::Model::DetectCustomLabelsRequest::WithImage
DetectCustomLabelsRequest & WithImage(const Image &value)
Definition: DetectCustomLabelsRequest.h:92
Aws::Rekognition::Model::DetectCustomLabelsRequest::GetImage
const Image & GetImage() const
Definition: DetectCustomLabelsRequest.h:80
Image.h
Aws::Rekognition::Model::DetectCustomLabelsRequest::SetMinConfidence
void SetMinConfidence(double value)
Definition: DetectCustomLabelsRequest.h:158
Aws::Rekognition::Model::DetectCustomLabelsRequest::ProjectVersionArnHasBeenSet
bool ProjectVersionArnHasBeenSet() const
Definition: DetectCustomLabelsRequest.h:46
Aws::Rekognition::Model::DetectCustomLabelsRequest::WithProjectVersionArn
DetectCustomLabelsRequest & WithProjectVersionArn(Aws::String &&value)
Definition: DetectCustomLabelsRequest.h:71
Aws::Rekognition::RekognitionRequest
Definition: RekognitionRequest.h:17
Aws::Rekognition::Model::DetectCustomLabelsRequest::WithMaxResults
DetectCustomLabelsRequest & WithMaxResults(int value)
Definition: DetectCustomLabelsRequest.h:124
AWSString.h
Aws::Rekognition::Model::DetectCustomLabelsRequest::MinConfidenceHasBeenSet
bool MinConfidenceHasBeenSet() const
Definition: DetectCustomLabelsRequest.h:147
Aws::Rekognition::Model::DetectCustomLabelsRequest::GetMaxResults
int GetMaxResults() const
Definition: DetectCustomLabelsRequest.h:103
Aws::Rekognition::Model::DetectCustomLabelsRequest::ImageHasBeenSet
bool ImageHasBeenSet() const
Definition: DetectCustomLabelsRequest.h:83
Aws::Rekognition::Model::DetectCustomLabelsRequest
Definition: DetectCustomLabelsRequest.h:23
Aws::Rekognition::Model::DetectCustomLabelsRequest::GetMinConfidence
double GetMinConfidence() const
Definition: DetectCustomLabelsRequest.h:136
Aws::Rekognition::Model::DetectCustomLabelsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DetectCustomLabelsRequest.h:117
Aws::Rekognition::Model::DetectCustomLabelsRequest::SetImage
void SetImage(const Image &value)
Definition: DetectCustomLabelsRequest.h:86
Aws::Rekognition::Model::DetectCustomLabelsRequest::SetImage
void SetImage(Image &&value)
Definition: DetectCustomLabelsRequest.h:89
Aws::Rekognition::Model::DetectCustomLabelsRequest::WithImage
DetectCustomLabelsRequest & WithImage(Image &&value)
Definition: DetectCustomLabelsRequest.h:95
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::DetectCustomLabelsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Rekognition::Model::DetectCustomLabelsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DetectCustomLabelsRequest.h:110
Aws::Rekognition::Model::DetectCustomLabelsRequest::SetProjectVersionArn
void SetProjectVersionArn(const Aws::String &value)
Definition: DetectCustomLabelsRequest.h:51
Aws::Rekognition::Model::DetectCustomLabelsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DetectCustomLabelsRequest.h:31
Aws::Rekognition::Model::DetectCustomLabelsRequest::SetProjectVersionArn
void SetProjectVersionArn(Aws::String &&value)
Definition: DetectCustomLabelsRequest.h:56
RekognitionRequest.h