#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DashEncryption {
pub key_rotation_interval_seconds: ::std::option::Option<i32>,
pub speke_key_provider: ::std::option::Option<crate::types::SpekeKeyProvider>,
}
impl DashEncryption {
pub fn key_rotation_interval_seconds(&self) -> ::std::option::Option<i32> {
self.key_rotation_interval_seconds
}
pub fn speke_key_provider(&self) -> ::std::option::Option<&crate::types::SpekeKeyProvider> {
self.speke_key_provider.as_ref()
}
}
impl DashEncryption {
pub fn builder() -> crate::types::builders::DashEncryptionBuilder {
crate::types::builders::DashEncryptionBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct DashEncryptionBuilder {
pub(crate) key_rotation_interval_seconds: ::std::option::Option<i32>,
pub(crate) speke_key_provider: ::std::option::Option<crate::types::SpekeKeyProvider>,
}
impl DashEncryptionBuilder {
pub fn key_rotation_interval_seconds(mut self, input: i32) -> Self {
self.key_rotation_interval_seconds = ::std::option::Option::Some(input);
self
}
pub fn set_key_rotation_interval_seconds(mut self, input: ::std::option::Option<i32>) -> Self {
self.key_rotation_interval_seconds = input;
self
}
pub fn get_key_rotation_interval_seconds(&self) -> &::std::option::Option<i32> {
&self.key_rotation_interval_seconds
}
pub fn speke_key_provider(mut self, input: crate::types::SpekeKeyProvider) -> Self {
self.speke_key_provider = ::std::option::Option::Some(input);
self
}
pub fn set_speke_key_provider(mut self, input: ::std::option::Option<crate::types::SpekeKeyProvider>) -> Self {
self.speke_key_provider = input;
self
}
pub fn get_speke_key_provider(&self) -> &::std::option::Option<crate::types::SpekeKeyProvider> {
&self.speke_key_provider
}
pub fn build(self) -> crate::types::DashEncryption {
crate::types::DashEncryption {
key_rotation_interval_seconds: self.key_rotation_interval_seconds,
speke_key_provider: self.speke_key_provider,
}
}
}