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

/// <p>Session keys for ABP v1.1</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct SessionKeysAbpV11 {
    /// <p>The FNwkSIntKey value.</p>
    pub f_nwk_s_int_key: ::std::option::Option<::std::string::String>,
    /// <p>The SNwkSIntKey value.</p>
    pub s_nwk_s_int_key: ::std::option::Option<::std::string::String>,
    /// <p>The NwkSEncKey value.</p>
    pub nwk_s_enc_key: ::std::option::Option<::std::string::String>,
    /// <p>The AppSKey value.</p>
    pub app_s_key: ::std::option::Option<::std::string::String>,
}
impl SessionKeysAbpV11 {
    /// <p>The FNwkSIntKey value.</p>
    pub fn f_nwk_s_int_key(&self) -> ::std::option::Option<&str> {
        self.f_nwk_s_int_key.as_deref()
    }
    /// <p>The SNwkSIntKey value.</p>
    pub fn s_nwk_s_int_key(&self) -> ::std::option::Option<&str> {
        self.s_nwk_s_int_key.as_deref()
    }
    /// <p>The NwkSEncKey value.</p>
    pub fn nwk_s_enc_key(&self) -> ::std::option::Option<&str> {
        self.nwk_s_enc_key.as_deref()
    }
    /// <p>The AppSKey value.</p>
    pub fn app_s_key(&self) -> ::std::option::Option<&str> {
        self.app_s_key.as_deref()
    }
}
impl SessionKeysAbpV11 {
    /// Creates a new builder-style object to manufacture [`SessionKeysAbpV11`](crate::types::SessionKeysAbpV11).
    pub fn builder() -> crate::types::builders::SessionKeysAbpV11Builder {
        crate::types::builders::SessionKeysAbpV11Builder::default()
    }
}

/// A builder for [`SessionKeysAbpV11`](crate::types::SessionKeysAbpV11).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct SessionKeysAbpV11Builder {
    pub(crate) f_nwk_s_int_key: ::std::option::Option<::std::string::String>,
    pub(crate) s_nwk_s_int_key: ::std::option::Option<::std::string::String>,
    pub(crate) nwk_s_enc_key: ::std::option::Option<::std::string::String>,
    pub(crate) app_s_key: ::std::option::Option<::std::string::String>,
}
impl SessionKeysAbpV11Builder {
    /// <p>The FNwkSIntKey value.</p>
    pub fn f_nwk_s_int_key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.f_nwk_s_int_key = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The FNwkSIntKey value.</p>
    pub fn set_f_nwk_s_int_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.f_nwk_s_int_key = input;
        self
    }
    /// <p>The FNwkSIntKey value.</p>
    pub fn get_f_nwk_s_int_key(&self) -> &::std::option::Option<::std::string::String> {
        &self.f_nwk_s_int_key
    }
    /// <p>The SNwkSIntKey value.</p>
    pub fn s_nwk_s_int_key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.s_nwk_s_int_key = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The SNwkSIntKey value.</p>
    pub fn set_s_nwk_s_int_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.s_nwk_s_int_key = input;
        self
    }
    /// <p>The SNwkSIntKey value.</p>
    pub fn get_s_nwk_s_int_key(&self) -> &::std::option::Option<::std::string::String> {
        &self.s_nwk_s_int_key
    }
    /// <p>The NwkSEncKey value.</p>
    pub fn nwk_s_enc_key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.nwk_s_enc_key = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The NwkSEncKey value.</p>
    pub fn set_nwk_s_enc_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.nwk_s_enc_key = input;
        self
    }
    /// <p>The NwkSEncKey value.</p>
    pub fn get_nwk_s_enc_key(&self) -> &::std::option::Option<::std::string::String> {
        &self.nwk_s_enc_key
    }
    /// <p>The AppSKey value.</p>
    pub fn app_s_key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.app_s_key = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The AppSKey value.</p>
    pub fn set_app_s_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.app_s_key = input;
        self
    }
    /// <p>The AppSKey value.</p>
    pub fn get_app_s_key(&self) -> &::std::option::Option<::std::string::String> {
        &self.app_s_key
    }
    /// Consumes the builder and constructs a [`SessionKeysAbpV11`](crate::types::SessionKeysAbpV11).
    pub fn build(self) -> crate::types::SessionKeysAbpV11 {
        crate::types::SessionKeysAbpV11 {
            f_nwk_s_int_key: self.f_nwk_s_int_key,
            s_nwk_s_int_key: self.s_nwk_s_int_key,
            nwk_s_enc_key: self.nwk_s_enc_key,
            app_s_key: self.app_s_key,
        }
    }
}