AWS SDK for C++

AWS SDK for C++ Version 1.11.758

Loading...
Searching...
No Matches
SearchFacesResult.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/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 SearchFacesResult() = default;
31
33
36 inline const Aws::String& GetSearchedFaceId() const { return m_searchedFaceId; }
37 template <typename SearchedFaceIdT = Aws::String>
38 void SetSearchedFaceId(SearchedFaceIdT&& value) {
39 m_searchedFaceIdHasBeenSet = true;
40 m_searchedFaceId = std::forward<SearchedFaceIdT>(value);
41 }
42 template <typename SearchedFaceIdT = Aws::String>
43 SearchFacesResult& WithSearchedFaceId(SearchedFaceIdT&& value) {
44 SetSearchedFaceId(std::forward<SearchedFaceIdT>(value));
45 return *this;
46 }
48
50
54 inline const Aws::Vector<FaceMatch>& GetFaceMatches() const { return m_faceMatches; }
55 template <typename FaceMatchesT = Aws::Vector<FaceMatch>>
56 void SetFaceMatches(FaceMatchesT&& value) {
57 m_faceMatchesHasBeenSet = true;
58 m_faceMatches = std::forward<FaceMatchesT>(value);
59 }
60 template <typename FaceMatchesT = Aws::Vector<FaceMatch>>
61 SearchFacesResult& WithFaceMatches(FaceMatchesT&& value) {
62 SetFaceMatches(std::forward<FaceMatchesT>(value));
63 return *this;
64 }
65 template <typename FaceMatchesT = FaceMatch>
66 SearchFacesResult& AddFaceMatches(FaceMatchesT&& value) {
67 m_faceMatchesHasBeenSet = true;
68 m_faceMatches.emplace_back(std::forward<FaceMatchesT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetFaceModelVersion() const { return m_faceModelVersion; }
79 template <typename FaceModelVersionT = Aws::String>
80 void SetFaceModelVersion(FaceModelVersionT&& value) {
81 m_faceModelVersionHasBeenSet = true;
82 m_faceModelVersion = std::forward<FaceModelVersionT>(value);
83 }
84 template <typename FaceModelVersionT = Aws::String>
85 SearchFacesResult& WithFaceModelVersion(FaceModelVersionT&& value) {
86 SetFaceModelVersion(std::forward<FaceModelVersionT>(value));
87 return *this;
88 }
90
92
93 inline const Aws::String& GetRequestId() const { return m_requestId; }
94 template <typename RequestIdT = Aws::String>
95 void SetRequestId(RequestIdT&& value) {
96 m_requestIdHasBeenSet = true;
97 m_requestId = std::forward<RequestIdT>(value);
98 }
99 template <typename RequestIdT = Aws::String>
100 SearchFacesResult& WithRequestId(RequestIdT&& value) {
101 SetRequestId(std::forward<RequestIdT>(value));
102 return *this;
103 }
105 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
106
107 private:
108 Aws::String m_searchedFaceId;
109
110 Aws::Vector<FaceMatch> m_faceMatches;
111
112 Aws::String m_faceModelVersion;
113
114 Aws::String m_requestId;
115 Aws::Http::HttpResponseCode m_HttpResponseCode;
116 bool m_searchedFaceIdHasBeenSet = false;
117 bool m_faceMatchesHasBeenSet = false;
118 bool m_faceModelVersionHasBeenSet = false;
119 bool m_requestIdHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace Rekognition
124} // namespace Aws
const Aws::String & GetSearchedFaceId() const
SearchFacesResult & WithFaceModelVersion(FaceModelVersionT &&value)
AWS_REKOGNITION_API SearchFacesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_REKOGNITION_API SearchFacesResult()=default
SearchFacesResult & WithSearchedFaceId(SearchedFaceIdT &&value)
const Aws::String & GetFaceModelVersion() const
SearchFacesResult & AddFaceMatches(FaceMatchesT &&value)
const Aws::Vector< FaceMatch > & GetFaceMatches() const
SearchFacesResult & WithRequestId(RequestIdT &&value)
void SetFaceModelVersion(FaceModelVersionT &&value)
SearchFacesResult & WithFaceMatches(FaceMatchesT &&value)
AWS_REKOGNITION_API SearchFacesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetSearchedFaceId(SearchedFaceIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() 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