AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
IndexFacesRequest.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/RekognitionRequest.h>
10#include <aws/rekognition/Rekognition_EXPORTS.h>
11#include <aws/rekognition/model/Attribute.h>
12#include <aws/rekognition/model/Image.h>
13#include <aws/rekognition/model/QualityFilter.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Rekognition {
19namespace Model {
20
24 public:
25 AWS_REKOGNITION_API IndexFacesRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "IndexFaces"; }
32
33 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
34
35 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
42 inline const Aws::String& GetCollectionId() const { return m_collectionId; }
43 inline bool CollectionIdHasBeenSet() const { return m_collectionIdHasBeenSet; }
44 template <typename CollectionIdT = Aws::String>
45 void SetCollectionId(CollectionIdT&& value) {
46 m_collectionIdHasBeenSet = true;
47 m_collectionId = std::forward<CollectionIdT>(value);
48 }
49 template <typename CollectionIdT = Aws::String>
50 IndexFacesRequest& WithCollectionId(CollectionIdT&& value) {
51 SetCollectionId(std::forward<CollectionIdT>(value));
52 return *this;
53 }
55
57
65 inline const Image& GetImage() const { return m_image; }
66 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
67 template <typename ImageT = Image>
68 void SetImage(ImageT&& value) {
69 m_imageHasBeenSet = true;
70 m_image = std::forward<ImageT>(value);
71 }
72 template <typename ImageT = Image>
73 IndexFacesRequest& WithImage(ImageT&& value) {
74 SetImage(std::forward<ImageT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetExternalImageId() const { return m_externalImageId; }
84 inline bool ExternalImageIdHasBeenSet() const { return m_externalImageIdHasBeenSet; }
85 template <typename ExternalImageIdT = Aws::String>
86 void SetExternalImageId(ExternalImageIdT&& value) {
87 m_externalImageIdHasBeenSet = true;
88 m_externalImageId = std::forward<ExternalImageIdT>(value);
89 }
90 template <typename ExternalImageIdT = Aws::String>
91 IndexFacesRequest& WithExternalImageId(ExternalImageIdT&& value) {
92 SetExternalImageId(std::forward<ExternalImageIdT>(value));
93 return *this;
94 }
96
98
110 inline const Aws::Vector<Attribute>& GetDetectionAttributes() const { return m_detectionAttributes; }
111 inline bool DetectionAttributesHasBeenSet() const { return m_detectionAttributesHasBeenSet; }
112 template <typename DetectionAttributesT = Aws::Vector<Attribute>>
113 void SetDetectionAttributes(DetectionAttributesT&& value) {
114 m_detectionAttributesHasBeenSet = true;
115 m_detectionAttributes = std::forward<DetectionAttributesT>(value);
116 }
117 template <typename DetectionAttributesT = Aws::Vector<Attribute>>
118 IndexFacesRequest& WithDetectionAttributes(DetectionAttributesT&& value) {
119 SetDetectionAttributes(std::forward<DetectionAttributesT>(value));
120 return *this;
121 }
123 m_detectionAttributesHasBeenSet = true;
124 m_detectionAttributes.push_back(value);
125 return *this;
126 }
128
130
145 inline int GetMaxFaces() const { return m_maxFaces; }
146 inline bool MaxFacesHasBeenSet() const { return m_maxFacesHasBeenSet; }
147 inline void SetMaxFaces(int value) {
148 m_maxFacesHasBeenSet = true;
149 m_maxFaces = value;
150 }
151 inline IndexFacesRequest& WithMaxFaces(int value) {
152 SetMaxFaces(value);
153 return *this;
154 }
156
158
171 inline QualityFilter GetQualityFilter() const { return m_qualityFilter; }
172 inline bool QualityFilterHasBeenSet() const { return m_qualityFilterHasBeenSet; }
173 inline void SetQualityFilter(QualityFilter value) {
174 m_qualityFilterHasBeenSet = true;
175 m_qualityFilter = value;
176 }
178 SetQualityFilter(value);
179 return *this;
180 }
182 private:
183 Aws::String m_collectionId;
184 bool m_collectionIdHasBeenSet = false;
185
186 Image m_image;
187 bool m_imageHasBeenSet = false;
188
189 Aws::String m_externalImageId;
190 bool m_externalImageIdHasBeenSet = false;
191
192 Aws::Vector<Attribute> m_detectionAttributes;
193 bool m_detectionAttributesHasBeenSet = false;
194
195 int m_maxFaces{0};
196 bool m_maxFacesHasBeenSet = false;
197
198 QualityFilter m_qualityFilter{QualityFilter::NOT_SET};
199 bool m_qualityFilterHasBeenSet = false;
200};
201
202} // namespace Model
203} // namespace Rekognition
204} // namespace Aws
AWS_REKOGNITION_API Aws::String SerializePayload() const override
const Aws::String & GetExternalImageId() const
void SetDetectionAttributes(DetectionAttributesT &&value)
const Aws::String & GetCollectionId() const
IndexFacesRequest & WithImage(ImageT &&value)
IndexFacesRequest & WithMaxFaces(int value)
const Aws::Vector< Attribute > & GetDetectionAttributes() const
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
IndexFacesRequest & WithExternalImageId(ExternalImageIdT &&value)
IndexFacesRequest & AddDetectionAttributes(Attribute value)
IndexFacesRequest & WithQualityFilter(QualityFilter value)
void SetCollectionId(CollectionIdT &&value)
virtual const char * GetServiceRequestName() const override
IndexFacesRequest & WithCollectionId(CollectionIdT &&value)
void SetExternalImageId(ExternalImageIdT &&value)
AWS_REKOGNITION_API IndexFacesRequest()=default
IndexFacesRequest & WithDetectionAttributes(DetectionAttributesT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector