Struct aws_sdk_s3control::model::s3_retention::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for S3Retention.
Implementations§
source§impl Builder
impl Builder
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.