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 get_mode(&self) -> &Option<ObjectLockRetentionMode>
pub fn get_mode(&self) -> &Option<ObjectLockRetentionMode>
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 get_retain_until_date(&self) -> &Option<DateTime>
pub fn get_retain_until_date(&self) -> &Option<DateTime>
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 for ObjectLockRetentionBuilder
impl PartialEq 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 ==
.impl StructuralPartialEq for ObjectLockRetentionBuilder
Auto Trait Implementations§
impl RefUnwindSafe for ObjectLockRetentionBuilder
impl Send for ObjectLockRetentionBuilder
impl Sync for ObjectLockRetentionBuilder
impl Unpin for ObjectLockRetentionBuilder
impl UnwindSafe for ObjectLockRetentionBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.