#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ImagePermissions {
pub allow_fleet: ::std::option::Option<bool>,
pub allow_image_builder: ::std::option::Option<bool>,
}
impl ImagePermissions {
pub fn allow_fleet(&self) -> ::std::option::Option<bool> {
self.allow_fleet
}
pub fn allow_image_builder(&self) -> ::std::option::Option<bool> {
self.allow_image_builder
}
}
impl ImagePermissions {
pub fn builder() -> crate::types::builders::ImagePermissionsBuilder {
crate::types::builders::ImagePermissionsBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct ImagePermissionsBuilder {
pub(crate) allow_fleet: ::std::option::Option<bool>,
pub(crate) allow_image_builder: ::std::option::Option<bool>,
}
impl ImagePermissionsBuilder {
pub fn allow_fleet(mut self, input: bool) -> Self {
self.allow_fleet = ::std::option::Option::Some(input);
self
}
pub fn set_allow_fleet(mut self, input: ::std::option::Option<bool>) -> Self {
self.allow_fleet = input;
self
}
pub fn get_allow_fleet(&self) -> &::std::option::Option<bool> {
&self.allow_fleet
}
pub fn allow_image_builder(mut self, input: bool) -> Self {
self.allow_image_builder = ::std::option::Option::Some(input);
self
}
pub fn set_allow_image_builder(mut self, input: ::std::option::Option<bool>) -> Self {
self.allow_image_builder = input;
self
}
pub fn get_allow_image_builder(&self) -> &::std::option::Option<bool> {
&self.allow_image_builder
}
pub fn build(self) -> crate::types::ImagePermissions {
crate::types::ImagePermissions {
allow_fleet: self.allow_fleet,
allow_image_builder: self.allow_image_builder,
}
}
}