AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SearchFacesByImageResult.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/rekognition/model/BoundingBox.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/rekognition/model/FaceMatch.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace Rekognition
27{
28namespace Model
29{
31 {
32 public:
33 AWS_REKOGNITION_API SearchFacesByImageResult() = default;
36
37
39
43 inline const BoundingBox& GetSearchedFaceBoundingBox() const { return m_searchedFaceBoundingBox; }
44 template<typename SearchedFaceBoundingBoxT = BoundingBox>
45 void SetSearchedFaceBoundingBox(SearchedFaceBoundingBoxT&& value) { m_searchedFaceBoundingBoxHasBeenSet = true; m_searchedFaceBoundingBox = std::forward<SearchedFaceBoundingBoxT>(value); }
46 template<typename SearchedFaceBoundingBoxT = BoundingBox>
47 SearchFacesByImageResult& WithSearchedFaceBoundingBox(SearchedFaceBoundingBoxT&& value) { SetSearchedFaceBoundingBox(std::forward<SearchedFaceBoundingBoxT>(value)); return *this;}
49
51
55 inline double GetSearchedFaceConfidence() const { return m_searchedFaceConfidence; }
56 inline void SetSearchedFaceConfidence(double value) { m_searchedFaceConfidenceHasBeenSet = true; m_searchedFaceConfidence = value; }
59
61
65 inline const Aws::Vector<FaceMatch>& GetFaceMatches() const { return m_faceMatches; }
66 template<typename FaceMatchesT = Aws::Vector<FaceMatch>>
67 void SetFaceMatches(FaceMatchesT&& value) { m_faceMatchesHasBeenSet = true; m_faceMatches = std::forward<FaceMatchesT>(value); }
68 template<typename FaceMatchesT = Aws::Vector<FaceMatch>>
69 SearchFacesByImageResult& WithFaceMatches(FaceMatchesT&& value) { SetFaceMatches(std::forward<FaceMatchesT>(value)); return *this;}
70 template<typename FaceMatchesT = FaceMatch>
71 SearchFacesByImageResult& AddFaceMatches(FaceMatchesT&& value) { m_faceMatchesHasBeenSet = true; m_faceMatches.emplace_back(std::forward<FaceMatchesT>(value)); return *this; }
73
75
79 inline const Aws::String& GetFaceModelVersion() const { return m_faceModelVersion; }
80 template<typename FaceModelVersionT = Aws::String>
81 void SetFaceModelVersion(FaceModelVersionT&& value) { m_faceModelVersionHasBeenSet = true; m_faceModelVersion = std::forward<FaceModelVersionT>(value); }
82 template<typename FaceModelVersionT = Aws::String>
83 SearchFacesByImageResult& WithFaceModelVersion(FaceModelVersionT&& value) { SetFaceModelVersion(std::forward<FaceModelVersionT>(value)); return *this;}
85
87
88 inline const Aws::String& GetRequestId() const { return m_requestId; }
89 template<typename RequestIdT = Aws::String>
90 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
91 template<typename RequestIdT = Aws::String>
92 SearchFacesByImageResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
94 private:
95
96 BoundingBox m_searchedFaceBoundingBox;
97 bool m_searchedFaceBoundingBoxHasBeenSet = false;
98
99 double m_searchedFaceConfidence{0.0};
100 bool m_searchedFaceConfidenceHasBeenSet = false;
101
102 Aws::Vector<FaceMatch> m_faceMatches;
103 bool m_faceMatchesHasBeenSet = false;
104
105 Aws::String m_faceModelVersion;
106 bool m_faceModelVersionHasBeenSet = false;
107
108 Aws::String m_requestId;
109 bool m_requestIdHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace Rekognition
114} // namespace Aws
SearchFacesByImageResult & AddFaceMatches(FaceMatchesT &&value)
SearchFacesByImageResult & WithRequestId(RequestIdT &&value)
void SetSearchedFaceBoundingBox(SearchedFaceBoundingBoxT &&value)
SearchFacesByImageResult & WithSearchedFaceConfidence(double value)
SearchFacesByImageResult & WithFaceMatches(FaceMatchesT &&value)
SearchFacesByImageResult & WithFaceModelVersion(FaceModelVersionT &&value)
const Aws::Vector< FaceMatch > & GetFaceMatches() const
AWS_REKOGNITION_API SearchFacesByImageResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
SearchFacesByImageResult & WithSearchedFaceBoundingBox(SearchedFaceBoundingBoxT &&value)
AWS_REKOGNITION_API SearchFacesByImageResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_REKOGNITION_API SearchFacesByImageResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue