AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
CreateStreamProcessorRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/rekognition/RekognitionRequest.h>
11#include <aws/rekognition/Rekognition_EXPORTS.h>
12#include <aws/rekognition/model/RegionOfInterest.h>
13#include <aws/rekognition/model/StreamProcessorDataSharingPreference.h>
14#include <aws/rekognition/model/StreamProcessorInput.h>
15#include <aws/rekognition/model/StreamProcessorNotificationChannel.h>
16#include <aws/rekognition/model/StreamProcessorOutput.h>
17#include <aws/rekognition/model/StreamProcessorSettings.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Rekognition {
23namespace Model {
24
28 public:
29 AWS_REKOGNITION_API CreateStreamProcessorRequest() = 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 "CreateStreamProcessor"; }
36
37 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
38
39 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
42
47 inline const StreamProcessorInput& GetInput() const { return m_input; }
48 inline bool InputHasBeenSet() const { return m_inputHasBeenSet; }
49 template <typename InputT = StreamProcessorInput>
50 void SetInput(InputT&& value) {
51 m_inputHasBeenSet = true;
52 m_input = std::forward<InputT>(value);
53 }
54 template <typename InputT = StreamProcessorInput>
56 SetInput(std::forward<InputT>(value));
57 return *this;
58 }
60
62
70 inline const StreamProcessorOutput& GetOutput() const { return m_output; }
71 inline bool OutputHasBeenSet() const { return m_outputHasBeenSet; }
72 template <typename OutputT = StreamProcessorOutput>
73 void SetOutput(OutputT&& value) {
74 m_outputHasBeenSet = true;
75 m_output = std::forward<OutputT>(value);
76 }
77 template <typename OutputT = StreamProcessorOutput>
79 SetOutput(std::forward<OutputT>(value));
80 return *this;
81 }
83
85
92 inline const Aws::String& GetName() const { return m_name; }
93 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
94 template <typename NameT = Aws::String>
95 void SetName(NameT&& value) {
96 m_nameHasBeenSet = true;
97 m_name = std::forward<NameT>(value);
98 }
99 template <typename NameT = Aws::String>
101 SetName(std::forward<NameT>(value));
102 return *this;
103 }
105
107
112 inline const StreamProcessorSettings& GetSettings() const { return m_settings; }
113 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
114 template <typename SettingsT = StreamProcessorSettings>
115 void SetSettings(SettingsT&& value) {
116 m_settingsHasBeenSet = true;
117 m_settings = std::forward<SettingsT>(value);
118 }
119 template <typename SettingsT = StreamProcessorSettings>
121 SetSettings(std::forward<SettingsT>(value));
122 return *this;
123 }
125
127
134 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
135 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
136 template <typename RoleArnT = Aws::String>
137 void SetRoleArn(RoleArnT&& value) {
138 m_roleArnHasBeenSet = true;
139 m_roleArn = std::forward<RoleArnT>(value);
140 }
141 template <typename RoleArnT = Aws::String>
143 SetRoleArn(std::forward<RoleArnT>(value));
144 return *this;
145 }
147
149
153 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
154 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
155 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
156 void SetTags(TagsT&& value) {
157 m_tagsHasBeenSet = true;
158 m_tags = std::forward<TagsT>(value);
159 }
160 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
162 SetTags(std::forward<TagsT>(value));
163 return *this;
164 }
165 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
166 CreateStreamProcessorRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
167 m_tagsHasBeenSet = true;
168 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
169 return *this;
170 }
172
174
175 inline const StreamProcessorNotificationChannel& GetNotificationChannel() const { return m_notificationChannel; }
176 inline bool NotificationChannelHasBeenSet() const { return m_notificationChannelHasBeenSet; }
177 template <typename NotificationChannelT = StreamProcessorNotificationChannel>
178 void SetNotificationChannel(NotificationChannelT&& value) {
179 m_notificationChannelHasBeenSet = true;
180 m_notificationChannel = std::forward<NotificationChannelT>(value);
181 }
182 template <typename NotificationChannelT = StreamProcessorNotificationChannel>
184 SetNotificationChannel(std::forward<NotificationChannelT>(value));
185 return *this;
186 }
188
190
199 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
200 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
201 template <typename KmsKeyIdT = Aws::String>
202 void SetKmsKeyId(KmsKeyIdT&& value) {
203 m_kmsKeyIdHasBeenSet = true;
204 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
205 }
206 template <typename KmsKeyIdT = Aws::String>
208 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
209 return *this;
210 }
212
214
221 inline const Aws::Vector<RegionOfInterest>& GetRegionsOfInterest() const { return m_regionsOfInterest; }
222 inline bool RegionsOfInterestHasBeenSet() const { return m_regionsOfInterestHasBeenSet; }
223 template <typename RegionsOfInterestT = Aws::Vector<RegionOfInterest>>
224 void SetRegionsOfInterest(RegionsOfInterestT&& value) {
225 m_regionsOfInterestHasBeenSet = true;
226 m_regionsOfInterest = std::forward<RegionsOfInterestT>(value);
227 }
228 template <typename RegionsOfInterestT = Aws::Vector<RegionOfInterest>>
230 SetRegionsOfInterest(std::forward<RegionsOfInterestT>(value));
231 return *this;
232 }
233 template <typename RegionsOfInterestT = RegionOfInterest>
235 m_regionsOfInterestHasBeenSet = true;
236 m_regionsOfInterest.emplace_back(std::forward<RegionsOfInterestT>(value));
237 return *this;
238 }
240
242
248 inline const StreamProcessorDataSharingPreference& GetDataSharingPreference() const { return m_dataSharingPreference; }
249 inline bool DataSharingPreferenceHasBeenSet() const { return m_dataSharingPreferenceHasBeenSet; }
250 template <typename DataSharingPreferenceT = StreamProcessorDataSharingPreference>
251 void SetDataSharingPreference(DataSharingPreferenceT&& value) {
252 m_dataSharingPreferenceHasBeenSet = true;
253 m_dataSharingPreference = std::forward<DataSharingPreferenceT>(value);
254 }
255 template <typename DataSharingPreferenceT = StreamProcessorDataSharingPreference>
257 SetDataSharingPreference(std::forward<DataSharingPreferenceT>(value));
258 return *this;
259 }
261 private:
262 StreamProcessorInput m_input;
263 bool m_inputHasBeenSet = false;
264
265 StreamProcessorOutput m_output;
266 bool m_outputHasBeenSet = false;
267
268 Aws::String m_name;
269 bool m_nameHasBeenSet = false;
270
271 StreamProcessorSettings m_settings;
272 bool m_settingsHasBeenSet = false;
273
274 Aws::String m_roleArn;
275 bool m_roleArnHasBeenSet = false;
276
278 bool m_tagsHasBeenSet = false;
279
280 StreamProcessorNotificationChannel m_notificationChannel;
281 bool m_notificationChannelHasBeenSet = false;
282
283 Aws::String m_kmsKeyId;
284 bool m_kmsKeyIdHasBeenSet = false;
285
286 Aws::Vector<RegionOfInterest> m_regionsOfInterest;
287 bool m_regionsOfInterestHasBeenSet = false;
288
289 StreamProcessorDataSharingPreference m_dataSharingPreference;
290 bool m_dataSharingPreferenceHasBeenSet = false;
291};
292
293} // namespace Model
294} // namespace Rekognition
295} // namespace Aws
CreateStreamProcessorRequest & WithNotificationChannel(NotificationChannelT &&value)
CreateStreamProcessorRequest & WithRegionsOfInterest(RegionsOfInterestT &&value)
const StreamProcessorDataSharingPreference & GetDataSharingPreference() const
CreateStreamProcessorRequest & WithKmsKeyId(KmsKeyIdT &&value)
CreateStreamProcessorRequest & WithOutput(OutputT &&value)
CreateStreamProcessorRequest & WithInput(InputT &&value)
CreateStreamProcessorRequest & WithSettings(SettingsT &&value)
AWS_REKOGNITION_API CreateStreamProcessorRequest()=default
const StreamProcessorNotificationChannel & GetNotificationChannel() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateStreamProcessorRequest & WithRoleArn(RoleArnT &&value)
CreateStreamProcessorRequest & WithName(NameT &&value)
CreateStreamProcessorRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateStreamProcessorRequest & WithTags(TagsT &&value)
CreateStreamProcessorRequest & WithDataSharingPreference(DataSharingPreferenceT &&value)
CreateStreamProcessorRequest & AddRegionsOfInterest(RegionsOfInterestT &&value)
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_REKOGNITION_API Aws::String SerializePayload() const override
const Aws::Vector< RegionOfInterest > & GetRegionsOfInterest() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector