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 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 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<S3RetentionBuilder> for S3RetentionBuilder
impl PartialEq<S3RetentionBuilder> 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 ==
.