AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
SetSourceRequest.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/MediaConnect_EXPORTS.h>
11#include <aws/mediaconnect/model/Encryption.h>
12#include <aws/mediaconnect/model/FlowTransitEncryption.h>
13#include <aws/mediaconnect/model/MediaStreamSourceConfigurationRequest.h>
14#include <aws/mediaconnect/model/NdiSourceSettings.h>
15#include <aws/mediaconnect/model/Protocol.h>
16#include <aws/mediaconnect/model/SetGatewayBridgeSourceRequest.h>
17#include <aws/mediaconnect/model/SetRtmpPushSourceSettings.h>
18#include <aws/mediaconnect/model/State.h>
19
20#include <utility>
21
22namespace Aws {
23namespace Utils {
24namespace Json {
25class JsonValue;
26class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace MediaConnect {
30namespace Model {
31
38 public:
39 AWS_MEDIACONNECT_API SetSourceRequest() = default;
40 AWS_MEDIACONNECT_API SetSourceRequest(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MEDIACONNECT_API SetSourceRequest& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
49 inline const Encryption& GetDecryption() const { return m_decryption; }
50 inline bool DecryptionHasBeenSet() const { return m_decryptionHasBeenSet; }
51 template <typename DecryptionT = Encryption>
52 void SetDecryption(DecryptionT&& value) {
53 m_decryptionHasBeenSet = true;
54 m_decryption = std::forward<DecryptionT>(value);
55 }
56 template <typename DecryptionT = Encryption>
57 SetSourceRequest& WithDecryption(DecryptionT&& value) {
58 SetDecryption(std::forward<DecryptionT>(value));
59 return *this;
60 }
62
64
68 inline const Aws::String& GetDescription() const { return m_description; }
69 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
70 template <typename DescriptionT = Aws::String>
71 void SetDescription(DescriptionT&& value) {
72 m_descriptionHasBeenSet = true;
73 m_description = std::forward<DescriptionT>(value);
74 }
75 template <typename DescriptionT = Aws::String>
76 SetSourceRequest& WithDescription(DescriptionT&& value) {
77 SetDescription(std::forward<DescriptionT>(value));
78 return *this;
79 }
81
83
88 inline const Aws::String& GetEntitlementArn() const { return m_entitlementArn; }
89 inline bool EntitlementArnHasBeenSet() const { return m_entitlementArnHasBeenSet; }
90 template <typename EntitlementArnT = Aws::String>
91 void SetEntitlementArn(EntitlementArnT&& value) {
92 m_entitlementArnHasBeenSet = true;
93 m_entitlementArn = std::forward<EntitlementArnT>(value);
94 }
95 template <typename EntitlementArnT = Aws::String>
96 SetSourceRequest& WithEntitlementArn(EntitlementArnT&& value) {
97 SetEntitlementArn(std::forward<EntitlementArnT>(value));
98 return *this;
99 }
101
103
106 inline int GetIngestPort() const { return m_ingestPort; }
107 inline bool IngestPortHasBeenSet() const { return m_ingestPortHasBeenSet; }
108 inline void SetIngestPort(int value) {
109 m_ingestPortHasBeenSet = true;
110 m_ingestPort = value;
111 }
112 inline SetSourceRequest& WithIngestPort(int value) {
113 SetIngestPort(value);
114 return *this;
115 }
117
119
122 inline int GetMaxBitrate() const { return m_maxBitrate; }
123 inline bool MaxBitrateHasBeenSet() const { return m_maxBitrateHasBeenSet; }
124 inline void SetMaxBitrate(int value) {
125 m_maxBitrateHasBeenSet = true;
126 m_maxBitrate = value;
127 }
128 inline SetSourceRequest& WithMaxBitrate(int value) {
129 SetMaxBitrate(value);
130 return *this;
131 }
133
135
139 inline int GetMaxLatency() const { return m_maxLatency; }
140 inline bool MaxLatencyHasBeenSet() const { return m_maxLatencyHasBeenSet; }
141 inline void SetMaxLatency(int value) {
142 m_maxLatencyHasBeenSet = true;
143 m_maxLatency = value;
144 }
145 inline SetSourceRequest& WithMaxLatency(int value) {
146 SetMaxLatency(value);
147 return *this;
148 }
150
152
156 inline int GetMaxSyncBuffer() const { return m_maxSyncBuffer; }
157 inline bool MaxSyncBufferHasBeenSet() const { return m_maxSyncBufferHasBeenSet; }
158 inline void SetMaxSyncBuffer(int value) {
159 m_maxSyncBufferHasBeenSet = true;
160 m_maxSyncBuffer = value;
161 }
163 SetMaxSyncBuffer(value);
164 return *this;
165 }
167
169
174 return m_mediaStreamSourceConfigurations;
175 }
176 inline bool MediaStreamSourceConfigurationsHasBeenSet() const { return m_mediaStreamSourceConfigurationsHasBeenSet; }
177 template <typename MediaStreamSourceConfigurationsT = Aws::Vector<MediaStreamSourceConfigurationRequest>>
178 void SetMediaStreamSourceConfigurations(MediaStreamSourceConfigurationsT&& value) {
179 m_mediaStreamSourceConfigurationsHasBeenSet = true;
180 m_mediaStreamSourceConfigurations = std::forward<MediaStreamSourceConfigurationsT>(value);
181 }
182 template <typename MediaStreamSourceConfigurationsT = Aws::Vector<MediaStreamSourceConfigurationRequest>>
183 SetSourceRequest& WithMediaStreamSourceConfigurations(MediaStreamSourceConfigurationsT&& value) {
184 SetMediaStreamSourceConfigurations(std::forward<MediaStreamSourceConfigurationsT>(value));
185 return *this;
186 }
187 template <typename MediaStreamSourceConfigurationsT = MediaStreamSourceConfigurationRequest>
188 SetSourceRequest& AddMediaStreamSourceConfigurations(MediaStreamSourceConfigurationsT&& value) {
189 m_mediaStreamSourceConfigurationsHasBeenSet = true;
190 m_mediaStreamSourceConfigurations.emplace_back(std::forward<MediaStreamSourceConfigurationsT>(value));
191 return *this;
192 }
194
196
203 inline int GetMinLatency() const { return m_minLatency; }
204 inline bool MinLatencyHasBeenSet() const { return m_minLatencyHasBeenSet; }
205 inline void SetMinLatency(int value) {
206 m_minLatencyHasBeenSet = true;
207 m_minLatency = value;
208 }
209 inline SetSourceRequest& WithMinLatency(int value) {
210 SetMinLatency(value);
211 return *this;
212 }
214
216
219 inline const Aws::String& GetName() const { return m_name; }
220 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
221 template <typename NameT = Aws::String>
222 void SetName(NameT&& value) {
223 m_nameHasBeenSet = true;
224 m_name = std::forward<NameT>(value);
225 }
226 template <typename NameT = Aws::String>
227 SetSourceRequest& WithName(NameT&& value) {
228 SetName(std::forward<NameT>(value));
229 return *this;
230 }
232
234
239 inline Protocol GetProtocol() const { return m_protocol; }
240 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
241 inline void SetProtocol(Protocol value) {
242 m_protocolHasBeenSet = true;
243 m_protocol = value;
244 }
246 SetProtocol(value);
247 return *this;
248 }
250
252
256 inline int GetSenderControlPort() const { return m_senderControlPort; }
257 inline bool SenderControlPortHasBeenSet() const { return m_senderControlPortHasBeenSet; }
258 inline void SetSenderControlPort(int value) {
259 m_senderControlPortHasBeenSet = true;
260 m_senderControlPort = value;
261 }
264 return *this;
265 }
267
269
273 inline const Aws::String& GetSenderIpAddress() const { return m_senderIpAddress; }
274 inline bool SenderIpAddressHasBeenSet() const { return m_senderIpAddressHasBeenSet; }
275 template <typename SenderIpAddressT = Aws::String>
276 void SetSenderIpAddress(SenderIpAddressT&& value) {
277 m_senderIpAddressHasBeenSet = true;
278 m_senderIpAddress = std::forward<SenderIpAddressT>(value);
279 }
280 template <typename SenderIpAddressT = Aws::String>
281 SetSourceRequest& WithSenderIpAddress(SenderIpAddressT&& value) {
282 SetSenderIpAddress(std::forward<SenderIpAddressT>(value));
283 return *this;
284 }
286
288
291 inline const Aws::String& GetSourceListenerAddress() const { return m_sourceListenerAddress; }
292 inline bool SourceListenerAddressHasBeenSet() const { return m_sourceListenerAddressHasBeenSet; }
293 template <typename SourceListenerAddressT = Aws::String>
294 void SetSourceListenerAddress(SourceListenerAddressT&& value) {
295 m_sourceListenerAddressHasBeenSet = true;
296 m_sourceListenerAddress = std::forward<SourceListenerAddressT>(value);
297 }
298 template <typename SourceListenerAddressT = Aws::String>
299 SetSourceRequest& WithSourceListenerAddress(SourceListenerAddressT&& value) {
300 SetSourceListenerAddress(std::forward<SourceListenerAddressT>(value));
301 return *this;
302 }
304
306
309 inline int GetSourceListenerPort() const { return m_sourceListenerPort; }
310 inline bool SourceListenerPortHasBeenSet() const { return m_sourceListenerPortHasBeenSet; }
311 inline void SetSourceListenerPort(int value) {
312 m_sourceListenerPortHasBeenSet = true;
313 m_sourceListenerPort = value;
314 }
317 return *this;
318 }
320
322
326 inline const Aws::String& GetStreamId() const { return m_streamId; }
327 inline bool StreamIdHasBeenSet() const { return m_streamIdHasBeenSet; }
328 template <typename StreamIdT = Aws::String>
329 void SetStreamId(StreamIdT&& value) {
330 m_streamIdHasBeenSet = true;
331 m_streamId = std::forward<StreamIdT>(value);
332 }
333 template <typename StreamIdT = Aws::String>
334 SetSourceRequest& WithStreamId(StreamIdT&& value) {
335 SetStreamId(std::forward<StreamIdT>(value));
336 return *this;
337 }
339
341
344 inline const Aws::String& GetVpcInterfaceName() const { return m_vpcInterfaceName; }
345 inline bool VpcInterfaceNameHasBeenSet() const { return m_vpcInterfaceNameHasBeenSet; }
346 template <typename VpcInterfaceNameT = Aws::String>
347 void SetVpcInterfaceName(VpcInterfaceNameT&& value) {
348 m_vpcInterfaceNameHasBeenSet = true;
349 m_vpcInterfaceName = std::forward<VpcInterfaceNameT>(value);
350 }
351 template <typename VpcInterfaceNameT = Aws::String>
352 SetSourceRequest& WithVpcInterfaceName(VpcInterfaceNameT&& value) {
353 SetVpcInterfaceName(std::forward<VpcInterfaceNameT>(value));
354 return *this;
355 }
357
359
364 inline const Aws::String& GetWhitelistCidr() const { return m_whitelistCidr; }
365 inline bool WhitelistCidrHasBeenSet() const { return m_whitelistCidrHasBeenSet; }
366 template <typename WhitelistCidrT = Aws::String>
367 void SetWhitelistCidr(WhitelistCidrT&& value) {
368 m_whitelistCidrHasBeenSet = true;
369 m_whitelistCidr = std::forward<WhitelistCidrT>(value);
370 }
371 template <typename WhitelistCidrT = Aws::String>
372 SetSourceRequest& WithWhitelistCidr(WhitelistCidrT&& value) {
373 SetWhitelistCidr(std::forward<WhitelistCidrT>(value));
374 return *this;
375 }
377
379
383 inline const SetGatewayBridgeSourceRequest& GetGatewayBridgeSource() const { return m_gatewayBridgeSource; }
384 inline bool GatewayBridgeSourceHasBeenSet() const { return m_gatewayBridgeSourceHasBeenSet; }
385 template <typename GatewayBridgeSourceT = SetGatewayBridgeSourceRequest>
386 void SetGatewayBridgeSource(GatewayBridgeSourceT&& value) {
387 m_gatewayBridgeSourceHasBeenSet = true;
388 m_gatewayBridgeSource = std::forward<GatewayBridgeSourceT>(value);
389 }
390 template <typename GatewayBridgeSourceT = SetGatewayBridgeSourceRequest>
391 SetSourceRequest& WithGatewayBridgeSource(GatewayBridgeSourceT&& value) {
392 SetGatewayBridgeSource(std::forward<GatewayBridgeSourceT>(value));
393 return *this;
394 }
396
398
402 inline const NdiSourceSettings& GetNdiSourceSettings() const { return m_ndiSourceSettings; }
403 inline bool NdiSourceSettingsHasBeenSet() const { return m_ndiSourceSettingsHasBeenSet; }
404 template <typename NdiSourceSettingsT = NdiSourceSettings>
405 void SetNdiSourceSettings(NdiSourceSettingsT&& value) {
406 m_ndiSourceSettingsHasBeenSet = true;
407 m_ndiSourceSettings = std::forward<NdiSourceSettingsT>(value);
408 }
409 template <typename NdiSourceSettingsT = NdiSourceSettings>
410 SetSourceRequest& WithNdiSourceSettings(NdiSourceSettingsT&& value) {
411 SetNdiSourceSettings(std::forward<NdiSourceSettingsT>(value));
412 return *this;
413 }
415
417
420 inline const Aws::Map<Aws::String, Aws::String>& GetSourceTags() const { return m_sourceTags; }
421 inline bool SourceTagsHasBeenSet() const { return m_sourceTagsHasBeenSet; }
422 template <typename SourceTagsT = Aws::Map<Aws::String, Aws::String>>
423 void SetSourceTags(SourceTagsT&& value) {
424 m_sourceTagsHasBeenSet = true;
425 m_sourceTags = std::forward<SourceTagsT>(value);
426 }
427 template <typename SourceTagsT = Aws::Map<Aws::String, Aws::String>>
428 SetSourceRequest& WithSourceTags(SourceTagsT&& value) {
429 SetSourceTags(std::forward<SourceTagsT>(value));
430 return *this;
431 }
432 template <typename SourceTagsKeyT = Aws::String, typename SourceTagsValueT = Aws::String>
433 SetSourceRequest& AddSourceTags(SourceTagsKeyT&& key, SourceTagsValueT&& value) {
434 m_sourceTagsHasBeenSet = true;
435 m_sourceTags.emplace(std::forward<SourceTagsKeyT>(key), std::forward<SourceTagsValueT>(value));
436 return *this;
437 }
439
441
445 inline State GetRouterIntegrationState() const { return m_routerIntegrationState; }
446 inline bool RouterIntegrationStateHasBeenSet() const { return m_routerIntegrationStateHasBeenSet; }
447 inline void SetRouterIntegrationState(State value) {
448 m_routerIntegrationStateHasBeenSet = true;
449 m_routerIntegrationState = value;
450 }
453 return *this;
454 }
456
458
463 inline const FlowTransitEncryption& GetRouterIntegrationTransitDecryption() const { return m_routerIntegrationTransitDecryption; }
464 inline bool RouterIntegrationTransitDecryptionHasBeenSet() const { return m_routerIntegrationTransitDecryptionHasBeenSet; }
465 template <typename RouterIntegrationTransitDecryptionT = FlowTransitEncryption>
466 void SetRouterIntegrationTransitDecryption(RouterIntegrationTransitDecryptionT&& value) {
467 m_routerIntegrationTransitDecryptionHasBeenSet = true;
468 m_routerIntegrationTransitDecryption = std::forward<RouterIntegrationTransitDecryptionT>(value);
469 }
470 template <typename RouterIntegrationTransitDecryptionT = FlowTransitEncryption>
471 SetSourceRequest& WithRouterIntegrationTransitDecryption(RouterIntegrationTransitDecryptionT&& value) {
472 SetRouterIntegrationTransitDecryption(std::forward<RouterIntegrationTransitDecryptionT>(value));
473 return *this;
474 }
476
478
481 inline const SetRtmpPushSourceSettings& GetRtmpPushSettings() const { return m_rtmpPushSettings; }
482 inline bool RtmpPushSettingsHasBeenSet() const { return m_rtmpPushSettingsHasBeenSet; }
483 template <typename RtmpPushSettingsT = SetRtmpPushSourceSettings>
484 void SetRtmpPushSettings(RtmpPushSettingsT&& value) {
485 m_rtmpPushSettingsHasBeenSet = true;
486 m_rtmpPushSettings = std::forward<RtmpPushSettingsT>(value);
487 }
488 template <typename RtmpPushSettingsT = SetRtmpPushSourceSettings>
489 SetSourceRequest& WithRtmpPushSettings(RtmpPushSettingsT&& value) {
490 SetRtmpPushSettings(std::forward<RtmpPushSettingsT>(value));
491 return *this;
492 }
494 private:
495 Encryption m_decryption;
496
497 Aws::String m_description;
498
499 Aws::String m_entitlementArn;
500
501 int m_ingestPort{0};
502
503 int m_maxBitrate{0};
504
505 int m_maxLatency{0};
506
507 int m_maxSyncBuffer{0};
508
509 Aws::Vector<MediaStreamSourceConfigurationRequest> m_mediaStreamSourceConfigurations;
510
511 int m_minLatency{0};
512
513 Aws::String m_name;
514
515 Protocol m_protocol{Protocol::NOT_SET};
516
517 int m_senderControlPort{0};
518
519 Aws::String m_senderIpAddress;
520
521 Aws::String m_sourceListenerAddress;
522
523 int m_sourceListenerPort{0};
524
525 Aws::String m_streamId;
526
527 Aws::String m_vpcInterfaceName;
528
529 Aws::String m_whitelistCidr;
530
531 SetGatewayBridgeSourceRequest m_gatewayBridgeSource;
532
533 NdiSourceSettings m_ndiSourceSettings;
534
536
537 State m_routerIntegrationState{State::NOT_SET};
538
539 FlowTransitEncryption m_routerIntegrationTransitDecryption;
540
541 SetRtmpPushSourceSettings m_rtmpPushSettings;
542 bool m_decryptionHasBeenSet = false;
543 bool m_descriptionHasBeenSet = false;
544 bool m_entitlementArnHasBeenSet = false;
545 bool m_ingestPortHasBeenSet = false;
546 bool m_maxBitrateHasBeenSet = false;
547 bool m_maxLatencyHasBeenSet = false;
548 bool m_maxSyncBufferHasBeenSet = false;
549 bool m_mediaStreamSourceConfigurationsHasBeenSet = false;
550 bool m_minLatencyHasBeenSet = false;
551 bool m_nameHasBeenSet = false;
552 bool m_protocolHasBeenSet = false;
553 bool m_senderControlPortHasBeenSet = false;
554 bool m_senderIpAddressHasBeenSet = false;
555 bool m_sourceListenerAddressHasBeenSet = false;
556 bool m_sourceListenerPortHasBeenSet = false;
557 bool m_streamIdHasBeenSet = false;
558 bool m_vpcInterfaceNameHasBeenSet = false;
559 bool m_whitelistCidrHasBeenSet = false;
560 bool m_gatewayBridgeSourceHasBeenSet = false;
561 bool m_ndiSourceSettingsHasBeenSet = false;
562 bool m_sourceTagsHasBeenSet = false;
563 bool m_routerIntegrationStateHasBeenSet = false;
564 bool m_routerIntegrationTransitDecryptionHasBeenSet = false;
565 bool m_rtmpPushSettingsHasBeenSet = false;
566};
567
568} // namespace Model
569} // namespace MediaConnect
570} // namespace Aws
SetSourceRequest & WithMaxSyncBuffer(int value)
void SetWhitelistCidr(WhitelistCidrT &&value)
SetSourceRequest & WithSenderIpAddress(SenderIpAddressT &&value)
const SetRtmpPushSourceSettings & GetRtmpPushSettings() const
SetSourceRequest & WithRouterIntegrationState(State value)
SetSourceRequest & WithRouterIntegrationTransitDecryption(RouterIntegrationTransitDecryptionT &&value)
SetSourceRequest & AddSourceTags(SourceTagsKeyT &&key, SourceTagsValueT &&value)
void SetGatewayBridgeSource(GatewayBridgeSourceT &&value)
SetSourceRequest & WithSourceTags(SourceTagsT &&value)
void SetEntitlementArn(EntitlementArnT &&value)
SetSourceRequest & WithGatewayBridgeSource(GatewayBridgeSourceT &&value)
const Aws::String & GetDescription() const
SetSourceRequest & WithSenderControlPort(int value)
const NdiSourceSettings & GetNdiSourceSettings() const
const Aws::String & GetWhitelistCidr() const
const Aws::Map< Aws::String, Aws::String > & GetSourceTags() const
SetSourceRequest & WithRtmpPushSettings(RtmpPushSettingsT &&value)
const Aws::Vector< MediaStreamSourceConfigurationRequest > & GetMediaStreamSourceConfigurations() const
SetSourceRequest & WithName(NameT &&value)
SetSourceRequest & WithMaxBitrate(int value)
AWS_MEDIACONNECT_API SetSourceRequest(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIACONNECT_API SetSourceRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
SetSourceRequest & WithMediaStreamSourceConfigurations(MediaStreamSourceConfigurationsT &&value)
const Aws::String & GetSenderIpAddress() const
SetSourceRequest & WithIngestPort(int value)
const Aws::String & GetEntitlementArn() const
SetSourceRequest & WithMaxLatency(int value)
void SetVpcInterfaceName(VpcInterfaceNameT &&value)
void SetRouterIntegrationTransitDecryption(RouterIntegrationTransitDecryptionT &&value)
void SetMediaStreamSourceConfigurations(MediaStreamSourceConfigurationsT &&value)
SetSourceRequest & WithStreamId(StreamIdT &&value)
SetSourceRequest & WithSourceListenerAddress(SourceListenerAddressT &&value)
void SetRtmpPushSettings(RtmpPushSettingsT &&value)
const Aws::String & GetSourceListenerAddress() const
SetSourceRequest & WithProtocol(Protocol value)
void SetSenderIpAddress(SenderIpAddressT &&value)
SetSourceRequest & WithDecryption(DecryptionT &&value)
SetSourceRequest & WithEntitlementArn(EntitlementArnT &&value)
SetSourceRequest & WithMinLatency(int value)
AWS_MEDIACONNECT_API SetSourceRequest()=default
const Aws::String & GetVpcInterfaceName() const
SetSourceRequest & WithNdiSourceSettings(NdiSourceSettingsT &&value)
SetSourceRequest & WithSourceListenerPort(int value)
SetSourceRequest & AddMediaStreamSourceConfigurations(MediaStreamSourceConfigurationsT &&value)
SetSourceRequest & WithVpcInterfaceName(VpcInterfaceNameT &&value)
void SetSourceListenerAddress(SourceListenerAddressT &&value)
const SetGatewayBridgeSourceRequest & GetGatewayBridgeSource() const
SetSourceRequest & WithDescription(DescriptionT &&value)
void SetNdiSourceSettings(NdiSourceSettingsT &&value)
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const FlowTransitEncryption & GetRouterIntegrationTransitDecryption() const
SetSourceRequest & WithWhitelistCidr(WhitelistCidrT &&value)
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
Aws::Utils::Json::JsonValue JsonValue