#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct S3 {
#[allow(missing_docs)] pub bucket: ::std::option::Option<::std::string::String>,
#[allow(missing_docs)] pub enabled: ::std::option::Option<bool>,
#[allow(missing_docs)] pub prefix: ::std::option::Option<::std::string::String>,
}
impl S3 {
#[allow(missing_docs)] pub fn bucket(&self) -> ::std::option::Option<&str> {
self.bucket.as_deref()
}
#[allow(missing_docs)] pub fn enabled(&self) -> ::std::option::Option<bool> {
self.enabled
}
#[allow(missing_docs)] pub fn prefix(&self) -> ::std::option::Option<&str> {
self.prefix.as_deref()
}
}
impl S3 {
pub fn builder() -> crate::types::builders::S3Builder {
crate::types::builders::S3Builder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct S3Builder {
pub(crate) bucket: ::std::option::Option<::std::string::String>,
pub(crate) enabled: ::std::option::Option<bool>,
pub(crate) prefix: ::std::option::Option<::std::string::String>,
}
impl S3Builder {
#[allow(missing_docs)] pub fn bucket(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.bucket = ::std::option::Option::Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_bucket(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.bucket = input;
self
}
#[allow(missing_docs)] pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> {
&self.bucket
}
#[allow(missing_docs)] pub fn enabled(mut self, input: bool) -> Self {
self.enabled = ::std::option::Option::Some(input);
self
}
#[allow(missing_docs)] pub fn set_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
self.enabled = input;
self
}
#[allow(missing_docs)] pub fn get_enabled(&self) -> &::std::option::Option<bool> {
&self.enabled
}
#[allow(missing_docs)] pub fn prefix(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.prefix = ::std::option::Option::Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_prefix(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.prefix = input;
self
}
#[allow(missing_docs)] pub fn get_prefix(&self) -> &::std::option::Option<::std::string::String> {
&self.prefix
}
pub fn build(self) -> crate::types::S3 {
crate::types::S3 {
bucket: self.bucket,
enabled: self.enabled,
prefix: self.prefix,
}
}
}