AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
CompareFacesResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/rekognition/Rekognition_EXPORTS.h>
11#include <aws/rekognition/model/CompareFacesMatch.h>
12#include <aws/rekognition/model/ComparedFace.h>
13#include <aws/rekognition/model/ComparedSourceImageFace.h>
14#include <aws/rekognition/model/OrientationCorrection.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace Rekognition {
28namespace Model {
30 public:
31 AWS_REKOGNITION_API CompareFacesResult() = default;
34
36
39 inline const ComparedSourceImageFace& GetSourceImageFace() const { return m_sourceImageFace; }
40 template <typename SourceImageFaceT = ComparedSourceImageFace>
41 void SetSourceImageFace(SourceImageFaceT&& value) {
42 m_sourceImageFaceHasBeenSet = true;
43 m_sourceImageFace = std::forward<SourceImageFaceT>(value);
44 }
45 template <typename SourceImageFaceT = ComparedSourceImageFace>
46 CompareFacesResult& WithSourceImageFace(SourceImageFaceT&& value) {
47 SetSourceImageFace(std::forward<SourceImageFaceT>(value));
48 return *this;
49 }
51
53
59 inline const Aws::Vector<CompareFacesMatch>& GetFaceMatches() const { return m_faceMatches; }
60 template <typename FaceMatchesT = Aws::Vector<CompareFacesMatch>>
61 void SetFaceMatches(FaceMatchesT&& value) {
62 m_faceMatchesHasBeenSet = true;
63 m_faceMatches = std::forward<FaceMatchesT>(value);
64 }
65 template <typename FaceMatchesT = Aws::Vector<CompareFacesMatch>>
66 CompareFacesResult& WithFaceMatches(FaceMatchesT&& value) {
67 SetFaceMatches(std::forward<FaceMatchesT>(value));
68 return *this;
69 }
70 template <typename FaceMatchesT = CompareFacesMatch>
71 CompareFacesResult& AddFaceMatches(FaceMatchesT&& value) {
72 m_faceMatchesHasBeenSet = true;
73 m_faceMatches.emplace_back(std::forward<FaceMatchesT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::Vector<ComparedFace>& GetUnmatchedFaces() const { return m_unmatchedFaces; }
84 template <typename UnmatchedFacesT = Aws::Vector<ComparedFace>>
85 void SetUnmatchedFaces(UnmatchedFacesT&& value) {
86 m_unmatchedFacesHasBeenSet = true;
87 m_unmatchedFaces = std::forward<UnmatchedFacesT>(value);
88 }
89 template <typename UnmatchedFacesT = Aws::Vector<ComparedFace>>
90 CompareFacesResult& WithUnmatchedFaces(UnmatchedFacesT&& value) {
91 SetUnmatchedFaces(std::forward<UnmatchedFacesT>(value));
92 return *this;
93 }
94 template <typename UnmatchedFacesT = ComparedFace>
95 CompareFacesResult& AddUnmatchedFaces(UnmatchedFacesT&& value) {
96 m_unmatchedFacesHasBeenSet = true;
97 m_unmatchedFaces.emplace_back(std::forward<UnmatchedFacesT>(value));
98 return *this;
99 }
101
103
116 inline OrientationCorrection GetSourceImageOrientationCorrection() const { return m_sourceImageOrientationCorrection; }
118 m_sourceImageOrientationCorrectionHasBeenSet = true;
119 m_sourceImageOrientationCorrection = value;
120 }
123 return *this;
124 }
126
128
141 inline OrientationCorrection GetTargetImageOrientationCorrection() const { return m_targetImageOrientationCorrection; }
143 m_targetImageOrientationCorrectionHasBeenSet = true;
144 m_targetImageOrientationCorrection = value;
145 }
148 return *this;
149 }
151
153
154 inline const Aws::String& GetRequestId() const { return m_requestId; }
155 template <typename RequestIdT = Aws::String>
156 void SetRequestId(RequestIdT&& value) {
157 m_requestIdHasBeenSet = true;
158 m_requestId = std::forward<RequestIdT>(value);
159 }
160 template <typename RequestIdT = Aws::String>
161 CompareFacesResult& WithRequestId(RequestIdT&& value) {
162 SetRequestId(std::forward<RequestIdT>(value));
163 return *this;
164 }
166 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
167
168 private:
169 ComparedSourceImageFace m_sourceImageFace;
170
171 Aws::Vector<CompareFacesMatch> m_faceMatches;
172
173 Aws::Vector<ComparedFace> m_unmatchedFaces;
174
175 OrientationCorrection m_sourceImageOrientationCorrection{OrientationCorrection::NOT_SET};
176
177 OrientationCorrection m_targetImageOrientationCorrection{OrientationCorrection::NOT_SET};
178
179 Aws::String m_requestId;
180 Aws::Http::HttpResponseCode m_HttpResponseCode;
181 bool m_sourceImageFaceHasBeenSet = false;
182 bool m_faceMatchesHasBeenSet = false;
183 bool m_unmatchedFacesHasBeenSet = false;
184 bool m_sourceImageOrientationCorrectionHasBeenSet = false;
185 bool m_targetImageOrientationCorrectionHasBeenSet = false;
186 bool m_requestIdHasBeenSet = false;
187};
188
189} // namespace Model
190} // namespace Rekognition
191} // 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
Aws::Http::HttpResponseCode GetHttpResponseCode() 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