Struct aws_sdk_s3::types::builders::ObjectLockRetentionBuilder
source · #[non_exhaustive]pub struct ObjectLockRetentionBuilder { /* private fields */ }
Expand description
A builder for ObjectLockRetention
.
Implementations§
source§impl ObjectLockRetentionBuilder
impl ObjectLockRetentionBuilder
sourcepub fn mode(self, input: ObjectLockRetentionMode) -> Self
pub fn mode(self, input: ObjectLockRetentionMode) -> Self
Indicates the Retention mode for the specified object.
sourcepub fn set_mode(self, input: Option<ObjectLockRetentionMode>) -> Self
pub fn set_mode(self, input: Option<ObjectLockRetentionMode>) -> Self
Indicates the Retention mode for the specified object.
sourcepub fn retain_until_date(self, input: DateTime) -> Self
pub fn retain_until_date(self, input: DateTime) -> Self
The date on which this Object Lock Retention will expire.
sourcepub fn set_retain_until_date(self, input: Option<DateTime>) -> Self
pub fn set_retain_until_date(self, input: Option<DateTime>) -> Self
The date on which this Object Lock Retention will expire.
sourcepub fn build(self) -> ObjectLockRetention
pub fn build(self) -> ObjectLockRetention
Consumes the builder and constructs a ObjectLockRetention
.
Trait Implementations§
source§impl Clone for ObjectLockRetentionBuilder
impl Clone for ObjectLockRetentionBuilder
source§fn clone(&self) -> ObjectLockRetentionBuilder
fn clone(&self) -> ObjectLockRetentionBuilder
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 ObjectLockRetentionBuilder
impl Debug for ObjectLockRetentionBuilder
source§impl Default for ObjectLockRetentionBuilder
impl Default for ObjectLockRetentionBuilder
source§fn default() -> ObjectLockRetentionBuilder
fn default() -> ObjectLockRetentionBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<ObjectLockRetentionBuilder> for ObjectLockRetentionBuilder
impl PartialEq<ObjectLockRetentionBuilder> for ObjectLockRetentionBuilder
source§fn eq(&self, other: &ObjectLockRetentionBuilder) -> bool
fn eq(&self, other: &ObjectLockRetentionBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.