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

/// <p>Describes the BGP options.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct BgpOptions {
    /// <p>The Peer ASN of the BGP.</p>
    pub peer_asn: ::std::option::Option<i64>,
}
impl BgpOptions {
    /// <p>The Peer ASN of the BGP.</p>
    pub fn peer_asn(&self) -> ::std::option::Option<i64> {
        self.peer_asn
    }
}
impl BgpOptions {
    /// Creates a new builder-style object to manufacture [`BgpOptions`](crate::types::BgpOptions).
    pub fn builder() -> crate::types::builders::BgpOptionsBuilder {
        crate::types::builders::BgpOptionsBuilder::default()
    }
}

/// A builder for [`BgpOptions`](crate::types::BgpOptions).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct BgpOptionsBuilder {
    pub(crate) peer_asn: ::std::option::Option<i64>,
}
impl BgpOptionsBuilder {
    /// <p>The Peer ASN of the BGP.</p>
    pub fn peer_asn(mut self, input: i64) -> Self {
        self.peer_asn = ::std::option::Option::Some(input);
        self
    }
    /// <p>The Peer ASN of the BGP.</p>
    pub fn set_peer_asn(mut self, input: ::std::option::Option<i64>) -> Self {
        self.peer_asn = input;
        self
    }
    /// <p>The Peer ASN of the BGP.</p>
    pub fn get_peer_asn(&self) -> &::std::option::Option<i64> {
        &self.peer_asn
    }
    /// Consumes the builder and constructs a [`BgpOptions`](crate::types::BgpOptions).
    pub fn build(self) -> crate::types::BgpOptions {
        crate::types::BgpOptions { peer_asn: self.peer_asn }
    }
}