AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
UpdateFlowSourceRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/mediaconnect/MediaConnectRequest.h>
10#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
11#include <aws/mediaconnect/model/FlowTransitEncryption.h>
12#include <aws/mediaconnect/model/MediaStreamSourceConfigurationRequest.h>
13#include <aws/mediaconnect/model/NdiSourceSettings.h>
14#include <aws/mediaconnect/model/Protocol.h>
15#include <aws/mediaconnect/model/SetRtmpPushSourceSettings.h>
16#include <aws/mediaconnect/model/State.h>
17#include <aws/mediaconnect/model/UpdateEncryption.h>
18#include <aws/mediaconnect/model/UpdateGatewayBridgeSourceRequest.h>
19
20#include <utility>
21
22namespace Aws {
23namespace MediaConnect {
24namespace Model {
25
29 public:
30 AWS_MEDIACONNECT_API UpdateFlowSourceRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdateFlowSource"; }
37
38 AWS_MEDIACONNECT_API Aws::String SerializePayload() const override;
39
41
45 inline const UpdateEncryption& GetDecryption() const { return m_decryption; }
46 inline bool DecryptionHasBeenSet() const { return m_decryptionHasBeenSet; }
47 template <typename DecryptionT = UpdateEncryption>
48 void SetDecryption(DecryptionT&& value) {
49 m_decryptionHasBeenSet = true;
50 m_decryption = std::forward<DecryptionT>(value);
51 }
52 template <typename DecryptionT = UpdateEncryption>
54 SetDecryption(std::forward<DecryptionT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::String& GetDescription() const { return m_description; }
65 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
66 template <typename DescriptionT = Aws::String>
67 void SetDescription(DescriptionT&& value) {
68 m_descriptionHasBeenSet = true;
69 m_description = std::forward<DescriptionT>(value);
70 }
71 template <typename DescriptionT = Aws::String>
73 SetDescription(std::forward<DescriptionT>(value));
74 return *this;
75 }
77
79
84 inline const Aws::String& GetEntitlementArn() const { return m_entitlementArn; }
85 inline bool EntitlementArnHasBeenSet() const { return m_entitlementArnHasBeenSet; }
86 template <typename EntitlementArnT = Aws::String>
87 void SetEntitlementArn(EntitlementArnT&& value) {
88 m_entitlementArnHasBeenSet = true;
89 m_entitlementArn = std::forward<EntitlementArnT>(value);
90 }
91 template <typename EntitlementArnT = Aws::String>
92 UpdateFlowSourceRequest& WithEntitlementArn(EntitlementArnT&& value) {
93 SetEntitlementArn(std::forward<EntitlementArnT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::String& GetFlowArn() const { return m_flowArn; }
103 inline bool FlowArnHasBeenSet() const { return m_flowArnHasBeenSet; }
104 template <typename FlowArnT = Aws::String>
105 void SetFlowArn(FlowArnT&& value) {
106 m_flowArnHasBeenSet = true;
107 m_flowArn = std::forward<FlowArnT>(value);
108 }
109 template <typename FlowArnT = Aws::String>
111 SetFlowArn(std::forward<FlowArnT>(value));
112 return *this;
113 }
115
117
121 inline int GetIngestPort() const { return m_ingestPort; }
122 inline bool IngestPortHasBeenSet() const { return m_ingestPortHasBeenSet; }
123 inline void SetIngestPort(int value) {
124 m_ingestPortHasBeenSet = true;
125 m_ingestPort = value;
126 }
128 SetIngestPort(value);
129 return *this;
130 }
132
134
137 inline int GetMaxBitrate() const { return m_maxBitrate; }
138 inline bool MaxBitrateHasBeenSet() const { return m_maxBitrateHasBeenSet; }
139 inline void SetMaxBitrate(int value) {
140 m_maxBitrateHasBeenSet = true;
141 m_maxBitrate = value;
142 }
144 SetMaxBitrate(value);
145 return *this;
146 }
148
150
154 inline int GetMaxLatency() const { return m_maxLatency; }
155 inline bool MaxLatencyHasBeenSet() const { return m_maxLatencyHasBeenSet; }
156 inline void SetMaxLatency(int value) {
157 m_maxLatencyHasBeenSet = true;
158 m_maxLatency = value;
159 }
161 SetMaxLatency(value);
162 return *this;
163 }
165
167
171 inline int GetMaxSyncBuffer() const { return m_maxSyncBuffer; }
172 inline bool MaxSyncBufferHasBeenSet() const { return m_maxSyncBufferHasBeenSet; }
173 inline void SetMaxSyncBuffer(int value) {
174 m_maxSyncBufferHasBeenSet = true;
175 m_maxSyncBuffer = value;
176 }
178 SetMaxSyncBuffer(value);
179 return *this;
180 }
182
184
189 return m_mediaStreamSourceConfigurations;
190 }
191 inline bool MediaStreamSourceConfigurationsHasBeenSet() const { return m_mediaStreamSourceConfigurationsHasBeenSet; }
192 template <typename MediaStreamSourceConfigurationsT = Aws::Vector<MediaStreamSourceConfigurationRequest>>
193 void SetMediaStreamSourceConfigurations(MediaStreamSourceConfigurationsT&& value) {
194 m_mediaStreamSourceConfigurationsHasBeenSet = true;
195 m_mediaStreamSourceConfigurations = std::forward<MediaStreamSourceConfigurationsT>(value);
196 }
197 template <typename MediaStreamSourceConfigurationsT = Aws::Vector<MediaStreamSourceConfigurationRequest>>
198 UpdateFlowSourceRequest& WithMediaStreamSourceConfigurations(MediaStreamSourceConfigurationsT&& value) {
199 SetMediaStreamSourceConfigurations(std::forward<MediaStreamSourceConfigurationsT>(value));
200 return *this;
201 }
202 template <typename MediaStreamSourceConfigurationsT = MediaStreamSourceConfigurationRequest>
203 UpdateFlowSourceRequest& AddMediaStreamSourceConfigurations(MediaStreamSourceConfigurationsT&& value) {
204 m_mediaStreamSourceConfigurationsHasBeenSet = true;
205 m_mediaStreamSourceConfigurations.emplace_back(std::forward<MediaStreamSourceConfigurationsT>(value));
206 return *this;
207 }
209
211
218 inline int GetMinLatency() const { return m_minLatency; }
219 inline bool MinLatencyHasBeenSet() const { return m_minLatencyHasBeenSet; }
220 inline void SetMinLatency(int value) {
221 m_minLatencyHasBeenSet = true;
222 m_minLatency = value;
223 }
225 SetMinLatency(value);
226 return *this;
227 }
229
231
236 inline Protocol GetProtocol() const { return m_protocol; }
237 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
238 inline void SetProtocol(Protocol value) {
239 m_protocolHasBeenSet = true;
240 m_protocol = value;
241 }
243 SetProtocol(value);
244 return *this;
245 }
247
249
253 inline int GetSenderControlPort() const { return m_senderControlPort; }
254 inline bool SenderControlPortHasBeenSet() const { return m_senderControlPortHasBeenSet; }
255 inline void SetSenderControlPort(int value) {
256 m_senderControlPortHasBeenSet = true;
257 m_senderControlPort = value;
258 }
261 return *this;
262 }
264
266
270 inline const Aws::String& GetSenderIpAddress() const { return m_senderIpAddress; }
271 inline bool SenderIpAddressHasBeenSet() const { return m_senderIpAddressHasBeenSet; }
272 template <typename SenderIpAddressT = Aws::String>
273 void SetSenderIpAddress(SenderIpAddressT&& value) {
274 m_senderIpAddressHasBeenSet = true;
275 m_senderIpAddress = std::forward<SenderIpAddressT>(value);
276 }
277 template <typename SenderIpAddressT = Aws::String>
278 UpdateFlowSourceRequest& WithSenderIpAddress(SenderIpAddressT&& value) {
279 SetSenderIpAddress(std::forward<SenderIpAddressT>(value));
280 return *this;
281 }
283
285
288 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
289 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
290 template <typename SourceArnT = Aws::String>
291 void SetSourceArn(SourceArnT&& value) {
292 m_sourceArnHasBeenSet = true;
293 m_sourceArn = std::forward<SourceArnT>(value);
294 }
295 template <typename SourceArnT = Aws::String>
297 SetSourceArn(std::forward<SourceArnT>(value));
298 return *this;
299 }
301
303
306 inline const Aws::String& GetSourceListenerAddress() const { return m_sourceListenerAddress; }
307 inline bool SourceListenerAddressHasBeenSet() const { return m_sourceListenerAddressHasBeenSet; }
308 template <typename SourceListenerAddressT = Aws::String>
309 void SetSourceListenerAddress(SourceListenerAddressT&& value) {
310 m_sourceListenerAddressHasBeenSet = true;
311 m_sourceListenerAddress = std::forward<SourceListenerAddressT>(value);
312 }
313 template <typename SourceListenerAddressT = Aws::String>
314 UpdateFlowSourceRequest& WithSourceListenerAddress(SourceListenerAddressT&& value) {
315 SetSourceListenerAddress(std::forward<SourceListenerAddressT>(value));
316 return *this;
317 }
319
321
324 inline int GetSourceListenerPort() const { return m_sourceListenerPort; }
325 inline bool SourceListenerPortHasBeenSet() const { return m_sourceListenerPortHasBeenSet; }
326 inline void SetSourceListenerPort(int value) {
327 m_sourceListenerPortHasBeenSet = true;
328 m_sourceListenerPort = value;
329 }
332 return *this;
333 }
335
337
341 inline const Aws::String& GetStreamId() const { return m_streamId; }
342 inline bool StreamIdHasBeenSet() const { return m_streamIdHasBeenSet; }
343 template <typename StreamIdT = Aws::String>
344 void SetStreamId(StreamIdT&& value) {
345 m_streamIdHasBeenSet = true;
346 m_streamId = std::forward<StreamIdT>(value);
347 }
348 template <typename StreamIdT = Aws::String>
350 SetStreamId(std::forward<StreamIdT>(value));
351 return *this;
352 }
354
356
359 inline const Aws::String& GetVpcInterfaceName() const { return m_vpcInterfaceName; }
360 inline bool VpcInterfaceNameHasBeenSet() const { return m_vpcInterfaceNameHasBeenSet; }
361 template <typename VpcInterfaceNameT = Aws::String>
362 void SetVpcInterfaceName(VpcInterfaceNameT&& value) {
363 m_vpcInterfaceNameHasBeenSet = true;
364 m_vpcInterfaceName = std::forward<VpcInterfaceNameT>(value);
365 }
366 template <typename VpcInterfaceNameT = Aws::String>
367 UpdateFlowSourceRequest& WithVpcInterfaceName(VpcInterfaceNameT&& value) {
368 SetVpcInterfaceName(std::forward<VpcInterfaceNameT>(value));
369 return *this;
370 }
372
374
379 inline const Aws::String& GetWhitelistCidr() const { return m_whitelistCidr; }
380 inline bool WhitelistCidrHasBeenSet() const { return m_whitelistCidrHasBeenSet; }
381 template <typename WhitelistCidrT = Aws::String>
382 void SetWhitelistCidr(WhitelistCidrT&& value) {
383 m_whitelistCidrHasBeenSet = true;
384 m_whitelistCidr = std::forward<WhitelistCidrT>(value);
385 }
386 template <typename WhitelistCidrT = Aws::String>
388 SetWhitelistCidr(std::forward<WhitelistCidrT>(value));
389 return *this;
390 }
392
394
398 inline const UpdateGatewayBridgeSourceRequest& GetGatewayBridgeSource() const { return m_gatewayBridgeSource; }
399 inline bool GatewayBridgeSourceHasBeenSet() const { return m_gatewayBridgeSourceHasBeenSet; }
400 template <typename GatewayBridgeSourceT = UpdateGatewayBridgeSourceRequest>
401 void SetGatewayBridgeSource(GatewayBridgeSourceT&& value) {
402 m_gatewayBridgeSourceHasBeenSet = true;
403 m_gatewayBridgeSource = std::forward<GatewayBridgeSourceT>(value);
404 }
405 template <typename GatewayBridgeSourceT = UpdateGatewayBridgeSourceRequest>
406 UpdateFlowSourceRequest& WithGatewayBridgeSource(GatewayBridgeSourceT&& value) {
407 SetGatewayBridgeSource(std::forward<GatewayBridgeSourceT>(value));
408 return *this;
409 }
411
413
417 inline const NdiSourceSettings& GetNdiSourceSettings() const { return m_ndiSourceSettings; }
418 inline bool NdiSourceSettingsHasBeenSet() const { return m_ndiSourceSettingsHasBeenSet; }
419 template <typename NdiSourceSettingsT = NdiSourceSettings>
420 void SetNdiSourceSettings(NdiSourceSettingsT&& value) {
421 m_ndiSourceSettingsHasBeenSet = true;
422 m_ndiSourceSettings = std::forward<NdiSourceSettingsT>(value);
423 }
424 template <typename NdiSourceSettingsT = NdiSourceSettings>
425 UpdateFlowSourceRequest& WithNdiSourceSettings(NdiSourceSettingsT&& value) {
426 SetNdiSourceSettings(std::forward<NdiSourceSettingsT>(value));
427 return *this;
428 }
430
432
436 inline State GetRouterIntegrationState() const { return m_routerIntegrationState; }
437 inline bool RouterIntegrationStateHasBeenSet() const { return m_routerIntegrationStateHasBeenSet; }
438 inline void SetRouterIntegrationState(State value) {
439 m_routerIntegrationStateHasBeenSet = true;
440 m_routerIntegrationState = value;
441 }
444 return *this;
445 }
447
449
453 inline const FlowTransitEncryption& GetRouterIntegrationTransitDecryption() const { return m_routerIntegrationTransitDecryption; }
454 inline bool RouterIntegrationTransitDecryptionHasBeenSet() const { return m_routerIntegrationTransitDecryptionHasBeenSet; }
455 template <typename RouterIntegrationTransitDecryptionT = FlowTransitEncryption>
456 void SetRouterIntegrationTransitDecryption(RouterIntegrationTransitDecryptionT&& value) {
457 m_routerIntegrationTransitDecryptionHasBeenSet = true;
458 m_routerIntegrationTransitDecryption = std::forward<RouterIntegrationTransitDecryptionT>(value);
459 }
460 template <typename RouterIntegrationTransitDecryptionT = FlowTransitEncryption>
461 UpdateFlowSourceRequest& WithRouterIntegrationTransitDecryption(RouterIntegrationTransitDecryptionT&& value) {
462 SetRouterIntegrationTransitDecryption(std::forward<RouterIntegrationTransitDecryptionT>(value));
463 return *this;
464 }
466
468
471 inline const SetRtmpPushSourceSettings& GetRtmpPushSettings() const { return m_rtmpPushSettings; }
472 inline bool RtmpPushSettingsHasBeenSet() const { return m_rtmpPushSettingsHasBeenSet; }
473 template <typename RtmpPushSettingsT = SetRtmpPushSourceSettings>
474 void SetRtmpPushSettings(RtmpPushSettingsT&& value) {
475 m_rtmpPushSettingsHasBeenSet = true;
476 m_rtmpPushSettings = std::forward<RtmpPushSettingsT>(value);
477 }
478 template <typename RtmpPushSettingsT = SetRtmpPushSourceSettings>
479 UpdateFlowSourceRequest& WithRtmpPushSettings(RtmpPushSettingsT&& value) {
480 SetRtmpPushSettings(std::forward<RtmpPushSettingsT>(value));
481 return *this;
482 }
484 private:
485 UpdateEncryption m_decryption;
486
487 Aws::String m_description;
488
489 Aws::String m_entitlementArn;
490
491 Aws::String m_flowArn;
492
493 int m_ingestPort{0};
494
495 int m_maxBitrate{0};
496
497 int m_maxLatency{0};
498
499 int m_maxSyncBuffer{0};
500
501 Aws::Vector<MediaStreamSourceConfigurationRequest> m_mediaStreamSourceConfigurations;
502
503 int m_minLatency{0};
504
505 Protocol m_protocol{Protocol::NOT_SET};
506
507 int m_senderControlPort{0};
508
509 Aws::String m_senderIpAddress;
510
511 Aws::String m_sourceArn;
512
513 Aws::String m_sourceListenerAddress;
514
515 int m_sourceListenerPort{0};
516
517 Aws::String m_streamId;
518
519 Aws::String m_vpcInterfaceName;
520
521 Aws::String m_whitelistCidr;
522
523 UpdateGatewayBridgeSourceRequest m_gatewayBridgeSource;
524
525 NdiSourceSettings m_ndiSourceSettings;
526
527 State m_routerIntegrationState{State::NOT_SET};
528
529 FlowTransitEncryption m_routerIntegrationTransitDecryption;
530
531 SetRtmpPushSourceSettings m_rtmpPushSettings;
532 bool m_decryptionHasBeenSet = false;
533 bool m_descriptionHasBeenSet = false;
534 bool m_entitlementArnHasBeenSet = false;
535 bool m_flowArnHasBeenSet = false;
536 bool m_ingestPortHasBeenSet = false;
537 bool m_maxBitrateHasBeenSet = false;
538 bool m_maxLatencyHasBeenSet = false;
539 bool m_maxSyncBufferHasBeenSet = false;
540 bool m_mediaStreamSourceConfigurationsHasBeenSet = false;
541 bool m_minLatencyHasBeenSet = false;
542 bool m_protocolHasBeenSet = false;
543 bool m_senderControlPortHasBeenSet = false;
544 bool m_senderIpAddressHasBeenSet = false;
545 bool m_sourceArnHasBeenSet = false;
546 bool m_sourceListenerAddressHasBeenSet = false;
547 bool m_sourceListenerPortHasBeenSet = false;
548 bool m_streamIdHasBeenSet = false;
549 bool m_vpcInterfaceNameHasBeenSet = false;
550 bool m_whitelistCidrHasBeenSet = false;
551 bool m_gatewayBridgeSourceHasBeenSet = false;
552 bool m_ndiSourceSettingsHasBeenSet = false;
553 bool m_routerIntegrationStateHasBeenSet = false;
554 bool m_routerIntegrationTransitDecryptionHasBeenSet = false;
555 bool m_rtmpPushSettingsHasBeenSet = false;
556};
557
558} // namespace Model
559} // namespace MediaConnect
560} // namespace Aws
UpdateFlowSourceRequest & WithSenderIpAddress(SenderIpAddressT &&value)
UpdateFlowSourceRequest & WithSourceListenerPort(int value)
void SetSourceListenerAddress(SourceListenerAddressT &&value)
const FlowTransitEncryption & GetRouterIntegrationTransitDecryption() const
const SetRtmpPushSourceSettings & GetRtmpPushSettings() const
virtual const char * GetServiceRequestName() const override
UpdateFlowSourceRequest & WithDecryption(DecryptionT &&value)
const UpdateGatewayBridgeSourceRequest & GetGatewayBridgeSource() const
UpdateFlowSourceRequest & WithFlowArn(FlowArnT &&value)
UpdateFlowSourceRequest & WithProtocol(Protocol value)
UpdateFlowSourceRequest & WithEntitlementArn(EntitlementArnT &&value)
UpdateFlowSourceRequest & WithSourceListenerAddress(SourceListenerAddressT &&value)
UpdateFlowSourceRequest & WithRouterIntegrationTransitDecryption(RouterIntegrationTransitDecryptionT &&value)
void SetRouterIntegrationTransitDecryption(RouterIntegrationTransitDecryptionT &&value)
void SetGatewayBridgeSource(GatewayBridgeSourceT &&value)
UpdateFlowSourceRequest & WithRtmpPushSettings(RtmpPushSettingsT &&value)
UpdateFlowSourceRequest & WithStreamId(StreamIdT &&value)
UpdateFlowSourceRequest & WithMaxSyncBuffer(int value)
AWS_MEDIACONNECT_API Aws::String SerializePayload() const override
void SetMediaStreamSourceConfigurations(MediaStreamSourceConfigurationsT &&value)
UpdateFlowSourceRequest & WithSourceArn(SourceArnT &&value)
AWS_MEDIACONNECT_API UpdateFlowSourceRequest()=default
UpdateFlowSourceRequest & WithRouterIntegrationState(State value)
UpdateFlowSourceRequest & WithDescription(DescriptionT &&value)
UpdateFlowSourceRequest & WithWhitelistCidr(WhitelistCidrT &&value)
UpdateFlowSourceRequest & WithGatewayBridgeSource(GatewayBridgeSourceT &&value)
const Aws::Vector< MediaStreamSourceConfigurationRequest > & GetMediaStreamSourceConfigurations() const
UpdateFlowSourceRequest & AddMediaStreamSourceConfigurations(MediaStreamSourceConfigurationsT &&value)
UpdateFlowSourceRequest & WithSenderControlPort(int value)
UpdateFlowSourceRequest & WithVpcInterfaceName(VpcInterfaceNameT &&value)
UpdateFlowSourceRequest & WithNdiSourceSettings(NdiSourceSettingsT &&value)
UpdateFlowSourceRequest & WithMediaStreamSourceConfigurations(MediaStreamSourceConfigurationsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector