#[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§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