AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SearchFacesByImageRequest.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/rekognition/RekognitionRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/rekognition/model/Image.h>
11#include <aws/rekognition/model/QualityFilter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Rekognition
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_REKOGNITION_API SearchFacesByImageRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "SearchFacesByImage"; }
33
34 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
35
36 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetCollectionId() const { return m_collectionId; }
44 inline bool CollectionIdHasBeenSet() const { return m_collectionIdHasBeenSet; }
45 template<typename CollectionIdT = Aws::String>
46 void SetCollectionId(CollectionIdT&& value) { m_collectionIdHasBeenSet = true; m_collectionId = std::forward<CollectionIdT>(value); }
47 template<typename CollectionIdT = Aws::String>
48 SearchFacesByImageRequest& WithCollectionId(CollectionIdT&& value) { SetCollectionId(std::forward<CollectionIdT>(value)); return *this;}
50
52
60 inline const Image& GetImage() const { return m_image; }
61 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
62 template<typename ImageT = Image>
63 void SetImage(ImageT&& value) { m_imageHasBeenSet = true; m_image = std::forward<ImageT>(value); }
64 template<typename ImageT = Image>
65 SearchFacesByImageRequest& WithImage(ImageT&& value) { SetImage(std::forward<ImageT>(value)); return *this;}
67
69
73 inline int GetMaxFaces() const { return m_maxFaces; }
74 inline bool MaxFacesHasBeenSet() const { return m_maxFacesHasBeenSet; }
75 inline void SetMaxFaces(int value) { m_maxFacesHasBeenSet = true; m_maxFaces = value; }
76 inline SearchFacesByImageRequest& WithMaxFaces(int value) { SetMaxFaces(value); return *this;}
78
80
85 inline double GetFaceMatchThreshold() const { return m_faceMatchThreshold; }
86 inline bool FaceMatchThresholdHasBeenSet() const { return m_faceMatchThresholdHasBeenSet; }
87 inline void SetFaceMatchThreshold(double value) { m_faceMatchThresholdHasBeenSet = true; m_faceMatchThreshold = value; }
88 inline SearchFacesByImageRequest& WithFaceMatchThreshold(double value) { SetFaceMatchThreshold(value); return *this;}
90
92
105 inline QualityFilter GetQualityFilter() const { return m_qualityFilter; }
106 inline bool QualityFilterHasBeenSet() const { return m_qualityFilterHasBeenSet; }
107 inline void SetQualityFilter(QualityFilter value) { m_qualityFilterHasBeenSet = true; m_qualityFilter = value; }
110 private:
111
112 Aws::String m_collectionId;
113 bool m_collectionIdHasBeenSet = false;
114
115 Image m_image;
116 bool m_imageHasBeenSet = false;
117
118 int m_maxFaces{0};
119 bool m_maxFacesHasBeenSet = false;
120
121 double m_faceMatchThreshold{0.0};
122 bool m_faceMatchThresholdHasBeenSet = false;
123
124 QualityFilter m_qualityFilter{QualityFilter::NOT_SET};
125 bool m_qualityFilterHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace Rekognition
130} // 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