AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetVideo(const Video& value) { m_videoHasBeenSet = true; m_video = value; }
50 inline void SetVideo(Video&& value) { m_videoHasBeenSet = true; m_video = std::move(value); }
51 inline StartLabelDetectionRequest& WithVideo(const Video& value) { SetVideo(value); return *this;}
52 inline StartLabelDetectionRequest& WithVideo(Video&& value) { SetVideo(std::move(value)); return *this;}
54
56
62 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
63 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
64 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
65 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
66 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
68 inline StartLabelDetectionRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
69 inline StartLabelDetectionRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
71
73
83 inline double GetMinConfidence() const{ return m_minConfidence; }
84 inline bool MinConfidenceHasBeenSet() const { return m_minConfidenceHasBeenSet; }
85 inline void SetMinConfidence(double value) { m_minConfidenceHasBeenSet = true; m_minConfidence = value; }
86 inline StartLabelDetectionRequest& WithMinConfidence(double value) { SetMinConfidence(value); return *this;}
88
90
96 inline const NotificationChannel& GetNotificationChannel() const{ return m_notificationChannel; }
97 inline bool NotificationChannelHasBeenSet() const { return m_notificationChannelHasBeenSet; }
98 inline void SetNotificationChannel(const NotificationChannel& value) { m_notificationChannelHasBeenSet = true; m_notificationChannel = value; }
99 inline void SetNotificationChannel(NotificationChannel&& value) { m_notificationChannelHasBeenSet = true; m_notificationChannel = std::move(value); }
103
105
111 inline const Aws::String& GetJobTag() const{ return m_jobTag; }
112 inline bool JobTagHasBeenSet() const { return m_jobTagHasBeenSet; }
113 inline void SetJobTag(const Aws::String& value) { m_jobTagHasBeenSet = true; m_jobTag = value; }
114 inline void SetJobTag(Aws::String&& value) { m_jobTagHasBeenSet = true; m_jobTag = std::move(value); }
115 inline void SetJobTag(const char* value) { m_jobTagHasBeenSet = true; m_jobTag.assign(value); }
116 inline StartLabelDetectionRequest& WithJobTag(const Aws::String& value) { SetJobTag(value); return *this;}
117 inline StartLabelDetectionRequest& WithJobTag(Aws::String&& value) { SetJobTag(std::move(value)); return *this;}
118 inline StartLabelDetectionRequest& WithJobTag(const char* value) { SetJobTag(value); return *this;}
120
122
126 inline const Aws::Vector<LabelDetectionFeatureName>& GetFeatures() const{ return m_features; }
127 inline bool FeaturesHasBeenSet() const { return m_featuresHasBeenSet; }
128 inline void SetFeatures(const Aws::Vector<LabelDetectionFeatureName>& value) { m_featuresHasBeenSet = true; m_features = value; }
129 inline void SetFeatures(Aws::Vector<LabelDetectionFeatureName>&& value) { m_featuresHasBeenSet = true; m_features = std::move(value); }
132 inline StartLabelDetectionRequest& AddFeatures(const LabelDetectionFeatureName& value) { m_featuresHasBeenSet = true; m_features.push_back(value); return *this; }
133 inline StartLabelDetectionRequest& AddFeatures(LabelDetectionFeatureName&& value) { m_featuresHasBeenSet = true; m_features.push_back(std::move(value)); return *this; }
135
137
142 inline const LabelDetectionSettings& GetSettings() const{ return m_settings; }
143 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
144 inline void SetSettings(const LabelDetectionSettings& value) { m_settingsHasBeenSet = true; m_settings = value; }
145 inline void SetSettings(LabelDetectionSettings&& value) { m_settingsHasBeenSet = true; m_settings = std::move(value); }
146 inline StartLabelDetectionRequest& WithSettings(const LabelDetectionSettings& value) { SetSettings(value); return *this;}
147 inline StartLabelDetectionRequest& WithSettings(LabelDetectionSettings&& value) { SetSettings(std::move(value)); return *this;}
149 private:
150
151 Video m_video;
152 bool m_videoHasBeenSet = false;
153
154 Aws::String m_clientRequestToken;
155 bool m_clientRequestTokenHasBeenSet = false;
156
157 double m_minConfidence;
158 bool m_minConfidenceHasBeenSet = false;
159
160 NotificationChannel m_notificationChannel;
161 bool m_notificationChannelHasBeenSet = false;
162
163 Aws::String m_jobTag;
164 bool m_jobTagHasBeenSet = false;
165
167 bool m_featuresHasBeenSet = false;
168
169 LabelDetectionSettings m_settings;
170 bool m_settingsHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace Rekognition
175} // namespace Aws
StartLabelDetectionRequest & WithNotificationChannel(const NotificationChannel &value)
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartLabelDetectionRequest & WithJobTag(const Aws::String &value)
StartLabelDetectionRequest & WithVideo(Video &&value)
AWS_REKOGNITION_API Aws::String SerializePayload() const override
StartLabelDetectionRequest & WithJobTag(Aws::String &&value)
StartLabelDetectionRequest & WithClientRequestToken(Aws::String &&value)
StartLabelDetectionRequest & WithFeatures(const Aws::Vector< LabelDetectionFeatureName > &value)
const Aws::Vector< LabelDetectionFeatureName > & GetFeatures() const
StartLabelDetectionRequest & WithSettings(LabelDetectionSettings &&value)
StartLabelDetectionRequest & WithSettings(const LabelDetectionSettings &value)
StartLabelDetectionRequest & AddFeatures(const LabelDetectionFeatureName &value)
StartLabelDetectionRequest & WithVideo(const Video &value)
StartLabelDetectionRequest & WithNotificationChannel(NotificationChannel &&value)
void SetFeatures(Aws::Vector< LabelDetectionFeatureName > &&value)
void SetFeatures(const Aws::Vector< LabelDetectionFeatureName > &value)
void SetSettings(const LabelDetectionSettings &value)
StartLabelDetectionRequest & WithClientRequestToken(const Aws::String &value)
StartLabelDetectionRequest & WithMinConfidence(double value)
virtual const char * GetServiceRequestName() const override
StartLabelDetectionRequest & AddFeatures(LabelDetectionFeatureName &&value)
void SetNotificationChannel(const NotificationChannel &value)
StartLabelDetectionRequest & WithFeatures(Aws::Vector< LabelDetectionFeatureName > &&value)
StartLabelDetectionRequest & WithClientRequestToken(const char *value)
StartLabelDetectionRequest & WithJobTag(const char *value)
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