#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateBridgeInput {
pub bridge_arn: ::std::option::Option<::std::string::String>,
#[allow(missing_docs)] pub egress_gateway_bridge: ::std::option::Option<crate::types::UpdateEgressGatewayBridgeRequest>,
#[allow(missing_docs)] pub ingress_gateway_bridge: ::std::option::Option<crate::types::UpdateIngressGatewayBridgeRequest>,
pub source_failover_config: ::std::option::Option<crate::types::UpdateFailoverConfig>,
}
impl UpdateBridgeInput {
pub fn bridge_arn(&self) -> ::std::option::Option<&str> {
self.bridge_arn.as_deref()
}
#[allow(missing_docs)] pub fn egress_gateway_bridge(&self) -> ::std::option::Option<&crate::types::UpdateEgressGatewayBridgeRequest> {
self.egress_gateway_bridge.as_ref()
}
#[allow(missing_docs)] pub fn ingress_gateway_bridge(&self) -> ::std::option::Option<&crate::types::UpdateIngressGatewayBridgeRequest> {
self.ingress_gateway_bridge.as_ref()
}
pub fn source_failover_config(&self) -> ::std::option::Option<&crate::types::UpdateFailoverConfig> {
self.source_failover_config.as_ref()
}
}
impl UpdateBridgeInput {
pub fn builder() -> crate::operation::update_bridge::builders::UpdateBridgeInputBuilder {
crate::operation::update_bridge::builders::UpdateBridgeInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct UpdateBridgeInputBuilder {
pub(crate) bridge_arn: ::std::option::Option<::std::string::String>,
pub(crate) egress_gateway_bridge: ::std::option::Option<crate::types::UpdateEgressGatewayBridgeRequest>,
pub(crate) ingress_gateway_bridge: ::std::option::Option<crate::types::UpdateIngressGatewayBridgeRequest>,
pub(crate) source_failover_config: ::std::option::Option<crate::types::UpdateFailoverConfig>,
}
impl UpdateBridgeInputBuilder {
pub fn bridge_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.bridge_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_bridge_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.bridge_arn = input;
self
}
pub fn get_bridge_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.bridge_arn
}
#[allow(missing_docs)] pub fn egress_gateway_bridge(mut self, input: crate::types::UpdateEgressGatewayBridgeRequest) -> Self {
self.egress_gateway_bridge = ::std::option::Option::Some(input);
self
}
#[allow(missing_docs)] pub fn set_egress_gateway_bridge(mut self, input: ::std::option::Option<crate::types::UpdateEgressGatewayBridgeRequest>) -> Self {
self.egress_gateway_bridge = input;
self
}
#[allow(missing_docs)] pub fn get_egress_gateway_bridge(&self) -> &::std::option::Option<crate::types::UpdateEgressGatewayBridgeRequest> {
&self.egress_gateway_bridge
}
#[allow(missing_docs)] pub fn ingress_gateway_bridge(mut self, input: crate::types::UpdateIngressGatewayBridgeRequest) -> Self {
self.ingress_gateway_bridge = ::std::option::Option::Some(input);
self
}
#[allow(missing_docs)] pub fn set_ingress_gateway_bridge(mut self, input: ::std::option::Option<crate::types::UpdateIngressGatewayBridgeRequest>) -> Self {
self.ingress_gateway_bridge = input;
self
}
#[allow(missing_docs)] pub fn get_ingress_gateway_bridge(&self) -> &::std::option::Option<crate::types::UpdateIngressGatewayBridgeRequest> {
&self.ingress_gateway_bridge
}
pub fn source_failover_config(mut self, input: crate::types::UpdateFailoverConfig) -> Self {
self.source_failover_config = ::std::option::Option::Some(input);
self
}
pub fn set_source_failover_config(mut self, input: ::std::option::Option<crate::types::UpdateFailoverConfig>) -> Self {
self.source_failover_config = input;
self
}
pub fn get_source_failover_config(&self) -> &::std::option::Option<crate::types::UpdateFailoverConfig> {
&self.source_failover_config
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::update_bridge::UpdateBridgeInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::update_bridge::UpdateBridgeInput {
bridge_arn: self.bridge_arn,
egress_gateway_bridge: self.egress_gateway_bridge,
ingress_gateway_bridge: self.ingress_gateway_bridge,
source_failover_config: self.source_failover_config,
})
}
}