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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateLagInput {
    /// <p>The ID of the LAG.</p>
    pub lag_id: ::std::option::Option<::std::string::String>,
    /// <p>The name of the LAG.</p>
    pub lag_name: ::std::option::Option<::std::string::String>,
    /// <p>The minimum number of physical connections that must be operational for the LAG itself to be operational.</p>
    pub minimum_links: ::std::option::Option<i32>,
    /// <p>The LAG MAC Security (MACsec) encryption mode.</p>
    /// <p>Amazon Web Services applies the value to all connections which are part of the LAG.</p>
    pub encryption_mode: ::std::option::Option<::std::string::String>,
}
impl UpdateLagInput {
    /// <p>The ID of the LAG.</p>
    pub fn lag_id(&self) -> ::std::option::Option<&str> {
        self.lag_id.as_deref()
    }
    /// <p>The name of the LAG.</p>
    pub fn lag_name(&self) -> ::std::option::Option<&str> {
        self.lag_name.as_deref()
    }
    /// <p>The minimum number of physical connections that must be operational for the LAG itself to be operational.</p>
    pub fn minimum_links(&self) -> ::std::option::Option<i32> {
        self.minimum_links
    }
    /// <p>The LAG MAC Security (MACsec) encryption mode.</p>
    /// <p>Amazon Web Services applies the value to all connections which are part of the LAG.</p>
    pub fn encryption_mode(&self) -> ::std::option::Option<&str> {
        self.encryption_mode.as_deref()
    }
}
impl UpdateLagInput {
    /// Creates a new builder-style object to manufacture [`UpdateLagInput`](crate::operation::update_lag::UpdateLagInput).
    pub fn builder() -> crate::operation::update_lag::builders::UpdateLagInputBuilder {
        crate::operation::update_lag::builders::UpdateLagInputBuilder::default()
    }
}

/// A builder for [`UpdateLagInput`](crate::operation::update_lag::UpdateLagInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct UpdateLagInputBuilder {
    pub(crate) lag_id: ::std::option::Option<::std::string::String>,
    pub(crate) lag_name: ::std::option::Option<::std::string::String>,
    pub(crate) minimum_links: ::std::option::Option<i32>,
    pub(crate) encryption_mode: ::std::option::Option<::std::string::String>,
}
impl UpdateLagInputBuilder {
    /// <p>The ID of the LAG.</p>
    /// This field is required.
    pub fn lag_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.lag_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the LAG.</p>
    pub fn set_lag_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.lag_id = input;
        self
    }
    /// <p>The ID of the LAG.</p>
    pub fn get_lag_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.lag_id
    }
    /// <p>The name of the LAG.</p>
    pub fn lag_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.lag_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the LAG.</p>
    pub fn set_lag_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.lag_name = input;
        self
    }
    /// <p>The name of the LAG.</p>
    pub fn get_lag_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.lag_name
    }
    /// <p>The minimum number of physical connections that must be operational for the LAG itself to be operational.</p>
    pub fn minimum_links(mut self, input: i32) -> Self {
        self.minimum_links = ::std::option::Option::Some(input);
        self
    }
    /// <p>The minimum number of physical connections that must be operational for the LAG itself to be operational.</p>
    pub fn set_minimum_links(mut self, input: ::std::option::Option<i32>) -> Self {
        self.minimum_links = input;
        self
    }
    /// <p>The minimum number of physical connections that must be operational for the LAG itself to be operational.</p>
    pub fn get_minimum_links(&self) -> &::std::option::Option<i32> {
        &self.minimum_links
    }
    /// <p>The LAG MAC Security (MACsec) encryption mode.</p>
    /// <p>Amazon Web Services applies the value to all connections which are part of the LAG.</p>
    pub fn encryption_mode(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.encryption_mode = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The LAG MAC Security (MACsec) encryption mode.</p>
    /// <p>Amazon Web Services applies the value to all connections which are part of the LAG.</p>
    pub fn set_encryption_mode(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.encryption_mode = input;
        self
    }
    /// <p>The LAG MAC Security (MACsec) encryption mode.</p>
    /// <p>Amazon Web Services applies the value to all connections which are part of the LAG.</p>
    pub fn get_encryption_mode(&self) -> &::std::option::Option<::std::string::String> {
        &self.encryption_mode
    }
    /// Consumes the builder and constructs a [`UpdateLagInput`](crate::operation::update_lag::UpdateLagInput).
    pub fn build(self) -> ::std::result::Result<crate::operation::update_lag::UpdateLagInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::update_lag::UpdateLagInput {
            lag_id: self.lag_id,
            lag_name: self.lag_name,
            minimum_links: self.minimum_links,
            encryption_mode: self.encryption_mode,
        })
    }
}