Struct aws_sdk_s3::types::builders::ObjectLockRuleBuilder
source · #[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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)