AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
CompareFacesRequest.h
1
6#pragma once
7#include <aws/rekognition/RekognitionRequest.h>
8#include <aws/rekognition/Rekognition_EXPORTS.h>
9#include <aws/rekognition/model/Image.h>
10#include <aws/rekognition/model/QualityFilter.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Rekognition {
16namespace Model {
17
21 public:
22 AWS_REKOGNITION_API CompareFacesRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CompareFaces"; }
29
30 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
31
32 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
43 inline const Image& GetSourceImage() const { return m_sourceImage; }
44 inline bool SourceImageHasBeenSet() const { return m_sourceImageHasBeenSet; }
45 template <typename SourceImageT = Image>
46 void SetSourceImage(SourceImageT&& value) {
47 m_sourceImageHasBeenSet = true;
48 m_sourceImage = std::forward<SourceImageT>(value);
49 }
50 template <typename SourceImageT = Image>
51 CompareFacesRequest& WithSourceImage(SourceImageT&& value) {
52 SetSourceImage(std::forward<SourceImageT>(value));
53 return *this;
54 }
56
58
66 inline const Image& GetTargetImage() const { return m_targetImage; }
67 inline bool TargetImageHasBeenSet() const { return m_targetImageHasBeenSet; }
68 template <typename TargetImageT = Image>
69 void SetTargetImage(TargetImageT&& value) {
70 m_targetImageHasBeenSet = true;
71 m_targetImage = std::forward<TargetImageT>(value);
72 }
73 template <typename TargetImageT = Image>
74 CompareFacesRequest& WithTargetImage(TargetImageT&& value) {
75 SetTargetImage(std::forward<TargetImageT>(value));
76 return *this;
77 }
79
81
85 inline double GetSimilarityThreshold() const { return m_similarityThreshold; }
86 inline bool SimilarityThresholdHasBeenSet() const { return m_similarityThresholdHasBeenSet; }
87 inline void SetSimilarityThreshold(double value) {
88 m_similarityThresholdHasBeenSet = true;
89 m_similarityThreshold = value;
90 }
93 return *this;
94 }
96
98
111 inline QualityFilter GetQualityFilter() const { return m_qualityFilter; }
112 inline bool QualityFilterHasBeenSet() const { return m_qualityFilterHasBeenSet; }
113 inline void SetQualityFilter(QualityFilter value) {
114 m_qualityFilterHasBeenSet = true;
115 m_qualityFilter = value;
116 }
118 SetQualityFilter(value);
119 return *this;
120 }
122 private:
123 Image m_sourceImage;
124 bool m_sourceImageHasBeenSet = false;
125
126 Image m_targetImage;
127 bool m_targetImageHasBeenSet = false;
128
129 double m_similarityThreshold{0.0};
130 bool m_similarityThresholdHasBeenSet = false;
131
132 QualityFilter m_qualityFilter{QualityFilter::NOT_SET};
133 bool m_qualityFilterHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace Rekognition
138} // namespace Aws
AWS_REKOGNITION_API CompareFacesRequest()=default
AWS_REKOGNITION_API Aws::String SerializePayload() const override
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CompareFacesRequest & WithQualityFilter(QualityFilter value)
virtual const char * GetServiceRequestName() const override
CompareFacesRequest & WithSimilarityThreshold(double value)
CompareFacesRequest & WithSourceImage(SourceImageT &&value)
CompareFacesRequest & WithTargetImage(TargetImageT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String