AWS SDK for C++  1.9.158
AWS SDK for C++
DetectFacesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Rekognition
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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 "DetectFaces"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
47  inline const Image& GetImage() const{ return m_image; }
48 
57  inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
58 
67  inline void SetImage(const Image& value) { m_imageHasBeenSet = true; m_image = value; }
68 
77  inline void SetImage(Image&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
78 
87  inline DetectFacesRequest& WithImage(const Image& value) { SetImage(value); return *this;}
88 
97  inline DetectFacesRequest& WithImage(Image&& value) { SetImage(std::move(value)); return *this;}
98 
99 
112  inline const Aws::Vector<Attribute>& GetAttributes() const{ return m_attributes; }
113 
126  inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
127 
140  inline void SetAttributes(const Aws::Vector<Attribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
141 
154  inline void SetAttributes(Aws::Vector<Attribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
155 
168  inline DetectFacesRequest& WithAttributes(const Aws::Vector<Attribute>& value) { SetAttributes(value); return *this;}
169 
182  inline DetectFacesRequest& WithAttributes(Aws::Vector<Attribute>&& value) { SetAttributes(std::move(value)); return *this;}
183 
196  inline DetectFacesRequest& AddAttributes(const Attribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
197 
210  inline DetectFacesRequest& AddAttributes(Attribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
211 
212  private:
213 
214  Image m_image;
215  bool m_imageHasBeenSet;
216 
217  Aws::Vector<Attribute> m_attributes;
218  bool m_attributesHasBeenSet;
219  };
220 
221 } // namespace Model
222 } // namespace Rekognition
223 } // namespace Aws
Aws::Rekognition::Model::DetectFacesRequest::SetImage
void SetImage(Image &&value)
Definition: DetectFacesRequest.h:77
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Rekognition::Model::DetectFacesRequest::WithImage
DetectFacesRequest & WithImage(const Image &value)
Definition: DetectFacesRequest.h:87
Aws::Rekognition::Model::DetectFacesRequest
Definition: DetectFacesRequest.h:24
Aws::Rekognition::Model::DetectFacesRequest::ImageHasBeenSet
bool ImageHasBeenSet() const
Definition: DetectFacesRequest.h:57
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Attribute.h
AWSVector.h
Image.h
Aws::Rekognition::Model::DetectFacesRequest::SetAttributes
void SetAttributes(Aws::Vector< Attribute > &&value)
Definition: DetectFacesRequest.h:154
Aws::Rekognition::Model::DetectFacesRequest::AddAttributes
DetectFacesRequest & AddAttributes(Attribute &&value)
Definition: DetectFacesRequest.h:210
Aws::Rekognition::RekognitionRequest
Definition: RekognitionRequest.h:17
Aws::Rekognition::Model::DetectFacesRequest::AddAttributes
DetectFacesRequest & AddAttributes(const Attribute &value)
Definition: DetectFacesRequest.h:196
Aws::Rekognition::Model::DetectFacesRequest::DetectFacesRequest
DetectFacesRequest()
Aws::Rekognition::Model::DetectFacesRequest::SetAttributes
void SetAttributes(const Aws::Vector< Attribute > &value)
Definition: DetectFacesRequest.h:140
Aws::Rekognition::Model::Attribute
Attribute
Definition: Attribute.h:17
Aws::Rekognition::Model::DetectFacesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Rekognition::Model::DetectFacesRequest::AttributesHasBeenSet
bool AttributesHasBeenSet() const
Definition: DetectFacesRequest.h:126
Aws::Rekognition::Model::DetectFacesRequest::GetImage
const Image & GetImage() const
Definition: DetectFacesRequest.h:47
Aws::Rekognition::Model::DetectFacesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Rekognition::Model::DetectFacesRequest::WithAttributes
DetectFacesRequest & WithAttributes(const Aws::Vector< Attribute > &value)
Definition: DetectFacesRequest.h:168
Aws::Rekognition::Model::Image
Definition: Image.h:51
AWS_REKOGNITION_API
#define AWS_REKOGNITION_API
Definition: Rekognition_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::Rekognition::Model::DetectFacesRequest::SetImage
void SetImage(const Image &value)
Definition: DetectFacesRequest.h:67
Rekognition_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Rekognition::Model::DetectFacesRequest::WithImage
DetectFacesRequest & WithImage(Image &&value)
Definition: DetectFacesRequest.h:97
Aws::Rekognition::Model::DetectFacesRequest::WithAttributes
DetectFacesRequest & WithAttributes(Aws::Vector< Attribute > &&value)
Definition: DetectFacesRequest.h:182
Aws::Rekognition::Model::DetectFacesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DetectFacesRequest.h:32
Aws::Rekognition::Model::DetectFacesRequest::GetAttributes
const Aws::Vector< Attribute > & GetAttributes() const
Definition: DetectFacesRequest.h:112
RekognitionRequest.h