AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CompareFacesRequest.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/rekognition/model/QualityFilter.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Rekognition
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_REKOGNITION_API CompareFacesRequest();
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_REKOGNITION_API Aws::String SerializePayload() const override;
34
35 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
47 inline const Image& GetSourceImage() const{ return m_sourceImage; }
48 inline bool SourceImageHasBeenSet() const { return m_sourceImageHasBeenSet; }
49 inline void SetSourceImage(const Image& value) { m_sourceImageHasBeenSet = true; m_sourceImage = value; }
50 inline void SetSourceImage(Image&& value) { m_sourceImageHasBeenSet = true; m_sourceImage = std::move(value); }
51 inline CompareFacesRequest& WithSourceImage(const Image& value) { SetSourceImage(value); return *this;}
52 inline CompareFacesRequest& WithSourceImage(Image&& value) { SetSourceImage(std::move(value)); return *this;}
54
56
64 inline const Image& GetTargetImage() const{ return m_targetImage; }
65 inline bool TargetImageHasBeenSet() const { return m_targetImageHasBeenSet; }
66 inline void SetTargetImage(const Image& value) { m_targetImageHasBeenSet = true; m_targetImage = value; }
67 inline void SetTargetImage(Image&& value) { m_targetImageHasBeenSet = true; m_targetImage = std::move(value); }
68 inline CompareFacesRequest& WithTargetImage(const Image& value) { SetTargetImage(value); return *this;}
69 inline CompareFacesRequest& WithTargetImage(Image&& value) { SetTargetImage(std::move(value)); return *this;}
71
73
77 inline double GetSimilarityThreshold() const{ return m_similarityThreshold; }
78 inline bool SimilarityThresholdHasBeenSet() const { return m_similarityThresholdHasBeenSet; }
79 inline void SetSimilarityThreshold(double value) { m_similarityThresholdHasBeenSet = true; m_similarityThreshold = value; }
80 inline CompareFacesRequest& WithSimilarityThreshold(double value) { SetSimilarityThreshold(value); return *this;}
82
84
97 inline const QualityFilter& GetQualityFilter() const{ return m_qualityFilter; }
98 inline bool QualityFilterHasBeenSet() const { return m_qualityFilterHasBeenSet; }
99 inline void SetQualityFilter(const QualityFilter& value) { m_qualityFilterHasBeenSet = true; m_qualityFilter = value; }
100 inline void SetQualityFilter(QualityFilter&& value) { m_qualityFilterHasBeenSet = true; m_qualityFilter = std::move(value); }
101 inline CompareFacesRequest& WithQualityFilter(const QualityFilter& value) { SetQualityFilter(value); return *this;}
102 inline CompareFacesRequest& WithQualityFilter(QualityFilter&& value) { SetQualityFilter(std::move(value)); return *this;}
104 private:
105
106 Image m_sourceImage;
107 bool m_sourceImageHasBeenSet = false;
108
109 Image m_targetImage;
110 bool m_targetImageHasBeenSet = false;
111
112 double m_similarityThreshold;
113 bool m_similarityThresholdHasBeenSet = false;
114
115 QualityFilter m_qualityFilter;
116 bool m_qualityFilterHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace Rekognition
121} // namespace Aws
CompareFacesRequest & WithTargetImage(Image &&value)
void SetQualityFilter(const QualityFilter &value)
CompareFacesRequest & WithSourceImage(Image &&value)
AWS_REKOGNITION_API Aws::String SerializePayload() const override
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CompareFacesRequest & WithSourceImage(const Image &value)
virtual const char * GetServiceRequestName() const override
CompareFacesRequest & WithSimilarityThreshold(double value)
CompareFacesRequest & WithTargetImage(const Image &value)
CompareFacesRequest & WithQualityFilter(QualityFilter &&value)
CompareFacesRequest & WithQualityFilter(const QualityFilter &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String