AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DetectFacesRequest.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/rekognition/RekognitionRequest.h>
9#include <aws/rekognition/model/Image.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/rekognition/model/Attribute.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Rekognition
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_REKOGNITION_API DetectFacesRequest();
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_REKOGNITION_API Aws::String SerializePayload() const override;
35
36 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
48 inline const Image& GetImage() const{ return m_image; }
49 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
50 inline void SetImage(const Image& value) { m_imageHasBeenSet = true; m_image = value; }
51 inline void SetImage(Image&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
52 inline DetectFacesRequest& WithImage(const Image& value) { SetImage(value); return *this;}
53 inline DetectFacesRequest& WithImage(Image&& value) { SetImage(std::move(value)); return *this;}
55
57
72 inline const Aws::Vector<Attribute>& GetAttributes() const{ return m_attributes; }
73 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
74 inline void SetAttributes(const Aws::Vector<Attribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
75 inline void SetAttributes(Aws::Vector<Attribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
76 inline DetectFacesRequest& WithAttributes(const Aws::Vector<Attribute>& value) { SetAttributes(value); return *this;}
77 inline DetectFacesRequest& WithAttributes(Aws::Vector<Attribute>&& value) { SetAttributes(std::move(value)); return *this;}
78 inline DetectFacesRequest& AddAttributes(const Attribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
79 inline DetectFacesRequest& AddAttributes(Attribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
81 private:
82
83 Image m_image;
84 bool m_imageHasBeenSet = false;
85
86 Aws::Vector<Attribute> m_attributes;
87 bool m_attributesHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace Rekognition
92} // namespace Aws
AWS_REKOGNITION_API Aws::String SerializePayload() const override
DetectFacesRequest & WithAttributes(const Aws::Vector< Attribute > &value)
DetectFacesRequest & WithAttributes(Aws::Vector< Attribute > &&value)
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Attribute > & GetAttributes() const
DetectFacesRequest & WithImage(const Image &value)
DetectFacesRequest & WithImage(Image &&value)
DetectFacesRequest & AddAttributes(Attribute &&value)
void SetAttributes(Aws::Vector< Attribute > &&value)
virtual const char * GetServiceRequestName() const override
void SetAttributes(const Aws::Vector< Attribute > &value)
DetectFacesRequest & AddAttributes(const 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