AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename ImageT = Image>
51 void SetImage(ImageT&& value) { m_imageHasBeenSet = true; m_image = std::forward<ImageT>(value); }
52 template<typename ImageT = Image>
53 DetectFacesRequest& WithImage(ImageT&& value) { SetImage(std::forward<ImageT>(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 template<typename AttributesT = Aws::Vector<Attribute>>
75 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
76 template<typename AttributesT = Aws::Vector<Attribute>>
77 DetectFacesRequest& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
78 inline DetectFacesRequest& AddAttributes(Attribute value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
80 private:
81
82 Image m_image;
83 bool m_imageHasBeenSet = false;
84
85 Aws::Vector<Attribute> m_attributes;
86 bool m_attributesHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace Rekognition
91} // 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