AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
CompareFacesResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/rekognition/Rekognition_EXPORTS.h>
10#include <aws/rekognition/model/CompareFacesMatch.h>
11#include <aws/rekognition/model/ComparedFace.h>
12#include <aws/rekognition/model/ComparedSourceImageFace.h>
13#include <aws/rekognition/model/OrientationCorrection.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace Rekognition {
27namespace Model {
29 public:
30 AWS_REKOGNITION_API CompareFacesResult() = default;
33
35
38 inline const ComparedSourceImageFace& GetSourceImageFace() const { return m_sourceImageFace; }
39 template <typename SourceImageFaceT = ComparedSourceImageFace>
40 void SetSourceImageFace(SourceImageFaceT&& value) {
41 m_sourceImageFaceHasBeenSet = true;
42 m_sourceImageFace = std::forward<SourceImageFaceT>(value);
43 }
44 template <typename SourceImageFaceT = ComparedSourceImageFace>
45 CompareFacesResult& WithSourceImageFace(SourceImageFaceT&& value) {
46 SetSourceImageFace(std::forward<SourceImageFaceT>(value));
47 return *this;
48 }
50
52
58 inline const Aws::Vector<CompareFacesMatch>& GetFaceMatches() const { return m_faceMatches; }
59 template <typename FaceMatchesT = Aws::Vector<CompareFacesMatch>>
60 void SetFaceMatches(FaceMatchesT&& value) {
61 m_faceMatchesHasBeenSet = true;
62 m_faceMatches = std::forward<FaceMatchesT>(value);
63 }
64 template <typename FaceMatchesT = Aws::Vector<CompareFacesMatch>>
65 CompareFacesResult& WithFaceMatches(FaceMatchesT&& value) {
66 SetFaceMatches(std::forward<FaceMatchesT>(value));
67 return *this;
68 }
69 template <typename FaceMatchesT = CompareFacesMatch>
70 CompareFacesResult& AddFaceMatches(FaceMatchesT&& value) {
71 m_faceMatchesHasBeenSet = true;
72 m_faceMatches.emplace_back(std::forward<FaceMatchesT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::Vector<ComparedFace>& GetUnmatchedFaces() const { return m_unmatchedFaces; }
83 template <typename UnmatchedFacesT = Aws::Vector<ComparedFace>>
84 void SetUnmatchedFaces(UnmatchedFacesT&& value) {
85 m_unmatchedFacesHasBeenSet = true;
86 m_unmatchedFaces = std::forward<UnmatchedFacesT>(value);
87 }
88 template <typename UnmatchedFacesT = Aws::Vector<ComparedFace>>
89 CompareFacesResult& WithUnmatchedFaces(UnmatchedFacesT&& value) {
90 SetUnmatchedFaces(std::forward<UnmatchedFacesT>(value));
91 return *this;
92 }
93 template <typename UnmatchedFacesT = ComparedFace>
94 CompareFacesResult& AddUnmatchedFaces(UnmatchedFacesT&& value) {
95 m_unmatchedFacesHasBeenSet = true;
96 m_unmatchedFaces.emplace_back(std::forward<UnmatchedFacesT>(value));
97 return *this;
98 }
100
102
115 inline OrientationCorrection GetSourceImageOrientationCorrection() const { return m_sourceImageOrientationCorrection; }
117 m_sourceImageOrientationCorrectionHasBeenSet = true;
118 m_sourceImageOrientationCorrection = value;
119 }
122 return *this;
123 }
125
127
140 inline OrientationCorrection GetTargetImageOrientationCorrection() const { return m_targetImageOrientationCorrection; }
142 m_targetImageOrientationCorrectionHasBeenSet = true;
143 m_targetImageOrientationCorrection = value;
144 }
147 return *this;
148 }
150
152
153 inline const Aws::String& GetRequestId() const { return m_requestId; }
154 template <typename RequestIdT = Aws::String>
155 void SetRequestId(RequestIdT&& value) {
156 m_requestIdHasBeenSet = true;
157 m_requestId = std::forward<RequestIdT>(value);
158 }
159 template <typename RequestIdT = Aws::String>
160 CompareFacesResult& WithRequestId(RequestIdT&& value) {
161 SetRequestId(std::forward<RequestIdT>(value));
162 return *this;
163 }
165 private:
166 ComparedSourceImageFace m_sourceImageFace;
167 bool m_sourceImageFaceHasBeenSet = false;
168
169 Aws::Vector<CompareFacesMatch> m_faceMatches;
170 bool m_faceMatchesHasBeenSet = false;
171
172 Aws::Vector<ComparedFace> m_unmatchedFaces;
173 bool m_unmatchedFacesHasBeenSet = false;
174
175 OrientationCorrection m_sourceImageOrientationCorrection{OrientationCorrection::NOT_SET};
176 bool m_sourceImageOrientationCorrectionHasBeenSet = false;
177
178 OrientationCorrection m_targetImageOrientationCorrection{OrientationCorrection::NOT_SET};
179 bool m_targetImageOrientationCorrectionHasBeenSet = false;
180
181 Aws::String m_requestId;
182 bool m_requestIdHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace Rekognition
187} // namespace Aws
void SetSourceImageOrientationCorrection(OrientationCorrection value)
const ComparedSourceImageFace & GetSourceImageFace() const
AWS_REKOGNITION_API CompareFacesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< CompareFacesMatch > & GetFaceMatches() const
const Aws::Vector< ComparedFace > & GetUnmatchedFaces() const
CompareFacesResult & AddUnmatchedFaces(UnmatchedFacesT &&value)
CompareFacesResult & WithSourceImageOrientationCorrection(OrientationCorrection value)
CompareFacesResult & WithUnmatchedFaces(UnmatchedFacesT &&value)
CompareFacesResult & WithSourceImageFace(SourceImageFaceT &&value)
CompareFacesResult & AddFaceMatches(FaceMatchesT &&value)
CompareFacesResult & WithFaceMatches(FaceMatchesT &&value)
AWS_REKOGNITION_API CompareFacesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetTargetImageOrientationCorrection(OrientationCorrection value)
void SetUnmatchedFaces(UnmatchedFacesT &&value)
AWS_REKOGNITION_API CompareFacesResult()=default
CompareFacesResult & WithRequestId(RequestIdT &&value)
void SetSourceImageFace(SourceImageFaceT &&value)
CompareFacesResult & WithTargetImageOrientationCorrection(OrientationCorrection value)
OrientationCorrection GetSourceImageOrientationCorrection() const
OrientationCorrection GetTargetImageOrientationCorrection() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue