AWS SDK for C++  1.9.40
AWS SDK for C++
CompareFacesRequest.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 "CompareFaces"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
46  inline const Image& GetSourceImage() const{ return m_sourceImage; }
47 
56  inline bool SourceImageHasBeenSet() const { return m_sourceImageHasBeenSet; }
57 
66  inline void SetSourceImage(const Image& value) { m_sourceImageHasBeenSet = true; m_sourceImage = value; }
67 
76  inline void SetSourceImage(Image&& value) { m_sourceImageHasBeenSet = true; m_sourceImage = std::move(value); }
77 
86  inline CompareFacesRequest& WithSourceImage(const Image& value) { SetSourceImage(value); return *this;}
87 
96  inline CompareFacesRequest& WithSourceImage(Image&& value) { SetSourceImage(std::move(value)); return *this;}
97 
98 
107  inline const Image& GetTargetImage() const{ return m_targetImage; }
108 
117  inline bool TargetImageHasBeenSet() const { return m_targetImageHasBeenSet; }
118 
127  inline void SetTargetImage(const Image& value) { m_targetImageHasBeenSet = true; m_targetImage = value; }
128 
137  inline void SetTargetImage(Image&& value) { m_targetImageHasBeenSet = true; m_targetImage = std::move(value); }
138 
147  inline CompareFacesRequest& WithTargetImage(const Image& value) { SetTargetImage(value); return *this;}
148 
157  inline CompareFacesRequest& WithTargetImage(Image&& value) { SetTargetImage(std::move(value)); return *this;}
158 
159 
164  inline double GetSimilarityThreshold() const{ return m_similarityThreshold; }
165 
170  inline bool SimilarityThresholdHasBeenSet() const { return m_similarityThresholdHasBeenSet; }
171 
176  inline void SetSimilarityThreshold(double value) { m_similarityThresholdHasBeenSet = true; m_similarityThreshold = value; }
177 
182  inline CompareFacesRequest& WithSimilarityThreshold(double value) { SetSimilarityThreshold(value); return *this;}
183 
184 
198  inline const QualityFilter& GetQualityFilter() const{ return m_qualityFilter; }
199 
213  inline bool QualityFilterHasBeenSet() const { return m_qualityFilterHasBeenSet; }
214 
228  inline void SetQualityFilter(const QualityFilter& value) { m_qualityFilterHasBeenSet = true; m_qualityFilter = value; }
229 
243  inline void SetQualityFilter(QualityFilter&& value) { m_qualityFilterHasBeenSet = true; m_qualityFilter = std::move(value); }
244 
258  inline CompareFacesRequest& WithQualityFilter(const QualityFilter& value) { SetQualityFilter(value); return *this;}
259 
273  inline CompareFacesRequest& WithQualityFilter(QualityFilter&& value) { SetQualityFilter(std::move(value)); return *this;}
274 
275  private:
276 
277  Image m_sourceImage;
278  bool m_sourceImageHasBeenSet;
279 
280  Image m_targetImage;
281  bool m_targetImageHasBeenSet;
282 
283  double m_similarityThreshold;
284  bool m_similarityThresholdHasBeenSet;
285 
286  QualityFilter m_qualityFilter;
287  bool m_qualityFilterHasBeenSet;
288  };
289 
290 } // namespace Model
291 } // namespace Rekognition
292 } // namespace Aws
Aws::Rekognition::Model::QualityFilter
QualityFilter
Definition: QualityFilter.h:17
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Rekognition::Model::CompareFacesRequest::GetTargetImage
const Image & GetTargetImage() const
Definition: CompareFacesRequest.h:107
Aws::Rekognition::Model::CompareFacesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Rekognition::Model::CompareFacesRequest::SetQualityFilter
void SetQualityFilter(const QualityFilter &value)
Definition: CompareFacesRequest.h:228
Aws::Rekognition::Model::CompareFacesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Rekognition::Model::CompareFacesRequest::WithSimilarityThreshold
CompareFacesRequest & WithSimilarityThreshold(double value)
Definition: CompareFacesRequest.h:182
Aws::Rekognition::Model::CompareFacesRequest::CompareFacesRequest
CompareFacesRequest()
Image.h
Aws::Rekognition::Model::CompareFacesRequest::WithTargetImage
CompareFacesRequest & WithTargetImage(Image &&value)
Definition: CompareFacesRequest.h:157
QualityFilter.h
Aws::Rekognition::Model::CompareFacesRequest::WithQualityFilter
CompareFacesRequest & WithQualityFilter(QualityFilter &&value)
Definition: CompareFacesRequest.h:273
Aws::Rekognition::Model::CompareFacesRequest::SetQualityFilter
void SetQualityFilter(QualityFilter &&value)
Definition: CompareFacesRequest.h:243
Aws::Rekognition::Model::CompareFacesRequest::GetQualityFilter
const QualityFilter & GetQualityFilter() const
Definition: CompareFacesRequest.h:198
Aws::Rekognition::RekognitionRequest
Definition: RekognitionRequest.h:17
Aws::Rekognition::Model::CompareFacesRequest::SetSimilarityThreshold
void SetSimilarityThreshold(double value)
Definition: CompareFacesRequest.h:176
Aws::Rekognition::Model::CompareFacesRequest::TargetImageHasBeenSet
bool TargetImageHasBeenSet() const
Definition: CompareFacesRequest.h:117
Aws::Rekognition::Model::CompareFacesRequest::SetTargetImage
void SetTargetImage(const Image &value)
Definition: CompareFacesRequest.h:127
Aws::Rekognition::Model::CompareFacesRequest::SetSourceImage
void SetSourceImage(const Image &value)
Definition: CompareFacesRequest.h:66
Aws::Rekognition::Model::CompareFacesRequest::GetSimilarityThreshold
double GetSimilarityThreshold() const
Definition: CompareFacesRequest.h:164
Aws::Rekognition::Model::CompareFacesRequest::SetSourceImage
void SetSourceImage(Image &&value)
Definition: CompareFacesRequest.h:76
Aws::Rekognition::Model::CompareFacesRequest::SourceImageHasBeenSet
bool SourceImageHasBeenSet() const
Definition: CompareFacesRequest.h:56
Aws::Rekognition::Model::CompareFacesRequest::SimilarityThresholdHasBeenSet
bool SimilarityThresholdHasBeenSet() const
Definition: CompareFacesRequest.h:170
Aws::Rekognition::Model::Image
Definition: Image.h:51
Aws::Rekognition::Model::CompareFacesRequest::WithTargetImage
CompareFacesRequest & WithTargetImage(const Image &value)
Definition: CompareFacesRequest.h:147
AWS_REKOGNITION_API
#define AWS_REKOGNITION_API
Definition: Rekognition_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::Rekognition::Model::CompareFacesRequest::WithSourceImage
CompareFacesRequest & WithSourceImage(const Image &value)
Definition: CompareFacesRequest.h:86
Rekognition_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Rekognition::Model::CompareFacesRequest::WithSourceImage
CompareFacesRequest & WithSourceImage(Image &&value)
Definition: CompareFacesRequest.h:96
Aws::Rekognition::Model::CompareFacesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CompareFacesRequest.h:31
Aws::Rekognition::Model::CompareFacesRequest::GetSourceImage
const Image & GetSourceImage() const
Definition: CompareFacesRequest.h:46
Aws::Rekognition::Model::CompareFacesRequest::WithQualityFilter
CompareFacesRequest & WithQualityFilter(const QualityFilter &value)
Definition: CompareFacesRequest.h:258
Aws::Rekognition::Model::CompareFacesRequest::SetTargetImage
void SetTargetImage(Image &&value)
Definition: CompareFacesRequest.h:137
Aws::Rekognition::Model::CompareFacesRequest
Definition: CompareFacesRequest.h:23
Aws::Rekognition::Model::CompareFacesRequest::QualityFilterHasBeenSet
bool QualityFilterHasBeenSet() const
Definition: CompareFacesRequest.h:213
RekognitionRequest.h