#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct SessionKeysAbpV11 {
pub f_nwk_s_int_key: ::std::option::Option<::std::string::String>,
pub s_nwk_s_int_key: ::std::option::Option<::std::string::String>,
pub nwk_s_enc_key: ::std::option::Option<::std::string::String>,
pub app_s_key: ::std::option::Option<::std::string::String>,
}
impl SessionKeysAbpV11 {
pub fn f_nwk_s_int_key(&self) -> ::std::option::Option<&str> {
self.f_nwk_s_int_key.as_deref()
}
pub fn s_nwk_s_int_key(&self) -> ::std::option::Option<&str> {
self.s_nwk_s_int_key.as_deref()
}
pub fn nwk_s_enc_key(&self) -> ::std::option::Option<&str> {
self.nwk_s_enc_key.as_deref()
}
pub fn app_s_key(&self) -> ::std::option::Option<&str> {
self.app_s_key.as_deref()
}
}
impl SessionKeysAbpV11 {
pub fn builder() -> crate::types::builders::SessionKeysAbpV11Builder {
crate::types::builders::SessionKeysAbpV11Builder::default()
}
}
#[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 {
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
}
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
}
pub fn get_f_nwk_s_int_key(&self) -> &::std::option::Option<::std::string::String> {
&self.f_nwk_s_int_key
}
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
}
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
}
pub fn get_s_nwk_s_int_key(&self) -> &::std::option::Option<::std::string::String> {
&self.s_nwk_s_int_key
}
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
}
pub fn set_nwk_s_enc_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.nwk_s_enc_key = input;
self
}
pub fn get_nwk_s_enc_key(&self) -> &::std::option::Option<::std::string::String> {
&self.nwk_s_enc_key
}
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
}
pub fn set_app_s_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.app_s_key = input;
self
}
pub fn get_app_s_key(&self) -> &::std::option::Option<::std::string::String> {
&self.app_s_key
}
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,
}
}
}