#[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
impl StructuralPartialEq for ObjectLockRetentionBuilder
Auto Trait Implementations§
impl Freeze for ObjectLockRetentionBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.