Struct bonsaidb::keystorage::s3::aws_sdk_s3::types::builders::ObjectLockRetentionBuilder
#[non_exhaustive]pub struct ObjectLockRetentionBuilder { /* private fields */ }
Expand description
A builder for ObjectLockRetention
.
Implementations§
§impl ObjectLockRetentionBuilder
impl ObjectLockRetentionBuilder
pub fn mode(self, input: ObjectLockRetentionMode) -> ObjectLockRetentionBuilder
pub fn mode(self, input: ObjectLockRetentionMode) -> ObjectLockRetentionBuilder
Indicates the Retention mode for the specified object.
pub fn set_mode(
self,
input: Option<ObjectLockRetentionMode>
) -> ObjectLockRetentionBuilder
pub fn set_mode( self, input: Option<ObjectLockRetentionMode> ) -> ObjectLockRetentionBuilder
Indicates the Retention mode for the specified object.
pub fn get_mode(&self) -> &Option<ObjectLockRetentionMode>
pub fn get_mode(&self) -> &Option<ObjectLockRetentionMode>
Indicates the Retention mode for the specified object.
pub fn retain_until_date(self, input: DateTime) -> ObjectLockRetentionBuilder
pub fn retain_until_date(self, input: DateTime) -> ObjectLockRetentionBuilder
The date on which this Object Lock Retention will expire.
pub fn set_retain_until_date(
self,
input: Option<DateTime>
) -> ObjectLockRetentionBuilder
pub fn set_retain_until_date( self, input: Option<DateTime> ) -> ObjectLockRetentionBuilder
The date on which this Object Lock Retention will expire.
pub 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.
pub fn build(self) -> ObjectLockRetention
pub fn build(self) -> ObjectLockRetention
Consumes the builder and constructs a ObjectLockRetention
.
Trait Implementations§
§impl Clone for ObjectLockRetentionBuilder
impl Clone for ObjectLockRetentionBuilder
§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 more§impl Debug for ObjectLockRetentionBuilder
impl Debug for ObjectLockRetentionBuilder
§impl Default for ObjectLockRetentionBuilder
impl Default for ObjectLockRetentionBuilder
§fn default() -> ObjectLockRetentionBuilder
fn default() -> ObjectLockRetentionBuilder
Returns the “default value” for a type. Read more
§impl PartialEq for ObjectLockRetentionBuilder
impl PartialEq for ObjectLockRetentionBuilder
§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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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