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

/// <p>Information about an IPv6 prefix.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InstanceIpv6Prefix {
    /// <p>One or more IPv6 prefixes assigned to the network interface.</p>
    #[doc(hidden)]
    pub ipv6_prefix: std::option::Option<std::string::String>,
}
impl InstanceIpv6Prefix {
    /// <p>One or more IPv6 prefixes assigned to the network interface.</p>
    pub fn ipv6_prefix(&self) -> std::option::Option<&str> {
        self.ipv6_prefix.as_deref()
    }
}
impl InstanceIpv6Prefix {
    /// Creates a new builder-style object to manufacture [`InstanceIpv6Prefix`](crate::types::InstanceIpv6Prefix).
    pub fn builder() -> crate::types::builders::InstanceIpv6PrefixBuilder {
        crate::types::builders::InstanceIpv6PrefixBuilder::default()
    }
}

/// A builder for [`InstanceIpv6Prefix`](crate::types::InstanceIpv6Prefix).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct InstanceIpv6PrefixBuilder {
    pub(crate) ipv6_prefix: std::option::Option<std::string::String>,
}
impl InstanceIpv6PrefixBuilder {
    /// <p>One or more IPv6 prefixes assigned to the network interface.</p>
    pub fn ipv6_prefix(mut self, input: impl Into<std::string::String>) -> Self {
        self.ipv6_prefix = Some(input.into());
        self
    }
    /// <p>One or more IPv6 prefixes assigned to the network interface.</p>
    pub fn set_ipv6_prefix(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.ipv6_prefix = input;
        self
    }
    /// Consumes the builder and constructs a [`InstanceIpv6Prefix`](crate::types::InstanceIpv6Prefix).
    pub fn build(self) -> crate::types::InstanceIpv6Prefix {
        crate::types::InstanceIpv6Prefix {
            ipv6_prefix: self.ipv6_prefix,
        }
    }
}