AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
SearchFacesByImageResult.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/BoundingBox.h>
12#include <aws/rekognition/model/FaceMatch.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Rekognition {
26namespace Model {
28 public:
29 AWS_REKOGNITION_API SearchFacesByImageResult() = default;
32
34
38 inline const BoundingBox& GetSearchedFaceBoundingBox() const { return m_searchedFaceBoundingBox; }
39 template <typename SearchedFaceBoundingBoxT = BoundingBox>
40 void SetSearchedFaceBoundingBox(SearchedFaceBoundingBoxT&& value) {
41 m_searchedFaceBoundingBoxHasBeenSet = true;
42 m_searchedFaceBoundingBox = std::forward<SearchedFaceBoundingBoxT>(value);
43 }
44 template <typename SearchedFaceBoundingBoxT = BoundingBox>
45 SearchFacesByImageResult& WithSearchedFaceBoundingBox(SearchedFaceBoundingBoxT&& value) {
46 SetSearchedFaceBoundingBox(std::forward<SearchedFaceBoundingBoxT>(value));
47 return *this;
48 }
50
52
56 inline double GetSearchedFaceConfidence() const { return m_searchedFaceConfidence; }
57 inline void SetSearchedFaceConfidence(double value) {
58 m_searchedFaceConfidenceHasBeenSet = true;
59 m_searchedFaceConfidence = value;
60 }
63 return *this;
64 }
66
68
72 inline const Aws::Vector<FaceMatch>& GetFaceMatches() const { return m_faceMatches; }
73 template <typename FaceMatchesT = Aws::Vector<FaceMatch>>
74 void SetFaceMatches(FaceMatchesT&& value) {
75 m_faceMatchesHasBeenSet = true;
76 m_faceMatches = std::forward<FaceMatchesT>(value);
77 }
78 template <typename FaceMatchesT = Aws::Vector<FaceMatch>>
80 SetFaceMatches(std::forward<FaceMatchesT>(value));
81 return *this;
82 }
83 template <typename FaceMatchesT = FaceMatch>
85 m_faceMatchesHasBeenSet = true;
86 m_faceMatches.emplace_back(std::forward<FaceMatchesT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::String& GetFaceModelVersion() const { return m_faceModelVersion; }
97 template <typename FaceModelVersionT = Aws::String>
98 void SetFaceModelVersion(FaceModelVersionT&& value) {
99 m_faceModelVersionHasBeenSet = true;
100 m_faceModelVersion = std::forward<FaceModelVersionT>(value);
101 }
102 template <typename FaceModelVersionT = Aws::String>
103 SearchFacesByImageResult& WithFaceModelVersion(FaceModelVersionT&& value) {
104 SetFaceModelVersion(std::forward<FaceModelVersionT>(value));
105 return *this;
106 }
108
110
111 inline const Aws::String& GetRequestId() const { return m_requestId; }
112 template <typename RequestIdT = Aws::String>
113 void SetRequestId(RequestIdT&& value) {
114 m_requestIdHasBeenSet = true;
115 m_requestId = std::forward<RequestIdT>(value);
116 }
117 template <typename RequestIdT = Aws::String>
119 SetRequestId(std::forward<RequestIdT>(value));
120 return *this;
121 }
123 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
124
125 private:
126 BoundingBox m_searchedFaceBoundingBox;
127
128 double m_searchedFaceConfidence{0.0};
129
130 Aws::Vector<FaceMatch> m_faceMatches;
131
132 Aws::String m_faceModelVersion;
133
134 Aws::String m_requestId;
135 Aws::Http::HttpResponseCode m_HttpResponseCode;
136 bool m_searchedFaceBoundingBoxHasBeenSet = false;
137 bool m_searchedFaceConfidenceHasBeenSet = false;
138 bool m_faceMatchesHasBeenSet = false;
139 bool m_faceModelVersionHasBeenSet = false;
140 bool m_requestIdHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace Rekognition
145} // 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