AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
StartFaceSearchRequest.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/NotificationChannel.h>
11#include <aws/rekognition/model/Video.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Rekognition {
17namespace Model {
18
22 public:
23 AWS_REKOGNITION_API StartFaceSearchRequest() = 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 "StartFaceSearch"; }
30
31 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
32
33 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
40 inline const Video& GetVideo() const { return m_video; }
41 inline bool VideoHasBeenSet() const { return m_videoHasBeenSet; }
42 template <typename VideoT = Video>
43 void SetVideo(VideoT&& value) {
44 m_videoHasBeenSet = true;
45 m_video = std::forward<VideoT>(value);
46 }
47 template <typename VideoT = Video>
49 SetVideo(std::forward<VideoT>(value));
50 return *this;
51 }
53
55
61 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
62 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
63 template <typename ClientRequestTokenT = Aws::String>
64 void SetClientRequestToken(ClientRequestTokenT&& value) {
65 m_clientRequestTokenHasBeenSet = true;
66 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
67 }
68 template <typename ClientRequestTokenT = Aws::String>
69 StartFaceSearchRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
70 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
71 return *this;
72 }
74
76
81 inline double GetFaceMatchThreshold() const { return m_faceMatchThreshold; }
82 inline bool FaceMatchThresholdHasBeenSet() const { return m_faceMatchThresholdHasBeenSet; }
83 inline void SetFaceMatchThreshold(double value) {
84 m_faceMatchThresholdHasBeenSet = true;
85 m_faceMatchThreshold = value;
86 }
89 return *this;
90 }
92
94
97 inline const Aws::String& GetCollectionId() const { return m_collectionId; }
98 inline bool CollectionIdHasBeenSet() const { return m_collectionIdHasBeenSet; }
99 template <typename CollectionIdT = Aws::String>
100 void SetCollectionId(CollectionIdT&& value) {
101 m_collectionIdHasBeenSet = true;
102 m_collectionId = std::forward<CollectionIdT>(value);
103 }
104 template <typename CollectionIdT = Aws::String>
105 StartFaceSearchRequest& WithCollectionId(CollectionIdT&& value) {
106 SetCollectionId(std::forward<CollectionIdT>(value));
107 return *this;
108 }
110
112
118 inline const NotificationChannel& GetNotificationChannel() const { return m_notificationChannel; }
119 inline bool NotificationChannelHasBeenSet() const { return m_notificationChannelHasBeenSet; }
120 template <typename NotificationChannelT = NotificationChannel>
121 void SetNotificationChannel(NotificationChannelT&& value) {
122 m_notificationChannelHasBeenSet = true;
123 m_notificationChannel = std::forward<NotificationChannelT>(value);
124 }
125 template <typename NotificationChannelT = NotificationChannel>
126 StartFaceSearchRequest& WithNotificationChannel(NotificationChannelT&& value) {
127 SetNotificationChannel(std::forward<NotificationChannelT>(value));
128 return *this;
129 }
131
133
139 inline const Aws::String& GetJobTag() const { return m_jobTag; }
140 inline bool JobTagHasBeenSet() const { return m_jobTagHasBeenSet; }
141 template <typename JobTagT = Aws::String>
142 void SetJobTag(JobTagT&& value) {
143 m_jobTagHasBeenSet = true;
144 m_jobTag = std::forward<JobTagT>(value);
145 }
146 template <typename JobTagT = Aws::String>
148 SetJobTag(std::forward<JobTagT>(value));
149 return *this;
150 }
152 private:
153 Video m_video;
154 bool m_videoHasBeenSet = false;
155
156 Aws::String m_clientRequestToken;
157 bool m_clientRequestTokenHasBeenSet = false;
158
159 double m_faceMatchThreshold{0.0};
160 bool m_faceMatchThresholdHasBeenSet = false;
161
162 Aws::String m_collectionId;
163 bool m_collectionIdHasBeenSet = false;
164
165 NotificationChannel m_notificationChannel;
166 bool m_notificationChannelHasBeenSet = false;
167
168 Aws::String m_jobTag;
169 bool m_jobTagHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace Rekognition
174} // namespace Aws
void SetNotificationChannel(NotificationChannelT &&value)
StartFaceSearchRequest & WithNotificationChannel(NotificationChannelT &&value)
AWS_REKOGNITION_API Aws::String SerializePayload() const override
AWS_REKOGNITION_API StartFaceSearchRequest()=default
StartFaceSearchRequest & WithFaceMatchThreshold(double value)
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
void SetClientRequestToken(ClientRequestTokenT &&value)
const NotificationChannel & GetNotificationChannel() const
StartFaceSearchRequest & WithClientRequestToken(ClientRequestTokenT &&value)
StartFaceSearchRequest & WithVideo(VideoT &&value)
StartFaceSearchRequest & WithJobTag(JobTagT &&value)
StartFaceSearchRequest & WithCollectionId(CollectionIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String