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
source§fn eq(&self, other: &ObjectLockRuleBuilder) -> bool
fn eq(&self, other: &ObjectLockRuleBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.