AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SearchFacesByImageResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/rekognition/Rekognition_EXPORTS.h>
10#include <aws/rekognition/model/BoundingBox.h>
11#include <aws/rekognition/model/FaceMatch.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Rekognition {
25namespace Model {
27 public:
28 AWS_REKOGNITION_API SearchFacesByImageResult() = default;
31
33
37 inline const BoundingBox& GetSearchedFaceBoundingBox() const { return m_searchedFaceBoundingBox; }
38 template <typename SearchedFaceBoundingBoxT = BoundingBox>
39 void SetSearchedFaceBoundingBox(SearchedFaceBoundingBoxT&& value) {
40 m_searchedFaceBoundingBoxHasBeenSet = true;
41 m_searchedFaceBoundingBox = std::forward<SearchedFaceBoundingBoxT>(value);
42 }
43 template <typename SearchedFaceBoundingBoxT = BoundingBox>
44 SearchFacesByImageResult& WithSearchedFaceBoundingBox(SearchedFaceBoundingBoxT&& value) {
45 SetSearchedFaceBoundingBox(std::forward<SearchedFaceBoundingBoxT>(value));
46 return *this;
47 }
49
51
55 inline double GetSearchedFaceConfidence() const { return m_searchedFaceConfidence; }
56 inline void SetSearchedFaceConfidence(double value) {
57 m_searchedFaceConfidenceHasBeenSet = true;
58 m_searchedFaceConfidence = value;
59 }
62 return *this;
63 }
65
67
71 inline const Aws::Vector<FaceMatch>& GetFaceMatches() const { return m_faceMatches; }
72 template <typename FaceMatchesT = Aws::Vector<FaceMatch>>
73 void SetFaceMatches(FaceMatchesT&& value) {
74 m_faceMatchesHasBeenSet = true;
75 m_faceMatches = std::forward<FaceMatchesT>(value);
76 }
77 template <typename FaceMatchesT = Aws::Vector<FaceMatch>>
79 SetFaceMatches(std::forward<FaceMatchesT>(value));
80 return *this;
81 }
82 template <typename FaceMatchesT = FaceMatch>
84 m_faceMatchesHasBeenSet = true;
85 m_faceMatches.emplace_back(std::forward<FaceMatchesT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::String& GetFaceModelVersion() const { return m_faceModelVersion; }
96 template <typename FaceModelVersionT = Aws::String>
97 void SetFaceModelVersion(FaceModelVersionT&& value) {
98 m_faceModelVersionHasBeenSet = true;
99 m_faceModelVersion = std::forward<FaceModelVersionT>(value);
100 }
101 template <typename FaceModelVersionT = Aws::String>
102 SearchFacesByImageResult& WithFaceModelVersion(FaceModelVersionT&& value) {
103 SetFaceModelVersion(std::forward<FaceModelVersionT>(value));
104 return *this;
105 }
107
109
110 inline const Aws::String& GetRequestId() const { return m_requestId; }
111 template <typename RequestIdT = Aws::String>
112 void SetRequestId(RequestIdT&& value) {
113 m_requestIdHasBeenSet = true;
114 m_requestId = std::forward<RequestIdT>(value);
115 }
116 template <typename RequestIdT = Aws::String>
118 SetRequestId(std::forward<RequestIdT>(value));
119 return *this;
120 }
122 private:
123 BoundingBox m_searchedFaceBoundingBox;
124
125 double m_searchedFaceConfidence{0.0};
126
127 Aws::Vector<FaceMatch> m_faceMatches;
128
129 Aws::String m_faceModelVersion;
130
131 Aws::String m_requestId;
132 bool m_searchedFaceBoundingBoxHasBeenSet = false;
133 bool m_searchedFaceConfidenceHasBeenSet = false;
134 bool m_faceMatchesHasBeenSet = false;
135 bool m_faceModelVersionHasBeenSet = false;
136 bool m_requestIdHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace Rekognition
141} // 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