AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCollectionId(const Aws::String& value) { m_collectionIdHasBeenSet = true; m_collectionId = value; }
49 inline void SetCollectionId(Aws::String&& value) { m_collectionIdHasBeenSet = true; m_collectionId = std::move(value); }
50 inline void SetCollectionId(const char* value) { m_collectionIdHasBeenSet = true; m_collectionId.assign(value); }
51 inline IndexFacesRequest& WithCollectionId(const Aws::String& value) { SetCollectionId(value); return *this;}
52 inline IndexFacesRequest& WithCollectionId(Aws::String&& value) { SetCollectionId(std::move(value)); return *this;}
53 inline IndexFacesRequest& WithCollectionId(const char* value) { SetCollectionId(value); return *this;}
55
57
65 inline const Image& GetImage() const{ return m_image; }
66 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
67 inline void SetImage(const Image& value) { m_imageHasBeenSet = true; m_image = value; }
68 inline void SetImage(Image&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
69 inline IndexFacesRequest& WithImage(const Image& value) { SetImage(value); return *this;}
70 inline IndexFacesRequest& WithImage(Image&& value) { SetImage(std::move(value)); return *this;}
72
74
77 inline const Aws::String& GetExternalImageId() const{ return m_externalImageId; }
78 inline bool ExternalImageIdHasBeenSet() const { return m_externalImageIdHasBeenSet; }
79 inline void SetExternalImageId(const Aws::String& value) { m_externalImageIdHasBeenSet = true; m_externalImageId = value; }
80 inline void SetExternalImageId(Aws::String&& value) { m_externalImageIdHasBeenSet = true; m_externalImageId = std::move(value); }
81 inline void SetExternalImageId(const char* value) { m_externalImageIdHasBeenSet = true; m_externalImageId.assign(value); }
82 inline IndexFacesRequest& WithExternalImageId(const Aws::String& value) { SetExternalImageId(value); return *this;}
83 inline IndexFacesRequest& WithExternalImageId(Aws::String&& value) { SetExternalImageId(std::move(value)); return *this;}
84 inline IndexFacesRequest& WithExternalImageId(const char* value) { SetExternalImageId(value); return *this;}
86
88
100 inline const Aws::Vector<Attribute>& GetDetectionAttributes() const{ return m_detectionAttributes; }
101 inline bool DetectionAttributesHasBeenSet() const { return m_detectionAttributesHasBeenSet; }
102 inline void SetDetectionAttributes(const Aws::Vector<Attribute>& value) { m_detectionAttributesHasBeenSet = true; m_detectionAttributes = value; }
103 inline void SetDetectionAttributes(Aws::Vector<Attribute>&& value) { m_detectionAttributesHasBeenSet = true; m_detectionAttributes = std::move(value); }
106 inline IndexFacesRequest& AddDetectionAttributes(const Attribute& value) { m_detectionAttributesHasBeenSet = true; m_detectionAttributes.push_back(value); return *this; }
107 inline IndexFacesRequest& AddDetectionAttributes(Attribute&& value) { m_detectionAttributesHasBeenSet = true; m_detectionAttributes.push_back(std::move(value)); return *this; }
109
111
126 inline int GetMaxFaces() const{ return m_maxFaces; }
127 inline bool MaxFacesHasBeenSet() const { return m_maxFacesHasBeenSet; }
128 inline void SetMaxFaces(int value) { m_maxFacesHasBeenSet = true; m_maxFaces = value; }
129 inline IndexFacesRequest& WithMaxFaces(int value) { SetMaxFaces(value); return *this;}
131
133
146 inline const QualityFilter& GetQualityFilter() const{ return m_qualityFilter; }
147 inline bool QualityFilterHasBeenSet() const { return m_qualityFilterHasBeenSet; }
148 inline void SetQualityFilter(const QualityFilter& value) { m_qualityFilterHasBeenSet = true; m_qualityFilter = value; }
149 inline void SetQualityFilter(QualityFilter&& value) { m_qualityFilterHasBeenSet = true; m_qualityFilter = std::move(value); }
150 inline IndexFacesRequest& WithQualityFilter(const QualityFilter& value) { SetQualityFilter(value); return *this;}
151 inline IndexFacesRequest& WithQualityFilter(QualityFilter&& value) { SetQualityFilter(std::move(value)); return *this;}
153 private:
154
155 Aws::String m_collectionId;
156 bool m_collectionIdHasBeenSet = false;
157
158 Image m_image;
159 bool m_imageHasBeenSet = false;
160
161 Aws::String m_externalImageId;
162 bool m_externalImageIdHasBeenSet = false;
163
164 Aws::Vector<Attribute> m_detectionAttributes;
165 bool m_detectionAttributesHasBeenSet = false;
166
167 int m_maxFaces;
168 bool m_maxFacesHasBeenSet = false;
169
170 QualityFilter m_qualityFilter;
171 bool m_qualityFilterHasBeenSet = false;
172 };
173
174} // namespace Model
175} // namespace Rekognition
176} // namespace Aws
AWS_REKOGNITION_API Aws::String SerializePayload() const override
IndexFacesRequest & WithCollectionId(const Aws::String &value)
const Aws::String & GetExternalImageId() const
const QualityFilter & GetQualityFilter() const
const Aws::String & GetCollectionId() const
IndexFacesRequest & AddDetectionAttributes(Attribute &&value)
IndexFacesRequest & AddDetectionAttributes(const Attribute &value)
IndexFacesRequest & WithMaxFaces(int value)
IndexFacesRequest & WithExternalImageId(const Aws::String &value)
const Aws::Vector< Attribute > & GetDetectionAttributes() const
void SetDetectionAttributes(Aws::Vector< Attribute > &&value)
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
IndexFacesRequest & WithImage(const Image &value)
void SetQualityFilter(const QualityFilter &value)
IndexFacesRequest & WithExternalImageId(const char *value)
IndexFacesRequest & WithQualityFilter(QualityFilter &&value)
IndexFacesRequest & WithExternalImageId(Aws::String &&value)
IndexFacesRequest & WithCollectionId(const char *value)
IndexFacesRequest & WithQualityFilter(const QualityFilter &value)
IndexFacesRequest & WithCollectionId(Aws::String &&value)
IndexFacesRequest & WithDetectionAttributes(const Aws::Vector< Attribute > &value)
virtual const char * GetServiceRequestName() const override
IndexFacesRequest & WithDetectionAttributes(Aws::Vector< Attribute > &&value)
void SetExternalImageId(const Aws::String &value)
void SetCollectionId(const Aws::String &value)
IndexFacesRequest & WithImage(Image &&value)
void SetDetectionAttributes(const Aws::Vector< Attribute > &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