#[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 settings for new objects in this bucket. You can specify:
-
A default retention period, by using
DaysorYears. -
A default event hold duration, by using
DefaultEventHold. This setting also uses days or years.
You can set one or both. You cannot use days and years in the same setting.
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 settings for new objects in this bucket. You can specify:
-
A default retention period, by using
DaysorYears. -
A default event hold duration, by using
DefaultEventHold. This setting also uses days or years.
You can set one or both. You cannot use days and years in the same setting.
Sourcepub fn get_default_retention(&self) -> &Option<DefaultRetention>
pub fn get_default_retention(&self) -> &Option<DefaultRetention>
The default Object Lock retention settings for new objects in this bucket. You can specify:
-
A default retention period, by using
DaysorYears. -
A default event hold duration, by using
DefaultEventHold. This setting also uses days or years.
You can set one or both. You cannot use days and years in the same setting.
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 (const: unstable) · 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 UnsafeUnpin 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