Struct aws_sdk_s3::types::ObjectLockRule
source · #[non_exhaustive]pub struct ObjectLockRule { /* private fields */ }
Expand description
The container element for an Object Lock rule.
Implementations§
source§impl ObjectLockRule
impl ObjectLockRule
sourcepub fn default_retention(&self) -> Option<&DefaultRetention>
pub fn 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.
source§impl ObjectLockRule
impl ObjectLockRule
sourcepub fn builder() -> ObjectLockRuleBuilder
pub fn builder() -> ObjectLockRuleBuilder
Creates a new builder-style object to manufacture ObjectLockRule
.
Trait Implementations§
source§impl Clone for ObjectLockRule
impl Clone for ObjectLockRule
source§fn clone(&self) -> ObjectLockRule
fn clone(&self) -> ObjectLockRule
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ObjectLockRule
impl Debug for ObjectLockRule
source§impl PartialEq<ObjectLockRule> for ObjectLockRule
impl PartialEq<ObjectLockRule> for ObjectLockRule
source§fn eq(&self, other: &ObjectLockRule) -> bool
fn eq(&self, other: &ObjectLockRule) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.