AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DetectFacesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/rekognition/RekognitionRequest.h>
9#include <aws/rekognition/Rekognition_EXPORTS.h>
10#include <aws/rekognition/model/Attribute.h>
11#include <aws/rekognition/model/Image.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Rekognition {
17namespace Model {
18
22 public:
23 AWS_REKOGNITION_API DetectFacesRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DetectFaces"; }
30
31 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
32
33 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
44 inline const Image& GetImage() const { return m_image; }
45 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
46 template <typename ImageT = Image>
47 void SetImage(ImageT&& value) {
48 m_imageHasBeenSet = true;
49 m_image = std::forward<ImageT>(value);
50 }
51 template <typename ImageT = Image>
52 DetectFacesRequest& WithImage(ImageT&& value) {
53 SetImage(std::forward<ImageT>(value));
54 return *this;
55 }
57
59
74 inline const Aws::Vector<Attribute>& GetAttributes() const { return m_attributes; }
75 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
76 template <typename AttributesT = Aws::Vector<Attribute>>
77 void SetAttributes(AttributesT&& value) {
78 m_attributesHasBeenSet = true;
79 m_attributes = std::forward<AttributesT>(value);
80 }
81 template <typename AttributesT = Aws::Vector<Attribute>>
82 DetectFacesRequest& WithAttributes(AttributesT&& value) {
83 SetAttributes(std::forward<AttributesT>(value));
84 return *this;
85 }
87 m_attributesHasBeenSet = true;
88 m_attributes.push_back(value);
89 return *this;
90 }
92 private:
93 Image m_image;
94
95 Aws::Vector<Attribute> m_attributes;
96 bool m_imageHasBeenSet = false;
97 bool m_attributesHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace Rekognition
102} // namespace Aws
AWS_REKOGNITION_API Aws::String SerializePayload() const override
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Attribute > & GetAttributes() const
AWS_REKOGNITION_API DetectFacesRequest()=default
DetectFacesRequest & AddAttributes(Attribute value)
DetectFacesRequest & WithAttributes(AttributesT &&value)
DetectFacesRequest & WithImage(ImageT &&value)
virtual const char * GetServiceRequestName() const override
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