Struct aws_sdk_s3::types::builders::ObjectLockConfigurationBuilder
source · #[non_exhaustive]pub struct ObjectLockConfigurationBuilder { /* private fields */ }
Expand description
A builder for ObjectLockConfiguration
.
Implementations§
source§impl ObjectLockConfigurationBuilder
impl ObjectLockConfigurationBuilder
sourcepub fn object_lock_enabled(self, input: ObjectLockEnabled) -> Self
pub fn object_lock_enabled(self, input: ObjectLockEnabled) -> Self
Indicates whether this bucket has an Object Lock configuration enabled. Enable ObjectLockEnabled
when you apply ObjectLockConfiguration
to a bucket.
sourcepub fn set_object_lock_enabled(self, input: Option<ObjectLockEnabled>) -> Self
pub fn set_object_lock_enabled(self, input: Option<ObjectLockEnabled>) -> Self
Indicates whether this bucket has an Object Lock configuration enabled. Enable ObjectLockEnabled
when you apply ObjectLockConfiguration
to a bucket.
sourcepub fn get_object_lock_enabled(&self) -> &Option<ObjectLockEnabled>
pub fn get_object_lock_enabled(&self) -> &Option<ObjectLockEnabled>
Indicates whether this bucket has an Object Lock configuration enabled. Enable ObjectLockEnabled
when you apply ObjectLockConfiguration
to a bucket.
sourcepub fn rule(self, input: ObjectLockRule) -> Self
pub fn rule(self, input: ObjectLockRule) -> Self
Specifies the Object Lock rule for the specified object. Enable the this rule when you apply ObjectLockConfiguration
to a 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_rule(self, input: Option<ObjectLockRule>) -> Self
pub fn set_rule(self, input: Option<ObjectLockRule>) -> Self
Specifies the Object Lock rule for the specified object. Enable the this rule when you apply ObjectLockConfiguration
to a 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_rule(&self) -> &Option<ObjectLockRule>
pub fn get_rule(&self) -> &Option<ObjectLockRule>
Specifies the Object Lock rule for the specified object. Enable the this rule when you apply ObjectLockConfiguration
to a 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) -> ObjectLockConfiguration
pub fn build(self) -> ObjectLockConfiguration
Consumes the builder and constructs a ObjectLockConfiguration
.
Trait Implementations§
source§impl Clone for ObjectLockConfigurationBuilder
impl Clone for ObjectLockConfigurationBuilder
source§fn clone(&self) -> ObjectLockConfigurationBuilder
fn clone(&self) -> ObjectLockConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ObjectLockConfigurationBuilder
impl Default for ObjectLockConfigurationBuilder
source§fn default() -> ObjectLockConfigurationBuilder
fn default() -> ObjectLockConfigurationBuilder
source§impl PartialEq for ObjectLockConfigurationBuilder
impl PartialEq for ObjectLockConfigurationBuilder
source§fn eq(&self, other: &ObjectLockConfigurationBuilder) -> bool
fn eq(&self, other: &ObjectLockConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.