AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
SearchFacesByImageRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/rekognition/RekognitionRequest.h>
9#include <aws/rekognition/Rekognition_EXPORTS.h>
10#include <aws/rekognition/model/Image.h>
11#include <aws/rekognition/model/QualityFilter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Rekognition {
17namespace Model {
18
22 public:
23 AWS_REKOGNITION_API SearchFacesByImageRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "SearchFacesByImage"; }
30
31 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
32
33 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
39 inline const Aws::String& GetCollectionId() const { return m_collectionId; }
40 inline bool CollectionIdHasBeenSet() const { return m_collectionIdHasBeenSet; }
41 template <typename CollectionIdT = Aws::String>
42 void SetCollectionId(CollectionIdT&& value) {
43 m_collectionIdHasBeenSet = true;
44 m_collectionId = std::forward<CollectionIdT>(value);
45 }
46 template <typename CollectionIdT = Aws::String>
48 SetCollectionId(std::forward<CollectionIdT>(value));
49 return *this;
50 }
52
54
62 inline const Image& GetImage() const { return m_image; }
63 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
64 template <typename ImageT = Image>
65 void SetImage(ImageT&& value) {
66 m_imageHasBeenSet = true;
67 m_image = std::forward<ImageT>(value);
68 }
69 template <typename ImageT = Image>
71 SetImage(std::forward<ImageT>(value));
72 return *this;
73 }
75
77
81 inline int GetMaxFaces() const { return m_maxFaces; }
82 inline bool MaxFacesHasBeenSet() const { return m_maxFacesHasBeenSet; }
83 inline void SetMaxFaces(int value) {
84 m_maxFacesHasBeenSet = true;
85 m_maxFaces = value;
86 }
88 SetMaxFaces(value);
89 return *this;
90 }
92
94
99 inline double GetFaceMatchThreshold() const { return m_faceMatchThreshold; }
100 inline bool FaceMatchThresholdHasBeenSet() const { return m_faceMatchThresholdHasBeenSet; }
101 inline void SetFaceMatchThreshold(double value) {
102 m_faceMatchThresholdHasBeenSet = true;
103 m_faceMatchThreshold = value;
104 }
107 return *this;
108 }
110
112
125 inline QualityFilter GetQualityFilter() const { return m_qualityFilter; }
126 inline bool QualityFilterHasBeenSet() const { return m_qualityFilterHasBeenSet; }
127 inline void SetQualityFilter(QualityFilter value) {
128 m_qualityFilterHasBeenSet = true;
129 m_qualityFilter = value;
130 }
132 SetQualityFilter(value);
133 return *this;
134 }
136 private:
137 Aws::String m_collectionId;
138 bool m_collectionIdHasBeenSet = false;
139
140 Image m_image;
141 bool m_imageHasBeenSet = false;
142
143 int m_maxFaces{0};
144 bool m_maxFacesHasBeenSet = false;
145
146 double m_faceMatchThreshold{0.0};
147 bool m_faceMatchThresholdHasBeenSet = false;
148
149 QualityFilter m_qualityFilter{QualityFilter::NOT_SET};
150 bool m_qualityFilterHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace Rekognition
155} // namespace Aws
virtual const char * GetServiceRequestName() const override
SearchFacesByImageRequest & WithFaceMatchThreshold(double value)
AWS_REKOGNITION_API SearchFacesByImageRequest()=default
SearchFacesByImageRequest & WithCollectionId(CollectionIdT &&value)
SearchFacesByImageRequest & WithImage(ImageT &&value)
AWS_REKOGNITION_API Aws::String SerializePayload() const override
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
SearchFacesByImageRequest & WithQualityFilter(QualityFilter value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String