AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CompareFacesResult.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/rekognition/model/ComparedSourceImageFace.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/rekognition/model/OrientationCorrection.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/rekognition/model/CompareFacesMatch.h>
13#include <aws/rekognition/model/ComparedFace.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace Rekognition
29{
30namespace Model
31{
33 {
34 public:
35 AWS_REKOGNITION_API CompareFacesResult() = default;
38
39
41
44 inline const ComparedSourceImageFace& GetSourceImageFace() const { return m_sourceImageFace; }
45 template<typename SourceImageFaceT = ComparedSourceImageFace>
46 void SetSourceImageFace(SourceImageFaceT&& value) { m_sourceImageFaceHasBeenSet = true; m_sourceImageFace = std::forward<SourceImageFaceT>(value); }
47 template<typename SourceImageFaceT = ComparedSourceImageFace>
48 CompareFacesResult& WithSourceImageFace(SourceImageFaceT&& value) { SetSourceImageFace(std::forward<SourceImageFaceT>(value)); return *this;}
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) { m_faceMatchesHasBeenSet = true; m_faceMatches = std::forward<FaceMatchesT>(value); }
61 template<typename FaceMatchesT = Aws::Vector<CompareFacesMatch>>
62 CompareFacesResult& WithFaceMatches(FaceMatchesT&& value) { SetFaceMatches(std::forward<FaceMatchesT>(value)); return *this;}
63 template<typename FaceMatchesT = CompareFacesMatch>
64 CompareFacesResult& AddFaceMatches(FaceMatchesT&& value) { m_faceMatchesHasBeenSet = true; m_faceMatches.emplace_back(std::forward<FaceMatchesT>(value)); return *this; }
66
68
72 inline const Aws::Vector<ComparedFace>& GetUnmatchedFaces() const { return m_unmatchedFaces; }
73 template<typename UnmatchedFacesT = Aws::Vector<ComparedFace>>
74 void SetUnmatchedFaces(UnmatchedFacesT&& value) { m_unmatchedFacesHasBeenSet = true; m_unmatchedFaces = std::forward<UnmatchedFacesT>(value); }
75 template<typename UnmatchedFacesT = Aws::Vector<ComparedFace>>
76 CompareFacesResult& WithUnmatchedFaces(UnmatchedFacesT&& value) { SetUnmatchedFaces(std::forward<UnmatchedFacesT>(value)); return *this;}
77 template<typename UnmatchedFacesT = ComparedFace>
78 CompareFacesResult& AddUnmatchedFaces(UnmatchedFacesT&& value) { m_unmatchedFacesHasBeenSet = true; m_unmatchedFaces.emplace_back(std::forward<UnmatchedFacesT>(value)); return *this; }
80
82
95 inline OrientationCorrection GetSourceImageOrientationCorrection() const { return m_sourceImageOrientationCorrection; }
96 inline void SetSourceImageOrientationCorrection(OrientationCorrection value) { m_sourceImageOrientationCorrectionHasBeenSet = true; m_sourceImageOrientationCorrection = value; }
99
101
114 inline OrientationCorrection GetTargetImageOrientationCorrection() const { return m_targetImageOrientationCorrection; }
115 inline void SetTargetImageOrientationCorrection(OrientationCorrection value) { m_targetImageOrientationCorrectionHasBeenSet = true; m_targetImageOrientationCorrection = value; }
118
120
121 inline const Aws::String& GetRequestId() const { return m_requestId; }
122 template<typename RequestIdT = Aws::String>
123 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
124 template<typename RequestIdT = Aws::String>
125 CompareFacesResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
127 private:
128
129 ComparedSourceImageFace m_sourceImageFace;
130 bool m_sourceImageFaceHasBeenSet = false;
131
132 Aws::Vector<CompareFacesMatch> m_faceMatches;
133 bool m_faceMatchesHasBeenSet = false;
134
135 Aws::Vector<ComparedFace> m_unmatchedFaces;
136 bool m_unmatchedFacesHasBeenSet = false;
137
138 OrientationCorrection m_sourceImageOrientationCorrection{OrientationCorrection::NOT_SET};
139 bool m_sourceImageOrientationCorrectionHasBeenSet = false;
140
141 OrientationCorrection m_targetImageOrientationCorrection{OrientationCorrection::NOT_SET};
142 bool m_targetImageOrientationCorrectionHasBeenSet = false;
143
144 Aws::String m_requestId;
145 bool m_requestIdHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace Rekognition
150} // 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