#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Bandwidth {
pub upload_speed: ::std::option::Option<i32>,
pub download_speed: ::std::option::Option<i32>,
}
impl Bandwidth {
pub fn upload_speed(&self) -> ::std::option::Option<i32> {
self.upload_speed
}
pub fn download_speed(&self) -> ::std::option::Option<i32> {
self.download_speed
}
}
impl Bandwidth {
pub fn builder() -> crate::types::builders::BandwidthBuilder {
crate::types::builders::BandwidthBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct BandwidthBuilder {
pub(crate) upload_speed: ::std::option::Option<i32>,
pub(crate) download_speed: ::std::option::Option<i32>,
}
impl BandwidthBuilder {
pub fn upload_speed(mut self, input: i32) -> Self {
self.upload_speed = ::std::option::Option::Some(input);
self
}
pub fn set_upload_speed(mut self, input: ::std::option::Option<i32>) -> Self {
self.upload_speed = input;
self
}
pub fn get_upload_speed(&self) -> &::std::option::Option<i32> {
&self.upload_speed
}
pub fn download_speed(mut self, input: i32) -> Self {
self.download_speed = ::std::option::Option::Some(input);
self
}
pub fn set_download_speed(mut self, input: ::std::option::Option<i32>) -> Self {
self.download_speed = input;
self
}
pub fn get_download_speed(&self) -> &::std::option::Option<i32> {
&self.download_speed
}
pub fn build(self) -> crate::types::Bandwidth {
crate::types::Bandwidth {
upload_speed: self.upload_speed,
download_speed: self.download_speed,
}
}
}