AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
StartLabelDetectionRequest.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 <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/rekognition/model/LabelDetectionSettings.h>
14#include <aws/rekognition/model/LabelDetectionFeatureName.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Rekognition
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_REKOGNITION_API StartLabelDetectionRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "StartLabelDetection"; }
36
37 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
38
39 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
47 inline const Video& GetVideo() const { return m_video; }
48 inline bool VideoHasBeenSet() const { return m_videoHasBeenSet; }
49 template<typename VideoT = Video>
50 void SetVideo(VideoT&& value) { m_videoHasBeenSet = true; m_video = std::forward<VideoT>(value); }
51 template<typename VideoT = Video>
52 StartLabelDetectionRequest& WithVideo(VideoT&& value) { SetVideo(std::forward<VideoT>(value)); return *this;}
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) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
66 template<typename ClientRequestTokenT = Aws::String>
67 StartLabelDetectionRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
69
71
81 inline double GetMinConfidence() const { return m_minConfidence; }
82 inline bool MinConfidenceHasBeenSet() const { return m_minConfidenceHasBeenSet; }
83 inline void SetMinConfidence(double value) { m_minConfidenceHasBeenSet = true; m_minConfidence = value; }
84 inline StartLabelDetectionRequest& WithMinConfidence(double value) { SetMinConfidence(value); return *this;}
86
88
94 inline const NotificationChannel& GetNotificationChannel() const { return m_notificationChannel; }
95 inline bool NotificationChannelHasBeenSet() const { return m_notificationChannelHasBeenSet; }
96 template<typename NotificationChannelT = NotificationChannel>
97 void SetNotificationChannel(NotificationChannelT&& value) { m_notificationChannelHasBeenSet = true; m_notificationChannel = std::forward<NotificationChannelT>(value); }
98 template<typename NotificationChannelT = NotificationChannel>
99 StartLabelDetectionRequest& WithNotificationChannel(NotificationChannelT&& value) { SetNotificationChannel(std::forward<NotificationChannelT>(value)); return *this;}
101
103
109 inline const Aws::String& GetJobTag() const { return m_jobTag; }
110 inline bool JobTagHasBeenSet() const { return m_jobTagHasBeenSet; }
111 template<typename JobTagT = Aws::String>
112 void SetJobTag(JobTagT&& value) { m_jobTagHasBeenSet = true; m_jobTag = std::forward<JobTagT>(value); }
113 template<typename JobTagT = Aws::String>
114 StartLabelDetectionRequest& WithJobTag(JobTagT&& value) { SetJobTag(std::forward<JobTagT>(value)); return *this;}
116
118
122 inline const Aws::Vector<LabelDetectionFeatureName>& GetFeatures() const { return m_features; }
123 inline bool FeaturesHasBeenSet() const { return m_featuresHasBeenSet; }
124 template<typename FeaturesT = Aws::Vector<LabelDetectionFeatureName>>
125 void SetFeatures(FeaturesT&& value) { m_featuresHasBeenSet = true; m_features = std::forward<FeaturesT>(value); }
126 template<typename FeaturesT = Aws::Vector<LabelDetectionFeatureName>>
127 StartLabelDetectionRequest& WithFeatures(FeaturesT&& value) { SetFeatures(std::forward<FeaturesT>(value)); return *this;}
128 inline StartLabelDetectionRequest& AddFeatures(LabelDetectionFeatureName value) { m_featuresHasBeenSet = true; m_features.push_back(value); return *this; }
130
132
137 inline const LabelDetectionSettings& GetSettings() const { return m_settings; }
138 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
139 template<typename SettingsT = LabelDetectionSettings>
140 void SetSettings(SettingsT&& value) { m_settingsHasBeenSet = true; m_settings = std::forward<SettingsT>(value); }
141 template<typename SettingsT = LabelDetectionSettings>
142 StartLabelDetectionRequest& WithSettings(SettingsT&& value) { SetSettings(std::forward<SettingsT>(value)); return *this;}
144 private:
145
146 Video m_video;
147 bool m_videoHasBeenSet = false;
148
149 Aws::String m_clientRequestToken;
150 bool m_clientRequestTokenHasBeenSet = false;
151
152 double m_minConfidence{0.0};
153 bool m_minConfidenceHasBeenSet = false;
154
155 NotificationChannel m_notificationChannel;
156 bool m_notificationChannelHasBeenSet = false;
157
158 Aws::String m_jobTag;
159 bool m_jobTagHasBeenSet = false;
160
162 bool m_featuresHasBeenSet = false;
163
164 LabelDetectionSettings m_settings;
165 bool m_settingsHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace Rekognition
170} // 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