AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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/State.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Json {
24class JsonValue;
25class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace MediaConnect {
29namespace Model {
30
37 public:
38 AWS_MEDIACONNECT_API SetSourceRequest() = default;
39 AWS_MEDIACONNECT_API SetSourceRequest(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MEDIACONNECT_API SetSourceRequest& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
48 inline const Encryption& GetDecryption() const { return m_decryption; }
49 inline bool DecryptionHasBeenSet() const { return m_decryptionHasBeenSet; }
50 template <typename DecryptionT = Encryption>
51 void SetDecryption(DecryptionT&& value) {
52 m_decryptionHasBeenSet = true;
53 m_decryption = std::forward<DecryptionT>(value);
54 }
55 template <typename DecryptionT = Encryption>
56 SetSourceRequest& WithDecryption(DecryptionT&& value) {
57 SetDecryption(std::forward<DecryptionT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::String& GetDescription() const { return m_description; }
68 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
69 template <typename DescriptionT = Aws::String>
70 void SetDescription(DescriptionT&& value) {
71 m_descriptionHasBeenSet = true;
72 m_description = std::forward<DescriptionT>(value);
73 }
74 template <typename DescriptionT = Aws::String>
75 SetSourceRequest& WithDescription(DescriptionT&& value) {
76 SetDescription(std::forward<DescriptionT>(value));
77 return *this;
78 }
80
82
87 inline const Aws::String& GetEntitlementArn() const { return m_entitlementArn; }
88 inline bool EntitlementArnHasBeenSet() const { return m_entitlementArnHasBeenSet; }
89 template <typename EntitlementArnT = Aws::String>
90 void SetEntitlementArn(EntitlementArnT&& value) {
91 m_entitlementArnHasBeenSet = true;
92 m_entitlementArn = std::forward<EntitlementArnT>(value);
93 }
94 template <typename EntitlementArnT = Aws::String>
95 SetSourceRequest& WithEntitlementArn(EntitlementArnT&& value) {
96 SetEntitlementArn(std::forward<EntitlementArnT>(value));
97 return *this;
98 }
100
102
105 inline int GetIngestPort() const { return m_ingestPort; }
106 inline bool IngestPortHasBeenSet() const { return m_ingestPortHasBeenSet; }
107 inline void SetIngestPort(int value) {
108 m_ingestPortHasBeenSet = true;
109 m_ingestPort = value;
110 }
111 inline SetSourceRequest& WithIngestPort(int value) {
112 SetIngestPort(value);
113 return *this;
114 }
116
118
121 inline int GetMaxBitrate() const { return m_maxBitrate; }
122 inline bool MaxBitrateHasBeenSet() const { return m_maxBitrateHasBeenSet; }
123 inline void SetMaxBitrate(int value) {
124 m_maxBitrateHasBeenSet = true;
125 m_maxBitrate = value;
126 }
127 inline SetSourceRequest& WithMaxBitrate(int value) {
128 SetMaxBitrate(value);
129 return *this;
130 }
132
134
138 inline int GetMaxLatency() const { return m_maxLatency; }
139 inline bool MaxLatencyHasBeenSet() const { return m_maxLatencyHasBeenSet; }
140 inline void SetMaxLatency(int value) {
141 m_maxLatencyHasBeenSet = true;
142 m_maxLatency = value;
143 }
144 inline SetSourceRequest& WithMaxLatency(int value) {
145 SetMaxLatency(value);
146 return *this;
147 }
149
151
155 inline int GetMaxSyncBuffer() const { return m_maxSyncBuffer; }
156 inline bool MaxSyncBufferHasBeenSet() const { return m_maxSyncBufferHasBeenSet; }
157 inline void SetMaxSyncBuffer(int value) {
158 m_maxSyncBufferHasBeenSet = true;
159 m_maxSyncBuffer = value;
160 }
162 SetMaxSyncBuffer(value);
163 return *this;
164 }
166
168
173 return m_mediaStreamSourceConfigurations;
174 }
175 inline bool MediaStreamSourceConfigurationsHasBeenSet() const { return m_mediaStreamSourceConfigurationsHasBeenSet; }
176 template <typename MediaStreamSourceConfigurationsT = Aws::Vector<MediaStreamSourceConfigurationRequest>>
177 void SetMediaStreamSourceConfigurations(MediaStreamSourceConfigurationsT&& value) {
178 m_mediaStreamSourceConfigurationsHasBeenSet = true;
179 m_mediaStreamSourceConfigurations = std::forward<MediaStreamSourceConfigurationsT>(value);
180 }
181 template <typename MediaStreamSourceConfigurationsT = Aws::Vector<MediaStreamSourceConfigurationRequest>>
182 SetSourceRequest& WithMediaStreamSourceConfigurations(MediaStreamSourceConfigurationsT&& value) {
183 SetMediaStreamSourceConfigurations(std::forward<MediaStreamSourceConfigurationsT>(value));
184 return *this;
185 }
186 template <typename MediaStreamSourceConfigurationsT = MediaStreamSourceConfigurationRequest>
187 SetSourceRequest& AddMediaStreamSourceConfigurations(MediaStreamSourceConfigurationsT&& value) {
188 m_mediaStreamSourceConfigurationsHasBeenSet = true;
189 m_mediaStreamSourceConfigurations.emplace_back(std::forward<MediaStreamSourceConfigurationsT>(value));
190 return *this;
191 }
193
195
202 inline int GetMinLatency() const { return m_minLatency; }
203 inline bool MinLatencyHasBeenSet() const { return m_minLatencyHasBeenSet; }
204 inline void SetMinLatency(int value) {
205 m_minLatencyHasBeenSet = true;
206 m_minLatency = value;
207 }
208 inline SetSourceRequest& WithMinLatency(int value) {
209 SetMinLatency(value);
210 return *this;
211 }
213
215
218 inline const Aws::String& GetName() const { return m_name; }
219 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
220 template <typename NameT = Aws::String>
221 void SetName(NameT&& value) {
222 m_nameHasBeenSet = true;
223 m_name = std::forward<NameT>(value);
224 }
225 template <typename NameT = Aws::String>
226 SetSourceRequest& WithName(NameT&& value) {
227 SetName(std::forward<NameT>(value));
228 return *this;
229 }
231
233
238 inline Protocol GetProtocol() const { return m_protocol; }
239 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
240 inline void SetProtocol(Protocol value) {
241 m_protocolHasBeenSet = true;
242 m_protocol = value;
243 }
245 SetProtocol(value);
246 return *this;
247 }
249
251
255 inline int GetSenderControlPort() const { return m_senderControlPort; }
256 inline bool SenderControlPortHasBeenSet() const { return m_senderControlPortHasBeenSet; }
257 inline void SetSenderControlPort(int value) {
258 m_senderControlPortHasBeenSet = true;
259 m_senderControlPort = value;
260 }
263 return *this;
264 }
266
268
272 inline const Aws::String& GetSenderIpAddress() const { return m_senderIpAddress; }
273 inline bool SenderIpAddressHasBeenSet() const { return m_senderIpAddressHasBeenSet; }
274 template <typename SenderIpAddressT = Aws::String>
275 void SetSenderIpAddress(SenderIpAddressT&& value) {
276 m_senderIpAddressHasBeenSet = true;
277 m_senderIpAddress = std::forward<SenderIpAddressT>(value);
278 }
279 template <typename SenderIpAddressT = Aws::String>
280 SetSourceRequest& WithSenderIpAddress(SenderIpAddressT&& value) {
281 SetSenderIpAddress(std::forward<SenderIpAddressT>(value));
282 return *this;
283 }
285
287
290 inline const Aws::String& GetSourceListenerAddress() const { return m_sourceListenerAddress; }
291 inline bool SourceListenerAddressHasBeenSet() const { return m_sourceListenerAddressHasBeenSet; }
292 template <typename SourceListenerAddressT = Aws::String>
293 void SetSourceListenerAddress(SourceListenerAddressT&& value) {
294 m_sourceListenerAddressHasBeenSet = true;
295 m_sourceListenerAddress = std::forward<SourceListenerAddressT>(value);
296 }
297 template <typename SourceListenerAddressT = Aws::String>
298 SetSourceRequest& WithSourceListenerAddress(SourceListenerAddressT&& value) {
299 SetSourceListenerAddress(std::forward<SourceListenerAddressT>(value));
300 return *this;
301 }
303
305
308 inline int GetSourceListenerPort() const { return m_sourceListenerPort; }
309 inline bool SourceListenerPortHasBeenSet() const { return m_sourceListenerPortHasBeenSet; }
310 inline void SetSourceListenerPort(int value) {
311 m_sourceListenerPortHasBeenSet = true;
312 m_sourceListenerPort = value;
313 }
316 return *this;
317 }
319
321
325 inline const Aws::String& GetStreamId() const { return m_streamId; }
326 inline bool StreamIdHasBeenSet() const { return m_streamIdHasBeenSet; }
327 template <typename StreamIdT = Aws::String>
328 void SetStreamId(StreamIdT&& value) {
329 m_streamIdHasBeenSet = true;
330 m_streamId = std::forward<StreamIdT>(value);
331 }
332 template <typename StreamIdT = Aws::String>
333 SetSourceRequest& WithStreamId(StreamIdT&& value) {
334 SetStreamId(std::forward<StreamIdT>(value));
335 return *this;
336 }
338
340
343 inline const Aws::String& GetVpcInterfaceName() const { return m_vpcInterfaceName; }
344 inline bool VpcInterfaceNameHasBeenSet() const { return m_vpcInterfaceNameHasBeenSet; }
345 template <typename VpcInterfaceNameT = Aws::String>
346 void SetVpcInterfaceName(VpcInterfaceNameT&& value) {
347 m_vpcInterfaceNameHasBeenSet = true;
348 m_vpcInterfaceName = std::forward<VpcInterfaceNameT>(value);
349 }
350 template <typename VpcInterfaceNameT = Aws::String>
351 SetSourceRequest& WithVpcInterfaceName(VpcInterfaceNameT&& value) {
352 SetVpcInterfaceName(std::forward<VpcInterfaceNameT>(value));
353 return *this;
354 }
356
358
363 inline const Aws::String& GetWhitelistCidr() const { return m_whitelistCidr; }
364 inline bool WhitelistCidrHasBeenSet() const { return m_whitelistCidrHasBeenSet; }
365 template <typename WhitelistCidrT = Aws::String>
366 void SetWhitelistCidr(WhitelistCidrT&& value) {
367 m_whitelistCidrHasBeenSet = true;
368 m_whitelistCidr = std::forward<WhitelistCidrT>(value);
369 }
370 template <typename WhitelistCidrT = Aws::String>
371 SetSourceRequest& WithWhitelistCidr(WhitelistCidrT&& value) {
372 SetWhitelistCidr(std::forward<WhitelistCidrT>(value));
373 return *this;
374 }
376
378
382 inline const SetGatewayBridgeSourceRequest& GetGatewayBridgeSource() const { return m_gatewayBridgeSource; }
383 inline bool GatewayBridgeSourceHasBeenSet() const { return m_gatewayBridgeSourceHasBeenSet; }
384 template <typename GatewayBridgeSourceT = SetGatewayBridgeSourceRequest>
385 void SetGatewayBridgeSource(GatewayBridgeSourceT&& value) {
386 m_gatewayBridgeSourceHasBeenSet = true;
387 m_gatewayBridgeSource = std::forward<GatewayBridgeSourceT>(value);
388 }
389 template <typename GatewayBridgeSourceT = SetGatewayBridgeSourceRequest>
390 SetSourceRequest& WithGatewayBridgeSource(GatewayBridgeSourceT&& value) {
391 SetGatewayBridgeSource(std::forward<GatewayBridgeSourceT>(value));
392 return *this;
393 }
395
397
401 inline const NdiSourceSettings& GetNdiSourceSettings() const { return m_ndiSourceSettings; }
402 inline bool NdiSourceSettingsHasBeenSet() const { return m_ndiSourceSettingsHasBeenSet; }
403 template <typename NdiSourceSettingsT = NdiSourceSettings>
404 void SetNdiSourceSettings(NdiSourceSettingsT&& value) {
405 m_ndiSourceSettingsHasBeenSet = true;
406 m_ndiSourceSettings = std::forward<NdiSourceSettingsT>(value);
407 }
408 template <typename NdiSourceSettingsT = NdiSourceSettings>
409 SetSourceRequest& WithNdiSourceSettings(NdiSourceSettingsT&& value) {
410 SetNdiSourceSettings(std::forward<NdiSourceSettingsT>(value));
411 return *this;
412 }
414
416
419 inline const Aws::Map<Aws::String, Aws::String>& GetSourceTags() const { return m_sourceTags; }
420 inline bool SourceTagsHasBeenSet() const { return m_sourceTagsHasBeenSet; }
421 template <typename SourceTagsT = Aws::Map<Aws::String, Aws::String>>
422 void SetSourceTags(SourceTagsT&& value) {
423 m_sourceTagsHasBeenSet = true;
424 m_sourceTags = std::forward<SourceTagsT>(value);
425 }
426 template <typename SourceTagsT = Aws::Map<Aws::String, Aws::String>>
427 SetSourceRequest& WithSourceTags(SourceTagsT&& value) {
428 SetSourceTags(std::forward<SourceTagsT>(value));
429 return *this;
430 }
431 template <typename SourceTagsKeyT = Aws::String, typename SourceTagsValueT = Aws::String>
432 SetSourceRequest& AddSourceTags(SourceTagsKeyT&& key, SourceTagsValueT&& value) {
433 m_sourceTagsHasBeenSet = true;
434 m_sourceTags.emplace(std::forward<SourceTagsKeyT>(key), std::forward<SourceTagsValueT>(value));
435 return *this;
436 }
438
440
444 inline State GetRouterIntegrationState() const { return m_routerIntegrationState; }
445 inline bool RouterIntegrationStateHasBeenSet() const { return m_routerIntegrationStateHasBeenSet; }
446 inline void SetRouterIntegrationState(State value) {
447 m_routerIntegrationStateHasBeenSet = true;
448 m_routerIntegrationState = value;
449 }
452 return *this;
453 }
455
457
462 inline const FlowTransitEncryption& GetRouterIntegrationTransitDecryption() const { return m_routerIntegrationTransitDecryption; }
463 inline bool RouterIntegrationTransitDecryptionHasBeenSet() const { return m_routerIntegrationTransitDecryptionHasBeenSet; }
464 template <typename RouterIntegrationTransitDecryptionT = FlowTransitEncryption>
465 void SetRouterIntegrationTransitDecryption(RouterIntegrationTransitDecryptionT&& value) {
466 m_routerIntegrationTransitDecryptionHasBeenSet = true;
467 m_routerIntegrationTransitDecryption = std::forward<RouterIntegrationTransitDecryptionT>(value);
468 }
469 template <typename RouterIntegrationTransitDecryptionT = FlowTransitEncryption>
470 SetSourceRequest& WithRouterIntegrationTransitDecryption(RouterIntegrationTransitDecryptionT&& value) {
471 SetRouterIntegrationTransitDecryption(std::forward<RouterIntegrationTransitDecryptionT>(value));
472 return *this;
473 }
475 private:
476 Encryption m_decryption;
477
478 Aws::String m_description;
479
480 Aws::String m_entitlementArn;
481
482 int m_ingestPort{0};
483
484 int m_maxBitrate{0};
485
486 int m_maxLatency{0};
487
488 int m_maxSyncBuffer{0};
489
490 Aws::Vector<MediaStreamSourceConfigurationRequest> m_mediaStreamSourceConfigurations;
491
492 int m_minLatency{0};
493
494 Aws::String m_name;
495
496 Protocol m_protocol{Protocol::NOT_SET};
497
498 int m_senderControlPort{0};
499
500 Aws::String m_senderIpAddress;
501
502 Aws::String m_sourceListenerAddress;
503
504 int m_sourceListenerPort{0};
505
506 Aws::String m_streamId;
507
508 Aws::String m_vpcInterfaceName;
509
510 Aws::String m_whitelistCidr;
511
512 SetGatewayBridgeSourceRequest m_gatewayBridgeSource;
513
514 NdiSourceSettings m_ndiSourceSettings;
515
517
518 State m_routerIntegrationState{State::NOT_SET};
519
520 FlowTransitEncryption m_routerIntegrationTransitDecryption;
521 bool m_decryptionHasBeenSet = false;
522 bool m_descriptionHasBeenSet = false;
523 bool m_entitlementArnHasBeenSet = false;
524 bool m_ingestPortHasBeenSet = false;
525 bool m_maxBitrateHasBeenSet = false;
526 bool m_maxLatencyHasBeenSet = false;
527 bool m_maxSyncBufferHasBeenSet = false;
528 bool m_mediaStreamSourceConfigurationsHasBeenSet = false;
529 bool m_minLatencyHasBeenSet = false;
530 bool m_nameHasBeenSet = false;
531 bool m_protocolHasBeenSet = false;
532 bool m_senderControlPortHasBeenSet = false;
533 bool m_senderIpAddressHasBeenSet = false;
534 bool m_sourceListenerAddressHasBeenSet = false;
535 bool m_sourceListenerPortHasBeenSet = false;
536 bool m_streamIdHasBeenSet = false;
537 bool m_vpcInterfaceNameHasBeenSet = false;
538 bool m_whitelistCidrHasBeenSet = false;
539 bool m_gatewayBridgeSourceHasBeenSet = false;
540 bool m_ndiSourceSettingsHasBeenSet = false;
541 bool m_sourceTagsHasBeenSet = false;
542 bool m_routerIntegrationStateHasBeenSet = false;
543 bool m_routerIntegrationTransitDecryptionHasBeenSet = false;
544};
545
546} // namespace Model
547} // namespace MediaConnect
548} // namespace Aws
SetSourceRequest & WithMaxSyncBuffer(int value)
void SetWhitelistCidr(WhitelistCidrT &&value)
SetSourceRequest & WithSenderIpAddress(SenderIpAddressT &&value)
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
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)
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