AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCollectionId(const Aws::String& value) { m_collectionIdHasBeenSet = true; m_collectionId = value; }
46 inline void SetCollectionId(Aws::String&& value) { m_collectionIdHasBeenSet = true; m_collectionId = std::move(value); }
47 inline void SetCollectionId(const char* value) { m_collectionIdHasBeenSet = true; m_collectionId.assign(value); }
48 inline SearchFacesByImageRequest& WithCollectionId(const Aws::String& value) { SetCollectionId(value); return *this;}
49 inline SearchFacesByImageRequest& WithCollectionId(Aws::String&& value) { SetCollectionId(std::move(value)); return *this;}
50 inline SearchFacesByImageRequest& WithCollectionId(const char* value) { SetCollectionId(value); return *this;}
52
54
62 inline const Image& GetImage() const{ return m_image; }
63 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
64 inline void SetImage(const Image& value) { m_imageHasBeenSet = true; m_image = value; }
65 inline void SetImage(Image&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
66 inline SearchFacesByImageRequest& WithImage(const Image& value) { SetImage(value); return *this;}
67 inline SearchFacesByImageRequest& WithImage(Image&& value) { SetImage(std::move(value)); return *this;}
69
71
75 inline int GetMaxFaces() const{ return m_maxFaces; }
76 inline bool MaxFacesHasBeenSet() const { return m_maxFacesHasBeenSet; }
77 inline void SetMaxFaces(int value) { m_maxFacesHasBeenSet = true; m_maxFaces = value; }
78 inline SearchFacesByImageRequest& WithMaxFaces(int value) { SetMaxFaces(value); return *this;}
80
82
87 inline double GetFaceMatchThreshold() const{ return m_faceMatchThreshold; }
88 inline bool FaceMatchThresholdHasBeenSet() const { return m_faceMatchThresholdHasBeenSet; }
89 inline void SetFaceMatchThreshold(double value) { m_faceMatchThresholdHasBeenSet = true; m_faceMatchThreshold = value; }
90 inline SearchFacesByImageRequest& WithFaceMatchThreshold(double value) { SetFaceMatchThreshold(value); return *this;}
92
94
107 inline const QualityFilter& GetQualityFilter() const{ return m_qualityFilter; }
108 inline bool QualityFilterHasBeenSet() const { return m_qualityFilterHasBeenSet; }
109 inline void SetQualityFilter(const QualityFilter& value) { m_qualityFilterHasBeenSet = true; m_qualityFilter = value; }
110 inline void SetQualityFilter(QualityFilter&& value) { m_qualityFilterHasBeenSet = true; m_qualityFilter = std::move(value); }
111 inline SearchFacesByImageRequest& WithQualityFilter(const QualityFilter& value) { SetQualityFilter(value); return *this;}
112 inline SearchFacesByImageRequest& WithQualityFilter(QualityFilter&& value) { SetQualityFilter(std::move(value)); return *this;}
114 private:
115
116 Aws::String m_collectionId;
117 bool m_collectionIdHasBeenSet = false;
118
119 Image m_image;
120 bool m_imageHasBeenSet = false;
121
122 int m_maxFaces;
123 bool m_maxFacesHasBeenSet = false;
124
125 double m_faceMatchThreshold;
126 bool m_faceMatchThresholdHasBeenSet = false;
127
128 QualityFilter m_qualityFilter;
129 bool m_qualityFilterHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace Rekognition
134} // namespace Aws
virtual const char * GetServiceRequestName() const override
SearchFacesByImageRequest & WithFaceMatchThreshold(double value)
SearchFacesByImageRequest & WithQualityFilter(const QualityFilter &value)
SearchFacesByImageRequest & WithCollectionId(const char *value)
SearchFacesByImageRequest & WithImage(const Image &value)
SearchFacesByImageRequest & WithCollectionId(const Aws::String &value)
SearchFacesByImageRequest & WithCollectionId(Aws::String &&value)
SearchFacesByImageRequest & WithImage(Image &&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