AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
StartFaceDetectionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/rekognition/RekognitionRequest.h>
9#include <aws/rekognition/Rekognition_EXPORTS.h>
10#include <aws/rekognition/model/FaceAttributes.h>
11#include <aws/rekognition/model/NotificationChannel.h>
12#include <aws/rekognition/model/Video.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Rekognition {
18namespace Model {
19
23 public:
24 AWS_REKOGNITION_API StartFaceDetectionRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "StartFaceDetection"; }
31
32 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
33
34 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
41 inline const Video& GetVideo() const { return m_video; }
42 inline bool VideoHasBeenSet() const { return m_videoHasBeenSet; }
43 template <typename VideoT = Video>
44 void SetVideo(VideoT&& value) {
45 m_videoHasBeenSet = true;
46 m_video = std::forward<VideoT>(value);
47 }
48 template <typename VideoT = Video>
50 SetVideo(std::forward<VideoT>(value));
51 return *this;
52 }
54
56
62 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
63 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
64 template <typename ClientRequestTokenT = Aws::String>
65 void SetClientRequestToken(ClientRequestTokenT&& value) {
66 m_clientRequestTokenHasBeenSet = true;
67 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
68 }
69 template <typename ClientRequestTokenT = Aws::String>
70 StartFaceDetectionRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
71 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
72 return *this;
73 }
75
77
83 inline const NotificationChannel& GetNotificationChannel() const { return m_notificationChannel; }
84 inline bool NotificationChannelHasBeenSet() const { return m_notificationChannelHasBeenSet; }
85 template <typename NotificationChannelT = NotificationChannel>
86 void SetNotificationChannel(NotificationChannelT&& value) {
87 m_notificationChannelHasBeenSet = true;
88 m_notificationChannel = std::forward<NotificationChannelT>(value);
89 }
90 template <typename NotificationChannelT = NotificationChannel>
91 StartFaceDetectionRequest& WithNotificationChannel(NotificationChannelT&& value) {
92 SetNotificationChannel(std::forward<NotificationChannelT>(value));
93 return *this;
94 }
96
98
104 inline FaceAttributes GetFaceAttributes() const { return m_faceAttributes; }
105 inline bool FaceAttributesHasBeenSet() const { return m_faceAttributesHasBeenSet; }
107 m_faceAttributesHasBeenSet = true;
108 m_faceAttributes = value;
109 }
111 SetFaceAttributes(value);
112 return *this;
113 }
115
117
123 inline const Aws::String& GetJobTag() const { return m_jobTag; }
124 inline bool JobTagHasBeenSet() const { return m_jobTagHasBeenSet; }
125 template <typename JobTagT = Aws::String>
126 void SetJobTag(JobTagT&& value) {
127 m_jobTagHasBeenSet = true;
128 m_jobTag = std::forward<JobTagT>(value);
129 }
130 template <typename JobTagT = Aws::String>
132 SetJobTag(std::forward<JobTagT>(value));
133 return *this;
134 }
136 private:
137 Video m_video;
138
139 Aws::String m_clientRequestToken;
140
141 NotificationChannel m_notificationChannel;
142
143 FaceAttributes m_faceAttributes{FaceAttributes::NOT_SET};
144
145 Aws::String m_jobTag;
146 bool m_videoHasBeenSet = false;
147 bool m_clientRequestTokenHasBeenSet = false;
148 bool m_notificationChannelHasBeenSet = false;
149 bool m_faceAttributesHasBeenSet = false;
150 bool m_jobTagHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace Rekognition
155} // namespace Aws
StartFaceDetectionRequest & WithJobTag(JobTagT &&value)
virtual const char * GetServiceRequestName() const override
AWS_REKOGNITION_API Aws::String SerializePayload() const override
StartFaceDetectionRequest & WithVideo(VideoT &&value)
StartFaceDetectionRequest & WithFaceAttributes(FaceAttributes value)
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartFaceDetectionRequest & WithClientRequestToken(ClientRequestTokenT &&value)
AWS_REKOGNITION_API StartFaceDetectionRequest()=default
StartFaceDetectionRequest & WithNotificationChannel(NotificationChannelT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String