#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct NetworkAclPortRange {
pub from: ::std::option::Option<i32>,
pub to: ::std::option::Option<i32>,
}
impl NetworkAclPortRange {
pub fn from(&self) -> ::std::option::Option<i32> {
self.from
}
pub fn to(&self) -> ::std::option::Option<i32> {
self.to
}
}
impl NetworkAclPortRange {
pub fn builder() -> crate::types::builders::NetworkAclPortRangeBuilder {
crate::types::builders::NetworkAclPortRangeBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct NetworkAclPortRangeBuilder {
pub(crate) from: ::std::option::Option<i32>,
pub(crate) to: ::std::option::Option<i32>,
}
impl NetworkAclPortRangeBuilder {
pub fn from(mut self, input: i32) -> Self {
self.from = ::std::option::Option::Some(input);
self
}
pub fn set_from(mut self, input: ::std::option::Option<i32>) -> Self {
self.from = input;
self
}
pub fn get_from(&self) -> &::std::option::Option<i32> {
&self.from
}
pub fn to(mut self, input: i32) -> Self {
self.to = ::std::option::Option::Some(input);
self
}
pub fn set_to(mut self, input: ::std::option::Option<i32>) -> Self {
self.to = input;
self
}
pub fn get_to(&self) -> &::std::option::Option<i32> {
&self.to
}
pub fn build(self) -> crate::types::NetworkAclPortRange {
crate::types::NetworkAclPortRange {
from: self.from,
to: self.to,
}
}
}