AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
SearchFacesResult.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/FaceMatch.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace Rekognition {
24namespace Model {
26 public:
27 AWS_REKOGNITION_API SearchFacesResult() = default;
30
32
35 inline const Aws::String& GetSearchedFaceId() const { return m_searchedFaceId; }
36 template <typename SearchedFaceIdT = Aws::String>
37 void SetSearchedFaceId(SearchedFaceIdT&& value) {
38 m_searchedFaceIdHasBeenSet = true;
39 m_searchedFaceId = std::forward<SearchedFaceIdT>(value);
40 }
41 template <typename SearchedFaceIdT = Aws::String>
42 SearchFacesResult& WithSearchedFaceId(SearchedFaceIdT&& value) {
43 SetSearchedFaceId(std::forward<SearchedFaceIdT>(value));
44 return *this;
45 }
47
49
53 inline const Aws::Vector<FaceMatch>& GetFaceMatches() const { return m_faceMatches; }
54 template <typename FaceMatchesT = Aws::Vector<FaceMatch>>
55 void SetFaceMatches(FaceMatchesT&& value) {
56 m_faceMatchesHasBeenSet = true;
57 m_faceMatches = std::forward<FaceMatchesT>(value);
58 }
59 template <typename FaceMatchesT = Aws::Vector<FaceMatch>>
60 SearchFacesResult& WithFaceMatches(FaceMatchesT&& value) {
61 SetFaceMatches(std::forward<FaceMatchesT>(value));
62 return *this;
63 }
64 template <typename FaceMatchesT = FaceMatch>
65 SearchFacesResult& AddFaceMatches(FaceMatchesT&& value) {
66 m_faceMatchesHasBeenSet = true;
67 m_faceMatches.emplace_back(std::forward<FaceMatchesT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetFaceModelVersion() const { return m_faceModelVersion; }
78 template <typename FaceModelVersionT = Aws::String>
79 void SetFaceModelVersion(FaceModelVersionT&& value) {
80 m_faceModelVersionHasBeenSet = true;
81 m_faceModelVersion = std::forward<FaceModelVersionT>(value);
82 }
83 template <typename FaceModelVersionT = Aws::String>
84 SearchFacesResult& WithFaceModelVersion(FaceModelVersionT&& value) {
85 SetFaceModelVersion(std::forward<FaceModelVersionT>(value));
86 return *this;
87 }
89
91
92 inline const Aws::String& GetRequestId() const { return m_requestId; }
93 template <typename RequestIdT = Aws::String>
94 void SetRequestId(RequestIdT&& value) {
95 m_requestIdHasBeenSet = true;
96 m_requestId = std::forward<RequestIdT>(value);
97 }
98 template <typename RequestIdT = Aws::String>
99 SearchFacesResult& WithRequestId(RequestIdT&& value) {
100 SetRequestId(std::forward<RequestIdT>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_searchedFaceId;
106
107 Aws::Vector<FaceMatch> m_faceMatches;
108
109 Aws::String m_faceModelVersion;
110
111 Aws::String m_requestId;
112 bool m_searchedFaceIdHasBeenSet = false;
113 bool m_faceMatchesHasBeenSet = false;
114 bool m_faceModelVersionHasBeenSet = false;
115 bool m_requestIdHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace Rekognition
120} // 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)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue