AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
StartLabelDetectionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/rekognition/RekognitionRequest.h>
10#include <aws/rekognition/Rekognition_EXPORTS.h>
11#include <aws/rekognition/model/LabelDetectionFeatureName.h>
12#include <aws/rekognition/model/LabelDetectionSettings.h>
13#include <aws/rekognition/model/NotificationChannel.h>
14#include <aws/rekognition/model/Video.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Rekognition {
20namespace Model {
21
25 public:
26 AWS_REKOGNITION_API StartLabelDetectionRequest() = 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 "StartLabelDetection"; }
33
34 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
35
36 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
39
43 inline const Video& GetVideo() const { return m_video; }
44 inline bool VideoHasBeenSet() const { return m_videoHasBeenSet; }
45 template <typename VideoT = Video>
46 void SetVideo(VideoT&& value) {
47 m_videoHasBeenSet = true;
48 m_video = std::forward<VideoT>(value);
49 }
50 template <typename VideoT = Video>
52 SetVideo(std::forward<VideoT>(value));
53 return *this;
54 }
56
58
64 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
65 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
66 template <typename ClientRequestTokenT = Aws::String>
67 void SetClientRequestToken(ClientRequestTokenT&& value) {
68 m_clientRequestTokenHasBeenSet = true;
69 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
70 }
71 template <typename ClientRequestTokenT = Aws::String>
72 StartLabelDetectionRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
73 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
74 return *this;
75 }
77
79
89 inline double GetMinConfidence() const { return m_minConfidence; }
90 inline bool MinConfidenceHasBeenSet() const { return m_minConfidenceHasBeenSet; }
91 inline void SetMinConfidence(double value) {
92 m_minConfidenceHasBeenSet = true;
93 m_minConfidence = value;
94 }
96 SetMinConfidence(value);
97 return *this;
98 }
100
102
108 inline const NotificationChannel& GetNotificationChannel() const { return m_notificationChannel; }
109 inline bool NotificationChannelHasBeenSet() const { return m_notificationChannelHasBeenSet; }
110 template <typename NotificationChannelT = NotificationChannel>
111 void SetNotificationChannel(NotificationChannelT&& value) {
112 m_notificationChannelHasBeenSet = true;
113 m_notificationChannel = std::forward<NotificationChannelT>(value);
114 }
115 template <typename NotificationChannelT = NotificationChannel>
117 SetNotificationChannel(std::forward<NotificationChannelT>(value));
118 return *this;
119 }
121
123
129 inline const Aws::String& GetJobTag() const { return m_jobTag; }
130 inline bool JobTagHasBeenSet() const { return m_jobTagHasBeenSet; }
131 template <typename JobTagT = Aws::String>
132 void SetJobTag(JobTagT&& value) {
133 m_jobTagHasBeenSet = true;
134 m_jobTag = std::forward<JobTagT>(value);
135 }
136 template <typename JobTagT = Aws::String>
138 SetJobTag(std::forward<JobTagT>(value));
139 return *this;
140 }
142
144
148 inline const Aws::Vector<LabelDetectionFeatureName>& GetFeatures() const { return m_features; }
149 inline bool FeaturesHasBeenSet() const { return m_featuresHasBeenSet; }
150 template <typename FeaturesT = Aws::Vector<LabelDetectionFeatureName>>
151 void SetFeatures(FeaturesT&& value) {
152 m_featuresHasBeenSet = true;
153 m_features = std::forward<FeaturesT>(value);
154 }
155 template <typename FeaturesT = Aws::Vector<LabelDetectionFeatureName>>
157 SetFeatures(std::forward<FeaturesT>(value));
158 return *this;
159 }
161 m_featuresHasBeenSet = true;
162 m_features.push_back(value);
163 return *this;
164 }
166
168
173 inline const LabelDetectionSettings& GetSettings() const { return m_settings; }
174 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
175 template <typename SettingsT = LabelDetectionSettings>
176 void SetSettings(SettingsT&& value) {
177 m_settingsHasBeenSet = true;
178 m_settings = std::forward<SettingsT>(value);
179 }
180 template <typename SettingsT = LabelDetectionSettings>
182 SetSettings(std::forward<SettingsT>(value));
183 return *this;
184 }
186 private:
187 Video m_video;
188 bool m_videoHasBeenSet = false;
189
190 Aws::String m_clientRequestToken;
191 bool m_clientRequestTokenHasBeenSet = false;
192
193 double m_minConfidence{0.0};
194 bool m_minConfidenceHasBeenSet = false;
195
196 NotificationChannel m_notificationChannel;
197 bool m_notificationChannelHasBeenSet = false;
198
199 Aws::String m_jobTag;
200 bool m_jobTagHasBeenSet = false;
201
203 bool m_featuresHasBeenSet = false;
204
205 LabelDetectionSettings m_settings;
206 bool m_settingsHasBeenSet = false;
207};
208
209} // namespace Model
210} // namespace Rekognition
211} // namespace Aws
StartLabelDetectionRequest & WithClientRequestToken(ClientRequestTokenT &&value)
StartLabelDetectionRequest & WithFeatures(FeaturesT &&value)
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_REKOGNITION_API StartLabelDetectionRequest()=default
AWS_REKOGNITION_API Aws::String SerializePayload() const override
StartLabelDetectionRequest & WithJobTag(JobTagT &&value)
const Aws::Vector< LabelDetectionFeatureName > & GetFeatures() const
StartLabelDetectionRequest & WithSettings(SettingsT &&value)
StartLabelDetectionRequest & AddFeatures(LabelDetectionFeatureName value)
StartLabelDetectionRequest & WithNotificationChannel(NotificationChannelT &&value)
StartLabelDetectionRequest & WithMinConfidence(double value)
StartLabelDetectionRequest & WithVideo(VideoT &&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