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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// A request to update the bridge.
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateBridgeInput {
    /// The Amazon Resource Number (ARN) of the bridge that you want to update.
    pub bridge_arn: ::std::option::Option<::std::string::String>,
    #[allow(missing_docs)] // documentation missing in model
    pub egress_gateway_bridge: ::std::option::Option<crate::types::UpdateEgressGatewayBridgeRequest>,
    #[allow(missing_docs)] // documentation missing in model
    pub ingress_gateway_bridge: ::std::option::Option<crate::types::UpdateIngressGatewayBridgeRequest>,
    /// The settings for source failover.
    pub source_failover_config: ::std::option::Option<crate::types::UpdateFailoverConfig>,
}
impl UpdateBridgeInput {
    /// The Amazon Resource Number (ARN) of the bridge that you want to update.
    pub fn bridge_arn(&self) -> ::std::option::Option<&str> {
        self.bridge_arn.as_deref()
    }
    #[allow(missing_docs)] // documentation missing in model
    pub fn egress_gateway_bridge(&self) -> ::std::option::Option<&crate::types::UpdateEgressGatewayBridgeRequest> {
        self.egress_gateway_bridge.as_ref()
    }
    #[allow(missing_docs)] // documentation missing in model
    pub fn ingress_gateway_bridge(&self) -> ::std::option::Option<&crate::types::UpdateIngressGatewayBridgeRequest> {
        self.ingress_gateway_bridge.as_ref()
    }
    /// The settings for source failover.
    pub fn source_failover_config(&self) -> ::std::option::Option<&crate::types::UpdateFailoverConfig> {
        self.source_failover_config.as_ref()
    }
}
impl UpdateBridgeInput {
    /// Creates a new builder-style object to manufacture [`UpdateBridgeInput`](crate::operation::update_bridge::UpdateBridgeInput).
    pub fn builder() -> crate::operation::update_bridge::builders::UpdateBridgeInputBuilder {
        crate::operation::update_bridge::builders::UpdateBridgeInputBuilder::default()
    }
}

/// A builder for [`UpdateBridgeInput`](crate::operation::update_bridge::UpdateBridgeInput).
#[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 {
    /// The Amazon Resource Number (ARN) of the bridge that you want to update.
    /// This field is required.
    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
    }
    /// The Amazon Resource Number (ARN) of the bridge that you want to update.
    pub fn set_bridge_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.bridge_arn = input;
        self
    }
    /// The Amazon Resource Number (ARN) of the bridge that you want to update.
    pub fn get_bridge_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.bridge_arn
    }
    #[allow(missing_docs)] // documentation missing in model
    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)] // documentation missing in model
    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)] // documentation missing in model
    pub fn get_egress_gateway_bridge(&self) -> &::std::option::Option<crate::types::UpdateEgressGatewayBridgeRequest> {
        &self.egress_gateway_bridge
    }
    #[allow(missing_docs)] // documentation missing in model
    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)] // documentation missing in model
    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)] // documentation missing in model
    pub fn get_ingress_gateway_bridge(&self) -> &::std::option::Option<crate::types::UpdateIngressGatewayBridgeRequest> {
        &self.ingress_gateway_bridge
    }
    /// The settings for source failover.
    pub fn source_failover_config(mut self, input: crate::types::UpdateFailoverConfig) -> Self {
        self.source_failover_config = ::std::option::Option::Some(input);
        self
    }
    /// The settings for source failover.
    pub fn set_source_failover_config(mut self, input: ::std::option::Option<crate::types::UpdateFailoverConfig>) -> Self {
        self.source_failover_config = input;
        self
    }
    /// The settings for source failover.
    pub fn get_source_failover_config(&self) -> &::std::option::Option<crate::types::UpdateFailoverConfig> {
        &self.source_failover_config
    }
    /// Consumes the builder and constructs a [`UpdateBridgeInput`](crate::operation::update_bridge::UpdateBridgeInput).
    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,
        })
    }
}