AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
IndexFacesRequest.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/core/utils/memory/stl/AWSVector.h>
12#include <aws/rekognition/model/QualityFilter.h>
13#include <aws/rekognition/model/Attribute.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Rekognition
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_REKOGNITION_API IndexFacesRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "IndexFaces"; }
35
36 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
37
38 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
46 inline const Aws::String& GetCollectionId() const { return m_collectionId; }
47 inline bool CollectionIdHasBeenSet() const { return m_collectionIdHasBeenSet; }
48 template<typename CollectionIdT = Aws::String>
49 void SetCollectionId(CollectionIdT&& value) { m_collectionIdHasBeenSet = true; m_collectionId = std::forward<CollectionIdT>(value); }
50 template<typename CollectionIdT = Aws::String>
51 IndexFacesRequest& WithCollectionId(CollectionIdT&& value) { SetCollectionId(std::forward<CollectionIdT>(value)); return *this;}
53
55
63 inline const Image& GetImage() const { return m_image; }
64 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
65 template<typename ImageT = Image>
66 void SetImage(ImageT&& value) { m_imageHasBeenSet = true; m_image = std::forward<ImageT>(value); }
67 template<typename ImageT = Image>
68 IndexFacesRequest& WithImage(ImageT&& value) { SetImage(std::forward<ImageT>(value)); return *this;}
70
72
75 inline const Aws::String& GetExternalImageId() const { return m_externalImageId; }
76 inline bool ExternalImageIdHasBeenSet() const { return m_externalImageIdHasBeenSet; }
77 template<typename ExternalImageIdT = Aws::String>
78 void SetExternalImageId(ExternalImageIdT&& value) { m_externalImageIdHasBeenSet = true; m_externalImageId = std::forward<ExternalImageIdT>(value); }
79 template<typename ExternalImageIdT = Aws::String>
80 IndexFacesRequest& WithExternalImageId(ExternalImageIdT&& value) { SetExternalImageId(std::forward<ExternalImageIdT>(value)); return *this;}
82
84
96 inline const Aws::Vector<Attribute>& GetDetectionAttributes() const { return m_detectionAttributes; }
97 inline bool DetectionAttributesHasBeenSet() const { return m_detectionAttributesHasBeenSet; }
98 template<typename DetectionAttributesT = Aws::Vector<Attribute>>
99 void SetDetectionAttributes(DetectionAttributesT&& value) { m_detectionAttributesHasBeenSet = true; m_detectionAttributes = std::forward<DetectionAttributesT>(value); }
100 template<typename DetectionAttributesT = Aws::Vector<Attribute>>
101 IndexFacesRequest& WithDetectionAttributes(DetectionAttributesT&& value) { SetDetectionAttributes(std::forward<DetectionAttributesT>(value)); return *this;}
102 inline IndexFacesRequest& AddDetectionAttributes(Attribute value) { m_detectionAttributesHasBeenSet = true; m_detectionAttributes.push_back(value); return *this; }
104
106
121 inline int GetMaxFaces() const { return m_maxFaces; }
122 inline bool MaxFacesHasBeenSet() const { return m_maxFacesHasBeenSet; }
123 inline void SetMaxFaces(int value) { m_maxFacesHasBeenSet = true; m_maxFaces = value; }
124 inline IndexFacesRequest& WithMaxFaces(int value) { SetMaxFaces(value); return *this;}
126
128
141 inline QualityFilter GetQualityFilter() const { return m_qualityFilter; }
142 inline bool QualityFilterHasBeenSet() const { return m_qualityFilterHasBeenSet; }
143 inline void SetQualityFilter(QualityFilter value) { m_qualityFilterHasBeenSet = true; m_qualityFilter = value; }
146 private:
147
148 Aws::String m_collectionId;
149 bool m_collectionIdHasBeenSet = false;
150
151 Image m_image;
152 bool m_imageHasBeenSet = false;
153
154 Aws::String m_externalImageId;
155 bool m_externalImageIdHasBeenSet = false;
156
157 Aws::Vector<Attribute> m_detectionAttributes;
158 bool m_detectionAttributesHasBeenSet = false;
159
160 int m_maxFaces{0};
161 bool m_maxFacesHasBeenSet = false;
162
163 QualityFilter m_qualityFilter{QualityFilter::NOT_SET};
164 bool m_qualityFilterHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace Rekognition
169} // 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