aws-sdk-mediaconnect 1.91.0

AWS SDK for AWS MediaConnect
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>The settings for the source of the flow.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Source {
    /// <p>Percentage from 0-100 of the data transfer cost to be billed to the subscriber.</p>
    pub data_transfer_subscriber_fee_percent: ::std::option::Option<i32>,
    /// <p>The type of encryption that is used on the content ingested from this source.</p>
    pub decryption: ::std::option::Option<crate::types::Encryption>,
    /// <p>A description for the source. This value is not used or seen outside of the current MediaConnect account.</p>
    pub description: ::std::option::Option<::std::string::String>,
    /// <p>The ARN of the entitlement that allows you to subscribe to content that comes from another Amazon Web Services account. The entitlement is set by the content originator and the ARN is generated as part of the originator's flow.</p>
    pub entitlement_arn: ::std::option::Option<::std::string::String>,
    /// <p>The IP address that the flow will be listening on for incoming content.</p>
    pub ingest_ip: ::std::option::Option<::std::string::String>,
    /// <p>The port that the flow will be listening on for incoming content.</p>
    pub ingest_port: ::std::option::Option<i32>,
    /// <p>The media streams that are associated with the source, and the parameters for those associations.</p>
    pub media_stream_source_configurations: ::std::option::Option<::std::vec::Vec<crate::types::MediaStreamSourceConfiguration>>,
    /// <p>The name of the source.</p>
    pub name: ::std::option::Option<::std::string::String>,
    /// <p>The IP address that the flow communicates with to initiate connection with the sender.</p>
    pub sender_control_port: ::std::option::Option<i32>,
    /// <p>The port that the flow uses to send outbound requests to initiate connection with the sender.</p>
    pub sender_ip_address: ::std::option::Option<::std::string::String>,
    /// <p>The ARN of the source.</p>
    pub source_arn: ::std::option::Option<::std::string::String>,
    /// <p>Attributes related to the transport stream that are used in the source.</p>
    pub transport: ::std::option::Option<crate::types::Transport>,
    /// <p>The name of the VPC interface that is used for this source.</p>
    pub vpc_interface_name: ::std::option::Option<::std::string::String>,
    /// <p>The range of IP addresses that should be allowed to contribute content to your source. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.</p>
    pub whitelist_cidr: ::std::option::Option<::std::string::String>,
    /// <p>The source configuration for cloud flows receiving a stream from a bridge.</p>
    pub gateway_bridge_source: ::std::option::Option<crate::types::GatewayBridgeSource>,
    /// <p>The IP address of the device that is currently sending content to this source.</p><note>
    /// <ul>
    /// <li>
    /// <p>For sources that use protocols where you specify the origin (such as SRT Caller), this value matches the configured origin address.</p></li>
    /// <li>
    /// <p>For sources that use listener protocols (such as SRT Listener or RTP), this value shows the address of the connected sender.</p></li>
    /// <li>
    /// <p>Peer IP addresses aren't available for entitlements and CDI/ST2110 sources.</p></li>
    /// <li>
    /// <p>The peer IP address might not be visible for flows that haven't been started yet, or flows that were started before May 2025. In these cases, restart your flow to see the peer IP address.</p></li>
    /// </ul>
    /// </note>
    pub peer_ip_address: ::std::option::Option<::std::string::String>,
}
impl Source {
    /// <p>Percentage from 0-100 of the data transfer cost to be billed to the subscriber.</p>
    pub fn data_transfer_subscriber_fee_percent(&self) -> ::std::option::Option<i32> {
        self.data_transfer_subscriber_fee_percent
    }
    /// <p>The type of encryption that is used on the content ingested from this source.</p>
    pub fn decryption(&self) -> ::std::option::Option<&crate::types::Encryption> {
        self.decryption.as_ref()
    }
    /// <p>A description for the source. This value is not used or seen outside of the current MediaConnect account.</p>
    pub fn description(&self) -> ::std::option::Option<&str> {
        self.description.as_deref()
    }
    /// <p>The ARN of the entitlement that allows you to subscribe to content that comes from another Amazon Web Services account. The entitlement is set by the content originator and the ARN is generated as part of the originator's flow.</p>
    pub fn entitlement_arn(&self) -> ::std::option::Option<&str> {
        self.entitlement_arn.as_deref()
    }
    /// <p>The IP address that the flow will be listening on for incoming content.</p>
    pub fn ingest_ip(&self) -> ::std::option::Option<&str> {
        self.ingest_ip.as_deref()
    }
    /// <p>The port that the flow will be listening on for incoming content.</p>
    pub fn ingest_port(&self) -> ::std::option::Option<i32> {
        self.ingest_port
    }
    /// <p>The media streams that are associated with the source, and the parameters for those associations.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.media_stream_source_configurations.is_none()`.
    pub fn media_stream_source_configurations(&self) -> &[crate::types::MediaStreamSourceConfiguration] {
        self.media_stream_source_configurations.as_deref().unwrap_or_default()
    }
    /// <p>The name of the source.</p>
    pub fn name(&self) -> ::std::option::Option<&str> {
        self.name.as_deref()
    }
    /// <p>The IP address that the flow communicates with to initiate connection with the sender.</p>
    pub fn sender_control_port(&self) -> ::std::option::Option<i32> {
        self.sender_control_port
    }
    /// <p>The port that the flow uses to send outbound requests to initiate connection with the sender.</p>
    pub fn sender_ip_address(&self) -> ::std::option::Option<&str> {
        self.sender_ip_address.as_deref()
    }
    /// <p>The ARN of the source.</p>
    pub fn source_arn(&self) -> ::std::option::Option<&str> {
        self.source_arn.as_deref()
    }
    /// <p>Attributes related to the transport stream that are used in the source.</p>
    pub fn transport(&self) -> ::std::option::Option<&crate::types::Transport> {
        self.transport.as_ref()
    }
    /// <p>The name of the VPC interface that is used for this source.</p>
    pub fn vpc_interface_name(&self) -> ::std::option::Option<&str> {
        self.vpc_interface_name.as_deref()
    }
    /// <p>The range of IP addresses that should be allowed to contribute content to your source. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.</p>
    pub fn whitelist_cidr(&self) -> ::std::option::Option<&str> {
        self.whitelist_cidr.as_deref()
    }
    /// <p>The source configuration for cloud flows receiving a stream from a bridge.</p>
    pub fn gateway_bridge_source(&self) -> ::std::option::Option<&crate::types::GatewayBridgeSource> {
        self.gateway_bridge_source.as_ref()
    }
    /// <p>The IP address of the device that is currently sending content to this source.</p><note>
    /// <ul>
    /// <li>
    /// <p>For sources that use protocols where you specify the origin (such as SRT Caller), this value matches the configured origin address.</p></li>
    /// <li>
    /// <p>For sources that use listener protocols (such as SRT Listener or RTP), this value shows the address of the connected sender.</p></li>
    /// <li>
    /// <p>Peer IP addresses aren't available for entitlements and CDI/ST2110 sources.</p></li>
    /// <li>
    /// <p>The peer IP address might not be visible for flows that haven't been started yet, or flows that were started before May 2025. In these cases, restart your flow to see the peer IP address.</p></li>
    /// </ul>
    /// </note>
    pub fn peer_ip_address(&self) -> ::std::option::Option<&str> {
        self.peer_ip_address.as_deref()
    }
}
impl Source {
    /// Creates a new builder-style object to manufacture [`Source`](crate::types::Source).
    pub fn builder() -> crate::types::builders::SourceBuilder {
        crate::types::builders::SourceBuilder::default()
    }
}

