AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
CreateFlowRequest.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/mediaconnect/MediaConnectRequest.h>
11#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
12#include <aws/mediaconnect/model/AddMaintenance.h>
13#include <aws/mediaconnect/model/AddMediaStreamRequest.h>
14#include <aws/mediaconnect/model/AddOutputRequest.h>
15#include <aws/mediaconnect/model/EncodingConfig.h>
16#include <aws/mediaconnect/model/FailoverConfig.h>
17#include <aws/mediaconnect/model/FlowSize.h>
18#include <aws/mediaconnect/model/GrantEntitlementRequest.h>
19#include <aws/mediaconnect/model/MonitoringConfig.h>
20#include <aws/mediaconnect/model/NdiConfig.h>
21#include <aws/mediaconnect/model/SetSourceRequest.h>
22#include <aws/mediaconnect/model/VpcInterfaceRequest.h>
23
24#include <utility>
25
26namespace Aws {
27namespace MediaConnect {
28namespace Model {
29
33 public:
34 AWS_MEDIACONNECT_API CreateFlowRequest() = default;
35
36 // Service request name is the Operation name which will send this request out,
37 // each operation should has unique request name, so that we can get operation's name from this request.
38 // Note: this is not true for response, multiple operations may have the same response name,
39 // so we can not get operation's name from response.
40 inline virtual const char* GetServiceRequestName() const override { return "CreateFlow"; }
41
42 AWS_MEDIACONNECT_API Aws::String SerializePayload() const override;
43
45
50 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
51 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
52 template <typename AvailabilityZoneT = Aws::String>
53 void SetAvailabilityZone(AvailabilityZoneT&& value) {
54 m_availabilityZoneHasBeenSet = true;
55 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
56 }
57 template <typename AvailabilityZoneT = Aws::String>
58 CreateFlowRequest& WithAvailabilityZone(AvailabilityZoneT&& value) {
59 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::Vector<GrantEntitlementRequest>& GetEntitlements() const { return m_entitlements; }
69 inline bool EntitlementsHasBeenSet() const { return m_entitlementsHasBeenSet; }
70 template <typename EntitlementsT = Aws::Vector<GrantEntitlementRequest>>
71 void SetEntitlements(EntitlementsT&& value) {
72 m_entitlementsHasBeenSet = true;
73 m_entitlements = std::forward<EntitlementsT>(value);
74 }
75 template <typename EntitlementsT = Aws::Vector<GrantEntitlementRequest>>
76 CreateFlowRequest& WithEntitlements(EntitlementsT&& value) {
77 SetEntitlements(std::forward<EntitlementsT>(value));
78 return *this;
79 }
80 template <typename EntitlementsT = GrantEntitlementRequest>
81 CreateFlowRequest& AddEntitlements(EntitlementsT&& value) {
82 m_entitlementsHasBeenSet = true;
83 m_entitlements.emplace_back(std::forward<EntitlementsT>(value));
84 return *this;
85 }
87
89
93 inline const Aws::Vector<AddMediaStreamRequest>& GetMediaStreams() const { return m_mediaStreams; }
94 inline bool MediaStreamsHasBeenSet() const { return m_mediaStreamsHasBeenSet; }
95 template <typename MediaStreamsT = Aws::Vector<AddMediaStreamRequest>>
96 void SetMediaStreams(MediaStreamsT&& value) {
97 m_mediaStreamsHasBeenSet = true;
98 m_mediaStreams = std::forward<MediaStreamsT>(value);
99 }
100 template <typename MediaStreamsT = Aws::Vector<AddMediaStreamRequest>>
101 CreateFlowRequest& WithMediaStreams(MediaStreamsT&& value) {
102 SetMediaStreams(std::forward<MediaStreamsT>(value));
103 return *this;
104 }
105 template <typename MediaStreamsT = AddMediaStreamRequest>
106 CreateFlowRequest& AddMediaStreams(MediaStreamsT&& value) {
107 m_mediaStreamsHasBeenSet = true;
108 m_mediaStreams.emplace_back(std::forward<MediaStreamsT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetName() const { return m_name; }
118 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
119 template <typename NameT = Aws::String>
120 void SetName(NameT&& value) {
121 m_nameHasBeenSet = true;
122 m_name = std::forward<NameT>(value);
123 }
124 template <typename NameT = Aws::String>
125 CreateFlowRequest& WithName(NameT&& value) {
126 SetName(std::forward<NameT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::Vector<AddOutputRequest>& GetOutputs() const { return m_outputs; }
136 inline bool OutputsHasBeenSet() const { return m_outputsHasBeenSet; }
137 template <typename OutputsT = Aws::Vector<AddOutputRequest>>
138 void SetOutputs(OutputsT&& value) {
139 m_outputsHasBeenSet = true;
140 m_outputs = std::forward<OutputsT>(value);
141 }
142 template <typename OutputsT = Aws::Vector<AddOutputRequest>>
143 CreateFlowRequest& WithOutputs(OutputsT&& value) {
144 SetOutputs(std::forward<OutputsT>(value));
145 return *this;
146 }
147 template <typename OutputsT = AddOutputRequest>
148 CreateFlowRequest& AddOutputs(OutputsT&& value) {
149 m_outputsHasBeenSet = true;
150 m_outputs.emplace_back(std::forward<OutputsT>(value));
151 return *this;
152 }
154
156
159 inline const SetSourceRequest& GetSource() const { return m_source; }
160 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
161 template <typename SourceT = SetSourceRequest>
162 void SetSource(SourceT&& value) {
163 m_sourceHasBeenSet = true;
164 m_source = std::forward<SourceT>(value);
165 }
166 template <typename SourceT = SetSourceRequest>
167 CreateFlowRequest& WithSource(SourceT&& value) {
168 SetSource(std::forward<SourceT>(value));
169 return *this;
170 }
172
174
177 inline const FailoverConfig& GetSourceFailoverConfig() const { return m_sourceFailoverConfig; }
178 inline bool SourceFailoverConfigHasBeenSet() const { return m_sourceFailoverConfigHasBeenSet; }
179 template <typename SourceFailoverConfigT = FailoverConfig>
180 void SetSourceFailoverConfig(SourceFailoverConfigT&& value) {
181 m_sourceFailoverConfigHasBeenSet = true;
182 m_sourceFailoverConfig = std::forward<SourceFailoverConfigT>(value);
183 }
184 template <typename SourceFailoverConfigT = FailoverConfig>
185 CreateFlowRequest& WithSourceFailoverConfig(SourceFailoverConfigT&& value) {
186 SetSourceFailoverConfig(std::forward<SourceFailoverConfigT>(value));
187 return *this;
188 }
190
192
195 inline const Aws::Vector<SetSourceRequest>& GetSources() const { return m_sources; }
196 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
197 template <typename SourcesT = Aws::Vector<SetSourceRequest>>
198 void SetSources(SourcesT&& value) {
199 m_sourcesHasBeenSet = true;
200 m_sources = std::forward<SourcesT>(value);
201 }
202 template <typename SourcesT = Aws::Vector<SetSourceRequest>>
203 CreateFlowRequest& WithSources(SourcesT&& value) {
204 SetSources(std::forward<SourcesT>(value));
205 return *this;
206 }
207 template <typename SourcesT = SetSourceRequest>
208 CreateFlowRequest& AddSources(SourcesT&& value) {
209 m_sourcesHasBeenSet = true;
210 m_sources.emplace_back(std::forward<SourcesT>(value));
211 return *this;
212 }
214
216
219 inline const Aws::Vector<VpcInterfaceRequest>& GetVpcInterfaces() const { return m_vpcInterfaces; }
220 inline bool VpcInterfacesHasBeenSet() const { return m_vpcInterfacesHasBeenSet; }
221 template <typename VpcInterfacesT = Aws::Vector<VpcInterfaceRequest>>
222 void SetVpcInterfaces(VpcInterfacesT&& value) {
223 m_vpcInterfacesHasBeenSet = true;
224 m_vpcInterfaces = std::forward<VpcInterfacesT>(value);
225 }
226 template <typename VpcInterfacesT = Aws::Vector<VpcInterfaceRequest>>
227 CreateFlowRequest& WithVpcInterfaces(VpcInterfacesT&& value) {
228 SetVpcInterfaces(std::forward<VpcInterfacesT>(value));
229 return *this;
230 }
231 template <typename VpcInterfacesT = VpcInterfaceRequest>
232 CreateFlowRequest& AddVpcInterfaces(VpcInterfacesT&& value) {
233 m_vpcInterfacesHasBeenSet = true;
234 m_vpcInterfaces.emplace_back(std::forward<VpcInterfacesT>(value));
235 return *this;
236 }
238
240
243 inline const AddMaintenance& GetMaintenance() const { return m_maintenance; }
244 inline bool MaintenanceHasBeenSet() const { return m_maintenanceHasBeenSet; }
245 template <typename MaintenanceT = AddMaintenance>
246 void SetMaintenance(MaintenanceT&& value) {
247 m_maintenanceHasBeenSet = true;
248 m_maintenance = std::forward<MaintenanceT>(value);
249 }
250 template <typename MaintenanceT = AddMaintenance>
251 CreateFlowRequest& WithMaintenance(MaintenanceT&& value) {
252 SetMaintenance(std::forward<MaintenanceT>(value));
253 return *this;
254 }
256
258
261 inline const MonitoringConfig& GetSourceMonitoringConfig() const { return m_sourceMonitoringConfig; }
262 inline bool SourceMonitoringConfigHasBeenSet() const { return m_sourceMonitoringConfigHasBeenSet; }
263 template <typename SourceMonitoringConfigT = MonitoringConfig>
264 void SetSourceMonitoringConfig(SourceMonitoringConfigT&& value) {
265 m_sourceMonitoringConfigHasBeenSet = true;
266 m_sourceMonitoringConfig = std::forward<SourceMonitoringConfigT>(value);
267 }
268 template <typename SourceMonitoringConfigT = MonitoringConfig>
269 CreateFlowRequest& WithSourceMonitoringConfig(SourceMonitoringConfigT&& value) {
270 SetSourceMonitoringConfig(std::forward<SourceMonitoringConfigT>(value));
271 return *this;
272 }
274
276
281 inline FlowSize GetFlowSize() const { return m_flowSize; }
282 inline bool FlowSizeHasBeenSet() const { return m_flowSizeHasBeenSet; }
283 inline void SetFlowSize(FlowSize value) {
284 m_flowSizeHasBeenSet = true;
285 m_flowSize = value;
286 }
288 SetFlowSize(value);
289 return *this;
290 }
292
294
298 inline const NdiConfig& GetNdiConfig() const { return m_ndiConfig; }
299 inline bool NdiConfigHasBeenSet() const { return m_ndiConfigHasBeenSet; }
300 template <typename NdiConfigT = NdiConfig>
301 void SetNdiConfig(NdiConfigT&& value) {
302 m_ndiConfigHasBeenSet = true;
303 m_ndiConfig = std::forward<NdiConfigT>(value);
304 }
305 template <typename NdiConfigT = NdiConfig>
306 CreateFlowRequest& WithNdiConfig(NdiConfigT&& value) {
307 SetNdiConfig(std::forward<NdiConfigT>(value));
308 return *this;
309 }
311
313
314 inline const EncodingConfig& GetEncodingConfig() const { return m_encodingConfig; }
315 inline bool EncodingConfigHasBeenSet() const { return m_encodingConfigHasBeenSet; }
316 template <typename EncodingConfigT = EncodingConfig>
317 void SetEncodingConfig(EncodingConfigT&& value) {
318 m_encodingConfigHasBeenSet = true;
319 m_encodingConfig = std::forward<EncodingConfigT>(value);
320 }
321 template <typename EncodingConfigT = EncodingConfig>
322 CreateFlowRequest& WithEncodingConfig(EncodingConfigT&& value) {
323 SetEncodingConfig(std::forward<EncodingConfigT>(value));
324 return *this;
325 }
327
329
332 inline const Aws::Map<Aws::String, Aws::String>& GetFlowTags() const { return m_flowTags; }
333 inline bool FlowTagsHasBeenSet() const { return m_flowTagsHasBeenSet; }
334 template <typename FlowTagsT = Aws::Map<Aws::String, Aws::String>>
335 void SetFlowTags(FlowTagsT&& value) {
336 m_flowTagsHasBeenSet = true;
337 m_flowTags = std::forward<FlowTagsT>(value);
338 }
339 template <typename FlowTagsT = Aws::Map<Aws::String, Aws::String>>
340 CreateFlowRequest& WithFlowTags(FlowTagsT&& value) {
341 SetFlowTags(std::forward<FlowTagsT>(value));
342 return *this;
343 }
344 template <typename FlowTagsKeyT = Aws::String, typename FlowTagsValueT = Aws::String>
345 CreateFlowRequest& AddFlowTags(FlowTagsKeyT&& key, FlowTagsValueT&& value) {
346 m_flowTagsHasBeenSet = true;
347 m_flowTags.emplace(std::forward<FlowTagsKeyT>(key), std::forward<FlowTagsValueT>(value));
348 return *this;
349 }
351 private:
352 Aws::String m_availabilityZone;
353
355
357
358 Aws::String m_name;
359
361
362 SetSourceRequest m_source;
363
364 FailoverConfig m_sourceFailoverConfig;
365
367
368 Aws::Vector<VpcInterfaceRequest> m_vpcInterfaces;
369
370 AddMaintenance m_maintenance;
371
372 MonitoringConfig m_sourceMonitoringConfig;
373
374 FlowSize m_flowSize{FlowSize::NOT_SET};
375
376 NdiConfig m_ndiConfig;
377
378 EncodingConfig m_encodingConfig;
379
381 bool m_availabilityZoneHasBeenSet = false;
382 bool m_entitlementsHasBeenSet = false;
383 bool m_mediaStreamsHasBeenSet = false;
384 bool m_nameHasBeenSet = false;
385 bool m_outputsHasBeenSet = false;
386 bool m_sourceHasBeenSet = false;
387 bool m_sourceFailoverConfigHasBeenSet = false;
388 bool m_sourcesHasBeenSet = false;
389 bool m_vpcInterfacesHasBeenSet = false;
390 bool m_maintenanceHasBeenSet = false;
391 bool m_sourceMonitoringConfigHasBeenSet = false;
392 bool m_flowSizeHasBeenSet = false;
393 bool m_ndiConfigHasBeenSet = false;
394 bool m_encodingConfigHasBeenSet = false;
395 bool m_flowTagsHasBeenSet = false;
396};
397
398} // namespace Model
399} // namespace MediaConnect
400} // namespace Aws
CreateFlowRequest & AddSources(SourcesT &&value)
CreateFlowRequest & WithVpcInterfaces(VpcInterfacesT &&value)
AWS_MEDIACONNECT_API Aws::String SerializePayload() const override
const Aws::Vector< AddMediaStreamRequest > & GetMediaStreams() const
CreateFlowRequest & WithSources(SourcesT &&value)
CreateFlowRequest & WithAvailabilityZone(AvailabilityZoneT &&value)
const Aws::Vector< GrantEntitlementRequest > & GetEntitlements() const
void SetAvailabilityZone(AvailabilityZoneT &&value)
const EncodingConfig & GetEncodingConfig() const
CreateFlowRequest & WithMaintenance(MaintenanceT &&value)
const Aws::String & GetAvailabilityZone() const
CreateFlowRequest & AddEntitlements(EntitlementsT &&value)
void SetSourceMonitoringConfig(SourceMonitoringConfigT &&value)
virtual const char * GetServiceRequestName() const override
CreateFlowRequest & WithName(NameT &&value)
const MonitoringConfig & GetSourceMonitoringConfig() const
void SetEncodingConfig(EncodingConfigT &&value)
CreateFlowRequest & AddFlowTags(FlowTagsKeyT &&key, FlowTagsValueT &&value)
CreateFlowRequest & WithFlowTags(FlowTagsT &&value)
const Aws::Vector< VpcInterfaceRequest > & GetVpcInterfaces() const
CreateFlowRequest & WithMediaStreams(MediaStreamsT &&value)
CreateFlowRequest & AddMediaStreams(MediaStreamsT &&value)
CreateFlowRequest & WithSource(SourceT &&value)
CreateFlowRequest & AddOutputs(OutputsT &&value)
CreateFlowRequest & WithEntitlements(EntitlementsT &&value)
const SetSourceRequest & GetSource() const
CreateFlowRequest & WithSourceFailoverConfig(SourceFailoverConfigT &&value)
const FailoverConfig & GetSourceFailoverConfig() const
void SetVpcInterfaces(VpcInterfacesT &&value)
CreateFlowRequest & WithNdiConfig(NdiConfigT &&value)
const Aws::Vector< SetSourceRequest > & GetSources() const
CreateFlowRequest & WithSourceMonitoringConfig(SourceMonitoringConfigT &&value)
const Aws::Map< Aws::String, Aws::String > & GetFlowTags() const
const AddMaintenance & GetMaintenance() const
void SetSourceFailoverConfig(SourceFailoverConfigT &&value)
CreateFlowRequest & AddVpcInterfaces(VpcInterfacesT &&value)
const Aws::Vector< AddOutputRequest > & GetOutputs() const
CreateFlowRequest & WithOutputs(OutputsT &&value)
CreateFlowRequest & WithEncodingConfig(EncodingConfigT &&value)
CreateFlowRequest & WithFlowSize(FlowSize value)
AWS_MEDIACONNECT_API CreateFlowRequest()=default
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