#[non_exhaustive]pub struct ObjectLockRuleBuilder { /* private fields */ }
Expand description
A builder for ObjectLockRule
.
Implementations§
source§impl ObjectLockRuleBuilder
impl ObjectLockRuleBuilder
sourcepub fn default_retention(self, input: DefaultRetention) -> Self
pub fn default_retention(self, input: DefaultRetention) -> Self
The default Object Lock retention mode and period that you want to apply to new objects placed in the specified bucket. Bucket settings require both a mode and a period. The period can be either Days
or Years
but you must select one. You cannot specify Days
and Years
at the same time.
sourcepub fn set_default_retention(self, input: Option<DefaultRetention>) -> Self
pub fn set_default_retention(self, input: Option<DefaultRetention>) -> Self
The default Object Lock retention mode and period that you want to apply to new objects placed in the specified bucket. Bucket settings require both a mode and a period. The period can be either Days
or Years
but you must select one. You cannot specify Days
and Years
at the same time.
sourcepub fn get_default_retention(&self) -> &Option<DefaultRetention>
pub fn get_default_retention(&self) -> &Option<DefaultRetention>
The default Object Lock retention mode and period that you want to apply to new objects placed in the specified bucket. Bucket settings require both a mode and a period. The period can be either Days
or Years
but you must select one. You cannot specify Days
and Years
at the same time.
sourcepub fn build(self) -> ObjectLockRule
pub fn build(self) -> ObjectLockRule
Consumes the builder and constructs a ObjectLockRule
.
Trait Implementations§
source§impl Clone for ObjectLockRuleBuilder
impl Clone for ObjectLockRuleBuilder
source§fn clone(&self) -> ObjectLockRuleBuilder
fn clone(&self) -> ObjectLockRuleBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ObjectLockRuleBuilder
impl Debug for ObjectLockRuleBuilder
source§impl Default for ObjectLockRuleBuilder
impl Default for ObjectLockRuleBuilder
source§fn default() -> ObjectLockRuleBuilder
fn default() -> ObjectLockRuleBuilder
source§impl PartialEq for ObjectLockRuleBuilder
impl PartialEq for ObjectLockRuleBuilder
impl StructuralPartialEq for ObjectLockRuleBuilder
Auto Trait Implementations§
impl Freeze for ObjectLockRuleBuilder
impl RefUnwindSafe for ObjectLockRuleBuilder
impl Send for ObjectLockRuleBuilder
impl Sync for ObjectLockRuleBuilder
impl Unpin for ObjectLockRuleBuilder
impl UnwindSafe for ObjectLockRuleBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more