Struct aws_sdk_s3control::types::builders::S3RetentionBuilder
source · #[non_exhaustive]pub struct S3RetentionBuilder { /* private fields */ }
Expand description
A builder for S3Retention
.
Implementations§
source§impl S3RetentionBuilder
impl S3RetentionBuilder
sourcepub fn retain_until_date(self, input: DateTime) -> Self
pub fn retain_until_date(self, input: DateTime) -> Self
The date when the applied Object Lock retention will expire on all objects set by the Batch Operations job.
sourcepub fn set_retain_until_date(self, input: Option<DateTime>) -> Self
pub fn set_retain_until_date(self, input: Option<DateTime>) -> Self
The date when the applied Object Lock retention will expire on all objects set by the Batch Operations job.
sourcepub fn get_retain_until_date(&self) -> &Option<DateTime>
pub fn get_retain_until_date(&self) -> &Option<DateTime>
The date when the applied Object Lock retention will expire on all objects set by the Batch Operations job.
sourcepub fn mode(self, input: S3ObjectLockRetentionMode) -> Self
pub fn mode(self, input: S3ObjectLockRetentionMode) -> Self
The Object Lock retention mode to be applied to all objects in the Batch Operations job.
sourcepub fn set_mode(self, input: Option<S3ObjectLockRetentionMode>) -> Self
pub fn set_mode(self, input: Option<S3ObjectLockRetentionMode>) -> Self
The Object Lock retention mode to be applied to all objects in the Batch Operations job.
sourcepub fn get_mode(&self) -> &Option<S3ObjectLockRetentionMode>
pub fn get_mode(&self) -> &Option<S3ObjectLockRetentionMode>
The Object Lock retention mode to be applied to all objects in the Batch Operations job.
sourcepub fn build(self) -> S3Retention
pub fn build(self) -> S3Retention
Consumes the builder and constructs a S3Retention
.
Trait Implementations§
source§impl Clone for S3RetentionBuilder
impl Clone for S3RetentionBuilder
source§fn clone(&self) -> S3RetentionBuilder
fn clone(&self) -> S3RetentionBuilder
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 S3RetentionBuilder
impl Debug for S3RetentionBuilder
source§impl Default for S3RetentionBuilder
impl Default for S3RetentionBuilder
source§fn default() -> S3RetentionBuilder
fn default() -> S3RetentionBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for S3RetentionBuilder
impl PartialEq for S3RetentionBuilder
source§fn eq(&self, other: &S3RetentionBuilder) -> bool
fn eq(&self, other: &S3RetentionBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for S3RetentionBuilder
Auto Trait Implementations§
impl Freeze for S3RetentionBuilder
impl RefUnwindSafe for S3RetentionBuilder
impl Send for S3RetentionBuilder
impl Sync for S3RetentionBuilder
impl Unpin for S3RetentionBuilder
impl UnwindSafe for S3RetentionBuilder
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>
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.