AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
38
39
41
44 inline const ComparedSourceImageFace& GetSourceImageFace() const{ return m_sourceImageFace; }
45 inline void SetSourceImageFace(const ComparedSourceImageFace& value) { m_sourceImageFace = value; }
46 inline void SetSourceImageFace(ComparedSourceImageFace&& value) { m_sourceImageFace = std::move(value); }
48 inline CompareFacesResult& WithSourceImageFace(ComparedSourceImageFace&& value) { SetSourceImageFace(std::move(value)); return *this;}
50
52
58 inline const Aws::Vector<CompareFacesMatch>& GetFaceMatches() const{ return m_faceMatches; }
59 inline void SetFaceMatches(const Aws::Vector<CompareFacesMatch>& value) { m_faceMatches = value; }
60 inline void SetFaceMatches(Aws::Vector<CompareFacesMatch>&& value) { m_faceMatches = std::move(value); }
62 inline CompareFacesResult& WithFaceMatches(Aws::Vector<CompareFacesMatch>&& value) { SetFaceMatches(std::move(value)); return *this;}
63 inline CompareFacesResult& AddFaceMatches(const CompareFacesMatch& value) { m_faceMatches.push_back(value); return *this; }
64 inline CompareFacesResult& AddFaceMatches(CompareFacesMatch&& value) { m_faceMatches.push_back(std::move(value)); return *this; }
66
68
72 inline const Aws::Vector<ComparedFace>& GetUnmatchedFaces() const{ return m_unmatchedFaces; }
73 inline void SetUnmatchedFaces(const Aws::Vector<ComparedFace>& value) { m_unmatchedFaces = value; }
74 inline void SetUnmatchedFaces(Aws::Vector<ComparedFace>&& value) { m_unmatchedFaces = std::move(value); }
76 inline CompareFacesResult& WithUnmatchedFaces(Aws::Vector<ComparedFace>&& value) { SetUnmatchedFaces(std::move(value)); return *this;}
77 inline CompareFacesResult& AddUnmatchedFaces(const ComparedFace& value) { m_unmatchedFaces.push_back(value); return *this; }
78 inline CompareFacesResult& AddUnmatchedFaces(ComparedFace&& value) { m_unmatchedFaces.push_back(std::move(value)); return *this; }
80
82
95 inline const OrientationCorrection& GetSourceImageOrientationCorrection() const{ return m_sourceImageOrientationCorrection; }
96 inline void SetSourceImageOrientationCorrection(const OrientationCorrection& value) { m_sourceImageOrientationCorrection = value; }
97 inline void SetSourceImageOrientationCorrection(OrientationCorrection&& value) { m_sourceImageOrientationCorrection = std::move(value); }
101
103
116 inline const OrientationCorrection& GetTargetImageOrientationCorrection() const{ return m_targetImageOrientationCorrection; }
117 inline void SetTargetImageOrientationCorrection(const OrientationCorrection& value) { m_targetImageOrientationCorrection = value; }
118 inline void SetTargetImageOrientationCorrection(OrientationCorrection&& value) { m_targetImageOrientationCorrection = std::move(value); }
122
124
125 inline const Aws::String& GetRequestId() const{ return m_requestId; }
126 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
127 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
128 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
129 inline CompareFacesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
130 inline CompareFacesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
131 inline CompareFacesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
133 private:
134
135 ComparedSourceImageFace m_sourceImageFace;
136
137 Aws::Vector<CompareFacesMatch> m_faceMatches;
138
139 Aws::Vector<ComparedFace> m_unmatchedFaces;
140
141 OrientationCorrection m_sourceImageOrientationCorrection;
142
143 OrientationCorrection m_targetImageOrientationCorrection;
144
145 Aws::String m_requestId;
146 };
147
148} // namespace Model
149} // namespace Rekognition
150} // namespace Aws
const ComparedSourceImageFace & GetSourceImageFace() const
AWS_REKOGNITION_API CompareFacesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CompareFacesResult & WithTargetImageOrientationCorrection(const OrientationCorrection &value)
CompareFacesResult & WithRequestId(const Aws::String &value)
const Aws::Vector< CompareFacesMatch > & GetFaceMatches() const
const Aws::Vector< ComparedFace > & GetUnmatchedFaces() const
void SetFaceMatches(const Aws::Vector< CompareFacesMatch > &value)
CompareFacesResult & WithFaceMatches(Aws::Vector< CompareFacesMatch > &&value)
CompareFacesResult & AddUnmatchedFaces(const ComparedFace &value)
void SetFaceMatches(Aws::Vector< CompareFacesMatch > &&value)
CompareFacesResult & WithUnmatchedFaces(const Aws::Vector< ComparedFace > &value)
CompareFacesResult & WithSourceImageFace(ComparedSourceImageFace &&value)
CompareFacesResult & WithRequestId(const char *value)
void SetTargetImageOrientationCorrection(const OrientationCorrection &value)
void SetTargetImageOrientationCorrection(OrientationCorrection &&value)
const OrientationCorrection & GetSourceImageOrientationCorrection() const
CompareFacesResult & WithFaceMatches(const Aws::Vector< CompareFacesMatch > &value)
CompareFacesResult & WithRequestId(Aws::String &&value)
void SetSourceImageOrientationCorrection(const OrientationCorrection &value)
void SetUnmatchedFaces(Aws::Vector< ComparedFace > &&value)
CompareFacesResult & WithSourceImageOrientationCorrection(const OrientationCorrection &value)
AWS_REKOGNITION_API CompareFacesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CompareFacesResult & WithUnmatchedFaces(Aws::Vector< ComparedFace > &&value)
void SetSourceImageFace(const ComparedSourceImageFace &value)
void SetSourceImageFace(ComparedSourceImageFace &&value)
CompareFacesResult & AddUnmatchedFaces(ComparedFace &&value)
CompareFacesResult & WithSourceImageOrientationCorrection(OrientationCorrection &&value)
void SetUnmatchedFaces(const Aws::Vector< ComparedFace > &value)
void SetSourceImageOrientationCorrection(OrientationCorrection &&value)
CompareFacesResult & WithTargetImageOrientationCorrection(OrientationCorrection &&value)
const OrientationCorrection & GetTargetImageOrientationCorrection() const
CompareFacesResult & AddFaceMatches(CompareFacesMatch &&value)
CompareFacesResult & AddFaceMatches(const CompareFacesMatch &value)
CompareFacesResult & WithSourceImageFace(const ComparedSourceImageFace &value)
void SetRequestId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue