Struct aws_sdk_s3::model::object_lock_retention::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ObjectLockRetention
.
Implementations§
source§impl Builder
impl Builder
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 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 build(self) -> ObjectLockRetention
pub fn build(self) -> ObjectLockRetention
Consumes the builder and constructs a ObjectLockRetention
.