Struct aws_sdk_s3::model::object_lock_configuration::Builder
source · [−]pub struct Builder { /* private fields */ }
Expand description
A builder for ObjectLockConfiguration
.
Implementations
sourceimpl Builder
impl Builder
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 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 build(self) -> ObjectLockConfiguration
pub fn build(self) -> ObjectLockConfiguration
Consumes the builder and constructs a ObjectLockConfiguration
.