aws_sdk_mediaconnect/types/
_update_bridge_network_source_request.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>Update the network source of the bridge.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct UpdateBridgeNetworkSourceRequest {
7    /// <p>The network source multicast IP.</p>
8    pub multicast_ip: ::std::option::Option<::std::string::String>,
9    /// <p>The settings related to the multicast source.</p>
10    pub multicast_source_settings: ::std::option::Option<crate::types::MulticastSourceSettings>,
11    /// <p>The network source's gateway network name.</p>
12    pub network_name: ::std::option::Option<::std::string::String>,
13    /// <p>The network source port.</p>
14    pub port: ::std::option::Option<i32>,
15    /// <p>The network source protocol.</p><note>
16    /// <p>Elemental MediaConnect no longer supports the Fujitsu QoS protocol. This reference is maintained for legacy purposes only.</p>
17    /// </note>
18    pub protocol: ::std::option::Option<crate::types::Protocol>,
19}
20impl UpdateBridgeNetworkSourceRequest {
21    /// <p>The network source multicast IP.</p>
22    pub fn multicast_ip(&self) -> ::std::option::Option<&str> {
23        self.multicast_ip.as_deref()
24    }
25    /// <p>The settings related to the multicast source.</p>
26    pub fn multicast_source_settings(&self) -> ::std::option::Option<&crate::types::MulticastSourceSettings> {
27        self.multicast_source_settings.as_ref()
28    }
29    /// <p>The network source's gateway network name.</p>
30    pub fn network_name(&self) -> ::std::option::Option<&str> {
31        self.network_name.as_deref()
32    }
33    /// <p>The network source port.</p>
34    pub fn port(&self) -> ::std::option::Option<i32> {
35        self.port
36    }
37    /// <p>The network source protocol.</p><note>
38    /// <p>Elemental MediaConnect no longer supports the Fujitsu QoS protocol. This reference is maintained for legacy purposes only.</p>
39    /// </note>
40    pub fn protocol(&self) -> ::std::option::Option<&crate::types::Protocol> {
41        self.protocol.as_ref()
42    }
43}
44impl UpdateBridgeNetworkSourceRequest {
45    /// Creates a new builder-style object to manufacture [`UpdateBridgeNetworkSourceRequest`](crate::types::UpdateBridgeNetworkSourceRequest).
46    pub fn builder() -> crate::types::builders::UpdateBridgeNetworkSourceRequestBuilder {
47        crate::types::builders::UpdateBridgeNetworkSourceRequestBuilder::default()
48    }
49}
50
51/// A builder for [`UpdateBridgeNetworkSourceRequest`](crate::types::UpdateBridgeNetworkSourceRequest).
52#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
53#[non_exhaustive]
54pub struct UpdateBridgeNetworkSourceRequestBuilder {
55    pub(crate) multicast_ip: ::std::option::Option<::std::string::String>,
56    pub(crate) multicast_source_settings: ::std::option::Option<crate::types::MulticastSourceSettings>,
57    pub(crate) network_name: ::std::option::Option<::std::string::String>,
58    pub(crate) port: ::std::option::Option<i32>,
59    pub(crate) protocol: ::std::option::Option<crate::types::Protocol>,
60}
61impl UpdateBridgeNetworkSourceRequestBuilder {
62    /// <p>The network source multicast IP.</p>
63    pub fn multicast_ip(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
64        self.multicast_ip = ::std::option::Option::Some(input.into());
65        self
66    }
67    /// <p>The network source multicast IP.</p>
68    pub fn set_multicast_ip(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
69        self.multicast_ip = input;
70        self
71    }
72    /// <p>The network source multicast IP.</p>
73    pub fn get_multicast_ip(&self) -> &::std::option::Option<::std::string::String> {
74        &self.multicast_ip
75    }
76    /// <p>The settings related to the multicast source.</p>
77    pub fn multicast_source_settings(mut self, input: crate::types::MulticastSourceSettings) -> Self {
78        self.multicast_source_settings = ::std::option::Option::Some(input);
79        self
80    }
81    /// <p>The settings related to the multicast source.</p>
82    pub fn set_multicast_source_settings(mut self, input: ::std::option::Option<crate::types::MulticastSourceSettings>) -> Self {
83        self.multicast_source_settings = input;
84        self
85    }
86    /// <p>The settings related to the multicast source.</p>
87    pub fn get_multicast_source_settings(&self) -> &::std::option::Option<crate::types::MulticastSourceSettings> {
88        &self.multicast_source_settings
89    }
90    /// <p>The network source's gateway network name.</p>
91    pub fn network_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
92        self.network_name = ::std::option::Option::Some(input.into());
93        self
94    }
95    /// <p>The network source's gateway network name.</p>
96    pub fn set_network_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
97        self.network_name = input;
98        self
99    }
100    /// <p>The network source's gateway network name.</p>
101    pub fn get_network_name(&self) -> &::std::option::Option<::std::string::String> {
102        &self.network_name
103    }
104    /// <p>The network source port.</p>
105    pub fn port(mut self, input: i32) -> Self {
106        self.port = ::std::option::Option::Some(input);
107        self
108    }
109    /// <p>The network source port.</p>
110    pub fn set_port(mut self, input: ::std::option::Option<i32>) -> Self {
111        self.port = input;
112        self
113    }
114    /// <p>The network source port.</p>
115    pub fn get_port(&self) -> &::std::option::Option<i32> {
116        &self.port
117    }
118    /// <p>The network source protocol.</p><note>
119    /// <p>Elemental MediaConnect no longer supports the Fujitsu QoS protocol. This reference is maintained for legacy purposes only.</p>
120    /// </note>
121    pub fn protocol(mut self, input: crate::types::Protocol) -> Self {
122        self.protocol = ::std::option::Option::Some(input);
123        self
124    }
125    /// <p>The network source protocol.</p><note>
126    /// <p>Elemental MediaConnect no longer supports the Fujitsu QoS protocol. This reference is maintained for legacy purposes only.</p>
127    /// </note>
128    pub fn set_protocol(mut self, input: ::std::option::Option<crate::types::Protocol>) -> Self {
129        self.protocol = input;
130        self
131    }
132    /// <p>The network source protocol.</p><note>
133    /// <p>Elemental MediaConnect no longer supports the Fujitsu QoS protocol. This reference is maintained for legacy purposes only.</p>
134    /// </note>
135    pub fn get_protocol(&self) -> &::std::option::Option<crate::types::Protocol> {
136        &self.protocol
137    }
138    /// Consumes the builder and constructs a [`UpdateBridgeNetworkSourceRequest`](crate::types::UpdateBridgeNetworkSourceRequest).
139    pub fn build(self) -> crate::types::UpdateBridgeNetworkSourceRequest {
140        crate::types::UpdateBridgeNetworkSourceRequest {
141            multicast_ip: self.multicast_ip,
142            multicast_source_settings: self.multicast_source_settings,
143            network_name: self.network_name,
144            port: self.port,
145            protocol: self.protocol,
146        }
147    }
148}