AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
StartFaceSearchRequest.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/rekognition/RekognitionRequest.h>
9#include <aws/rekognition/model/Video.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/rekognition/model/NotificationChannel.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Rekognition
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_REKOGNITION_API StartFaceSearchRequest() = 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 "StartFaceSearch"; }
33
34 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
35
36 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
44 inline const Video& GetVideo() const { return m_video; }
45 inline bool VideoHasBeenSet() const { return m_videoHasBeenSet; }
46 template<typename VideoT = Video>
47 void SetVideo(VideoT&& value) { m_videoHasBeenSet = true; m_video = std::forward<VideoT>(value); }
48 template<typename VideoT = Video>
49 StartFaceSearchRequest& WithVideo(VideoT&& value) { SetVideo(std::forward<VideoT>(value)); return *this;}
51
53
59 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
60 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
61 template<typename ClientRequestTokenT = Aws::String>
62 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
63 template<typename ClientRequestTokenT = Aws::String>
64 StartFaceSearchRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
66
68
73 inline double GetFaceMatchThreshold() const { return m_faceMatchThreshold; }
74 inline bool FaceMatchThresholdHasBeenSet() const { return m_faceMatchThresholdHasBeenSet; }
75 inline void SetFaceMatchThreshold(double value) { m_faceMatchThresholdHasBeenSet = true; m_faceMatchThreshold = value; }
76 inline StartFaceSearchRequest& WithFaceMatchThreshold(double value) { SetFaceMatchThreshold(value); return *this;}
78
80
83 inline const Aws::String& GetCollectionId() const { return m_collectionId; }
84 inline bool CollectionIdHasBeenSet() const { return m_collectionIdHasBeenSet; }
85 template<typename CollectionIdT = Aws::String>
86 void SetCollectionId(CollectionIdT&& value) { m_collectionIdHasBeenSet = true; m_collectionId = std::forward<CollectionIdT>(value); }
87 template<typename CollectionIdT = Aws::String>
88 StartFaceSearchRequest& WithCollectionId(CollectionIdT&& value) { SetCollectionId(std::forward<CollectionIdT>(value)); return *this;}
90
92
98 inline const NotificationChannel& GetNotificationChannel() const { return m_notificationChannel; }
99 inline bool NotificationChannelHasBeenSet() const { return m_notificationChannelHasBeenSet; }
100 template<typename NotificationChannelT = NotificationChannel>
101 void SetNotificationChannel(NotificationChannelT&& value) { m_notificationChannelHasBeenSet = true; m_notificationChannel = std::forward<NotificationChannelT>(value); }
102 template<typename NotificationChannelT = NotificationChannel>
103 StartFaceSearchRequest& WithNotificationChannel(NotificationChannelT&& value) { SetNotificationChannel(std::forward<NotificationChannelT>(value)); return *this;}
105
107
113 inline const Aws::String& GetJobTag() const { return m_jobTag; }
114 inline bool JobTagHasBeenSet() const { return m_jobTagHasBeenSet; }
115 template<typename JobTagT = Aws::String>
116 void SetJobTag(JobTagT&& value) { m_jobTagHasBeenSet = true; m_jobTag = std::forward<JobTagT>(value); }
117 template<typename JobTagT = Aws::String>
118 StartFaceSearchRequest& WithJobTag(JobTagT&& value) { SetJobTag(std::forward<JobTagT>(value)); return *this;}
120 private:
121
122 Video m_video;
123 bool m_videoHasBeenSet = false;
124
125 Aws::String m_clientRequestToken;
126 bool m_clientRequestTokenHasBeenSet = false;
127
128 double m_faceMatchThreshold{0.0};
129 bool m_faceMatchThresholdHasBeenSet = false;
130
131 Aws::String m_collectionId;
132 bool m_collectionIdHasBeenSet = false;
133
134 NotificationChannel m_notificationChannel;
135 bool m_notificationChannelHasBeenSet = false;
136
137 Aws::String m_jobTag;
138 bool m_jobTagHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace Rekognition
143} // 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