/// A builder for [`Source`](crate::types::Source).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct SourceBuilder {
    pub(crate) data_transfer_subscriber_fee_percent: ::std::option::Option<i32>,
    pub(crate) decryption: ::std::option::Option<crate::types::Encryption>,
    pub(crate) description: ::std::option::Option<::std::string::String>,
    pub(crate) entitlement_arn: ::std::option::Option<::std::string::String>,
    pub(crate) ingest_ip: ::std::option::Option<::std::string::String>,
    pub(crate) ingest_port: ::std::option::Option<i32>,
    pub(crate) media_stream_source_configurations: ::std::option::Option<::std::vec::Vec<crate::types::MediaStreamSourceConfiguration>>,
    pub(crate) name: ::std::option::Option<::std::string::String>,
    pub(crate) sender_control_port: ::std::option::Option<i32>,
    pub(crate) sender_ip_address: ::std::option::Option<::std::string::String>,
    pub(crate) source_arn: ::std::option::Option<::std::string::String>,
    pub(crate) transport: ::std::option::Option<crate::types::Transport>,
    pub(crate) vpc_interface_name: ::std::option::Option<::std::string::String>,
    pub(crate) whitelist_cidr: ::std::option::Option<::std::string::String>,
    pub(crate) gateway_bridge_source: ::std::option::Option<crate::types::GatewayBridgeSource>,
    pub(crate) peer_ip_address: ::std::option::Option<::std::string::String>,
}
impl SourceBuilder {
    /// <p>Percentage from 0-100 of the data transfer cost to be billed to the subscriber.</p>
    pub fn data_transfer_subscriber_fee_percent(mut self, input: i32) -> Self {
        self.data_transfer_subscriber_fee_percent = ::std::option::Option::Some(input);
        self
    }
    /// <p>Percentage from 0-100 of the data transfer cost to be billed to the subscriber.</p>
    pub fn set_data_transfer_subscriber_fee_percent(mut self, input: ::std::option::Option<i32>) -> Self {
        self.data_transfer_subscriber_fee_percent = input;
        self
    }
    /// <p>Percentage from 0-100 of the data transfer cost to be billed to the subscriber.</p>
    pub fn get_data_transfer_subscriber_fee_percent(&self) -> &::std::option::Option<i32> {
        &self.data_transfer_subscriber_fee_percent
    }
    /// <p>The type of encryption that is used on the content ingested from this source.</p>
    pub fn decryption(mut self, input: crate::types::Encryption) -> Self {
        self.decryption = ::std::option::Option::Some(input);
        self
    }
    /// <p>The type of encryption that is used on the content ingested from this source.</p>
    pub fn set_decryption(mut self, input: ::std::option::Option<crate::types::Encryption>) -> Self {
        self.decryption = input;
        self
    }
    /// <p>The type of encryption that is used on the content ingested from this source.</p>
    pub fn get_decryption(&self) -> &::std::option::Option<crate::types::Encryption> {
        &self.decryption
    }
    /// <p>A description for the source. This value is not used or seen outside of the current MediaConnect account.</p>
    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.description = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A description for the source. This value is not used or seen outside of the current MediaConnect account.</p>
    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.description = input;
        self
    }
    /// <p>A description for the source. This value is not used or seen outside of the current MediaConnect account.</p>
    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
        &self.description
    }
    /// <p>The ARN of the entitlement that allows you to subscribe to content that comes from another Amazon Web Services account. The entitlement is set by the content originator and the ARN is generated as part of the originator's flow.</p>
    pub fn entitlement_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.entitlement_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ARN of the entitlement that allows you to subscribe to content that comes from another Amazon Web Services account. The entitlement is set by the content originator and the ARN is generated as part of the originator's flow.</p>
    pub fn set_entitlement_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.entitlement_arn = input;
        self
    }
    /// <p>The ARN of the entitlement that allows you to subscribe to content that comes from another Amazon Web Services account. The entitlement is set by the content originator and the ARN is generated as part of the originator's flow.</p>
    pub fn get_entitlement_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.entitlement_arn
    }
    /// <p>The IP address that the flow will be listening on for incoming content.</p>
    pub fn ingest_ip(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.ingest_ip = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The IP address that the flow will be listening on for incoming content.</p>
    pub fn set_ingest_ip(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.ingest_ip = input;
        self
    }
    /// <p>The IP address that the flow will be listening on for incoming content.</p>
    pub fn get_ingest_ip(&self) -> &::std::option::Option<::std::string::String> {
        &self.ingest_ip
    }
    /// <p>The port that the flow will be listening on for incoming content.</p>
    pub fn ingest_port(mut self, input: i32) -> Self {
        self.ingest_port = ::std::option::Option::Some(input);
        self
    }
    /// <p>The port that the flow will be listening on for incoming content.</p>
    pub fn set_ingest_port(mut self, input: ::std::option::Option<i32>) -> Self {
        self.ingest_port = input;
        self
    }
    /// <p>The port that the flow will be listening on for incoming content.</p>
    pub fn get_ingest_port(&self) -> &::std::option::Option<i32> {
        &self.ingest_port
    }
    /// Appends an item to `media_stream_source_configurations`.
    ///
    /// To override the contents of this collection use [`set_media_stream_source_configurations`](Self::set_media_stream_source_configurations).
    ///
    /// <p>The media streams that are associated with the source, and the parameters for those associations.</p>
    pub fn media_stream_source_configurations(mut self, input: crate::types::MediaStreamSourceConfiguration) -> Self {
        let mut v = self.media_stream_source_configurations.unwrap_or_default();
        v.push(input);
        self.media_stream_source_configurations = ::std::option::Option::Some(v);
        self
    }
    /// <p>The media streams that are associated with the source, and the parameters for those associations.</p>
    pub fn set_media_stream_source_configurations(
        mut self,
        input: ::std::option::Option<::std::vec::Vec<crate::types::MediaStreamSourceConfiguration>>,
    ) -> Self {
        self.media_stream_source_configurations = input;
        self
    }
    /// <p>The media streams that are associated with the source, and the parameters for those associations.</p>
    pub fn get_media_stream_source_configurations(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::MediaStreamSourceConfiguration>> {
        &self.media_stream_source_configurations
    }
    /// <p>The name of the source.</p>
    /// This field is required.
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the source.</p>
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.name = input;
        self
    }
    /// <p>The name of the source.</p>
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.name
    }
    /// <p>The IP address that the flow communicates with to initiate connection with the sender.</p>
    pub fn sender_control_port(mut self, input: i32) -> Self {
        self.sender_control_port = ::std::option::Option::Some(input);
        self
    }
    /// <p>The IP address that the flow communicates with to initiate connection with the sender.</p>
    pub fn set_sender_control_port(mut self, input: ::std::option::Option<i32>) -> Self {
        self.sender_control_port = input;
        self
    }
    /// <p>The IP address that the flow communicates with to initiate connection with the sender.</p>
    pub fn get_sender_control_port(&self) -> &::std::option::Option<i32> {
        &self.sender_control_port
    }
    /// <p>The port that the flow uses to send outbound requests to initiate connection with the sender.</p>
    pub fn sender_ip_address(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.sender_ip_address = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The port that the flow uses to send outbound requests to initiate connection with the sender.</p>
    pub fn set_sender_ip_address(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.sender_ip_address = input;
        self
    }
    /// <p>The port that the flow uses to send outbound requests to initiate connection with the sender.</p>
    pub fn get_sender_ip_address(&self) -> &::std::option::Option<::std::string::String> {
        &self.sender_ip_address
    }
    /// <p>The ARN of the source.</p>
    /// This field is required.
    pub fn source_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.source_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ARN of the source.</p>
    pub fn set_source_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.source_arn = input;
        self
    }
    /// <p>The ARN of the source.</p>
    pub fn get_source_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.source_arn
    }
    /// <p>Attributes related to the transport stream that are used in the source.</p>
    pub fn transport(mut self, input: crate::types::Transport) -> Self {
        self.transport = ::std::option::Option::Some(input);
        self
    }
    /// <p>Attributes related to the transport stream that are used in the source.</p>
    pub fn set_transport(mut self, input: ::std::option::Option<crate::types::Transport>) -> Self {
        self.transport = input;
        self
    }
    /// <p>Attributes related to the transport stream that are used in the source.</p>
    pub fn get_transport(&self) -> &::std::option::Option<crate::types::Transport> {
        &self.transport
    }
    /// <p>The name of the VPC interface that is used for this source.</p>
    pub fn vpc_interface_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.vpc_interface_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the VPC interface that is used for this source.</p>
    pub fn set_vpc_interface_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.vpc_interface_name = input;
        self
    }
    /// <p>The name of the VPC interface that is used for this source.</p>
    pub fn get_vpc_interface_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.vpc_interface_name
    }
    /// <p>The range of IP addresses that should be allowed to contribute content to your source. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.</p>
    pub fn whitelist_cidr(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.whitelist_cidr = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The range of IP addresses that should be allowed to contribute content to your source. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.</p>
    pub fn set_whitelist_cidr(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.whitelist_cidr = input;
        self
    }
    /// <p>The range of IP addresses that should be allowed to contribute content to your source. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.</p>
    pub fn get_whitelist_cidr(&self) -> &::std::option::Option<::std::string::String> {
        &self.whitelist_cidr
    }
    /// <p>The source configuration for cloud flows receiving a stream from a bridge.</p>
    pub fn gateway_bridge_source(mut self, input: crate::types::GatewayBridgeSource) -> Self {
        self.gateway_bridge_source = ::std::option::Option::Some(input);
        self
    }
    /// <p>The source configuration for cloud flows receiving a stream from a bridge.</p>
    pub fn set_gateway_bridge_source(mut self, input: ::std::option::Option<crate::types::GatewayBridgeSource>) -> Self {
        self.gateway_bridge_source = input;
        self
    }
    /// <p>The source configuration for cloud flows receiving a stream from a bridge.</p>
    pub fn get_gateway_bridge_source(&self) -> &::std::option::Option<crate::types::GatewayBridgeSource> {
        &self.gateway_bridge_source
    }
    /// <p>The IP address of the device that is currently sending content to this source.</p><note>
    /// <ul>
    /// <li>
    /// <p>For sources that use protocols where you specify the origin (such as SRT Caller), this value matches the configured origin address.</p></li>
    /// <li>
    /// <p>For sources that use listener protocols (such as SRT Listener or RTP), this value shows the address of the connected sender.</p></li>
    /// <li>
    /// <p>Peer IP addresses aren't available for entitlements and CDI/ST2110 sources.</p></li>
    /// <li>
    /// <p>The peer IP address might not be visible for flows that haven't been started yet, or flows that were started before May 2025. In these cases, restart your flow to see the peer IP address.</p></li>
    /// </ul>
    /// </note>
    pub fn peer_ip_address(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.peer_ip_address = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The IP address of the device that is currently sending content to this source.</p><note>
    /// <ul>
    /// <li>
    /// <p>For sources that use protocols where you specify the origin (such as SRT Caller), this value matches the configured origin address.</p></li>
    /// <li>
    /// <p>For sources that use listener protocols (such as SRT Listener or RTP), this value shows the address of the connected sender.</p></li>
    /// <li>
    /// <p>Peer IP addresses aren't available for entitlements and CDI/ST2110 sources.</p></li>
    /// <li>
    /// <p>The peer IP address might not be visible for flows that haven't been started yet, or flows that were started before May 2025. In these cases, restart your flow to see the peer IP address.</p></li>
    /// </ul>
    /// </note>
    pub fn set_peer_ip_address(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.peer_ip_address = input;
        self
    }
    /// <p>The IP address of the device that is currently sending content to this source.</p><note>
    /// <ul>
    /// <li>
    /// <p>For sources that use protocols where you specify the origin (such as SRT Caller), this value matches the configured origin address.</p></li>
    /// <li>
    /// <p>For sources that use listener protocols (such as SRT Listener or RTP), this value shows the address of the connected sender.</p></li>
    /// <li>
    /// <p>Peer IP addresses aren't available for entitlements and CDI/ST2110 sources.</p></li>
    /// <li>
    /// <p>The peer IP address might not be visible for flows that haven't been started yet, or flows that were started before May 2025. In these cases, restart your flow to see the peer IP address.</p></li>
    /// </ul>
    /// </note>
    pub fn get_peer_ip_address(&self) -> &::std::option::Option<::std::string::String> {
        &self.peer_ip_address
    }
    /// Consumes the builder and constructs a [`Source`](crate::types::Source).
    pub fn build(self) -> crate::types::Source {
        crate::types::Source {
            data_transfer_subscriber_fee_percent: self.data_transfer_subscriber_fee_percent,
            decryption: self.decryption,
            description: self.description,
            entitlement_arn: self.entitlement_arn,
            ingest_ip: self.ingest_ip,
            ingest_port: self.ingest_port,
            media_stream_source_configurations: self.media_stream_source_configurations,
            name: self.name,
            sender_control_port: self.sender_control_port,
            sender_ip_address: self.sender_ip_address,
            source_arn: self.source_arn,
            transport: self.transport,
            vpc_interface_name: self.vpc_interface_name,
            whitelist_cidr: self.whitelist_cidr,
            gateway_bridge_source: self.gateway_bridge_source,
            peer_ip_address: self.peer_ip_address,
        }
    }
}