AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateStreamProcessorRequest.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/rekognition/RekognitionRequest.h>
9#include <aws/rekognition/model/StreamProcessorInput.h>
10#include <aws/rekognition/model/StreamProcessorOutput.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/rekognition/model/StreamProcessorSettings.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/rekognition/model/StreamProcessorNotificationChannel.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16#include <aws/rekognition/model/StreamProcessorDataSharingPreference.h>
17#include <aws/rekognition/model/RegionOfInterest.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Rekognition
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_REKOGNITION_API CreateStreamProcessorRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateStreamProcessor"; }
39
40 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
41
42 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
43
44
46
51 inline const StreamProcessorInput& GetInput() const { return m_input; }
52 inline bool InputHasBeenSet() const { return m_inputHasBeenSet; }
53 template<typename InputT = StreamProcessorInput>
54 void SetInput(InputT&& value) { m_inputHasBeenSet = true; m_input = std::forward<InputT>(value); }
55 template<typename InputT = StreamProcessorInput>
56 CreateStreamProcessorRequest& WithInput(InputT&& value) { SetInput(std::forward<InputT>(value)); return *this;}
58
60
68 inline const StreamProcessorOutput& GetOutput() const { return m_output; }
69 inline bool OutputHasBeenSet() const { return m_outputHasBeenSet; }
70 template<typename OutputT = StreamProcessorOutput>
71 void SetOutput(OutputT&& value) { m_outputHasBeenSet = true; m_output = std::forward<OutputT>(value); }
72 template<typename OutputT = StreamProcessorOutput>
73 CreateStreamProcessorRequest& WithOutput(OutputT&& value) { SetOutput(std::forward<OutputT>(value)); return *this;}
75
77
84 inline const Aws::String& GetName() const { return m_name; }
85 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
86 template<typename NameT = Aws::String>
87 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
88 template<typename NameT = Aws::String>
89 CreateStreamProcessorRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
91
93
98 inline const StreamProcessorSettings& GetSettings() const { return m_settings; }
99 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
100 template<typename SettingsT = StreamProcessorSettings>
101 void SetSettings(SettingsT&& value) { m_settingsHasBeenSet = true; m_settings = std::forward<SettingsT>(value); }
102 template<typename SettingsT = StreamProcessorSettings>
103 CreateStreamProcessorRequest& WithSettings(SettingsT&& value) { SetSettings(std::forward<SettingsT>(value)); return *this;}
105
107
114 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
115 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
116 template<typename RoleArnT = Aws::String>
117 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
118 template<typename RoleArnT = Aws::String>
119 CreateStreamProcessorRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
121
123
127 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
128 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
129 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
130 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
131 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
132 CreateStreamProcessorRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
133 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
134 CreateStreamProcessorRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
135 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
136 }
138
140
141 inline const StreamProcessorNotificationChannel& GetNotificationChannel() const { return m_notificationChannel; }
142 inline bool NotificationChannelHasBeenSet() const { return m_notificationChannelHasBeenSet; }
143 template<typename NotificationChannelT = StreamProcessorNotificationChannel>
144 void SetNotificationChannel(NotificationChannelT&& value) { m_notificationChannelHasBeenSet = true; m_notificationChannel = std::forward<NotificationChannelT>(value); }
145 template<typename NotificationChannelT = StreamProcessorNotificationChannel>
146 CreateStreamProcessorRequest& WithNotificationChannel(NotificationChannelT&& value) { SetNotificationChannel(std::forward<NotificationChannelT>(value)); return *this;}
148
150
159 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
160 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
161 template<typename KmsKeyIdT = Aws::String>
162 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
163 template<typename KmsKeyIdT = Aws::String>
164 CreateStreamProcessorRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
166
168
175 inline const Aws::Vector<RegionOfInterest>& GetRegionsOfInterest() const { return m_regionsOfInterest; }
176 inline bool RegionsOfInterestHasBeenSet() const { return m_regionsOfInterestHasBeenSet; }
177 template<typename RegionsOfInterestT = Aws::Vector<RegionOfInterest>>
178 void SetRegionsOfInterest(RegionsOfInterestT&& value) { m_regionsOfInterestHasBeenSet = true; m_regionsOfInterest = std::forward<RegionsOfInterestT>(value); }
179 template<typename RegionsOfInterestT = Aws::Vector<RegionOfInterest>>
180 CreateStreamProcessorRequest& WithRegionsOfInterest(RegionsOfInterestT&& value) { SetRegionsOfInterest(std::forward<RegionsOfInterestT>(value)); return *this;}
181 template<typename RegionsOfInterestT = RegionOfInterest>
182 CreateStreamProcessorRequest& AddRegionsOfInterest(RegionsOfInterestT&& value) { m_regionsOfInterestHasBeenSet = true; m_regionsOfInterest.emplace_back(std::forward<RegionsOfInterestT>(value)); return *this; }
184
186
192 inline const StreamProcessorDataSharingPreference& GetDataSharingPreference() const { return m_dataSharingPreference; }
193 inline bool DataSharingPreferenceHasBeenSet() const { return m_dataSharingPreferenceHasBeenSet; }
194 template<typename DataSharingPreferenceT = StreamProcessorDataSharingPreference>
195 void SetDataSharingPreference(DataSharingPreferenceT&& value) { m_dataSharingPreferenceHasBeenSet = true; m_dataSharingPreference = std::forward<DataSharingPreferenceT>(value); }
196 template<typename DataSharingPreferenceT = StreamProcessorDataSharingPreference>
197 CreateStreamProcessorRequest& WithDataSharingPreference(DataSharingPreferenceT&& value) { SetDataSharingPreference(std::forward<DataSharingPreferenceT>(value)); return *this;}
199 private:
200
201 StreamProcessorInput m_input;
202 bool m_inputHasBeenSet = false;
203
204 StreamProcessorOutput m_output;
205 bool m_outputHasBeenSet = false;
206
207 Aws::String m_name;
208 bool m_nameHasBeenSet = false;
209
210 StreamProcessorSettings m_settings;
211 bool m_settingsHasBeenSet = false;
212
213 Aws::String m_roleArn;
214 bool m_roleArnHasBeenSet = false;
215
217 bool m_tagsHasBeenSet = false;
218
219 StreamProcessorNotificationChannel m_notificationChannel;
220 bool m_notificationChannelHasBeenSet = false;
221
222 Aws::String m_kmsKeyId;
223 bool m_kmsKeyIdHasBeenSet = false;
224
225 Aws::Vector<RegionOfInterest> m_regionsOfInterest;
226 bool m_regionsOfInterestHasBeenSet = false;
227
228 StreamProcessorDataSharingPreference m_dataSharingPreference;
229 bool m_dataSharingPreferenceHasBeenSet = false;
230 };
231
232} // namespace Model
233} // namespace Rekognition
234} // 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