Struct aws_sdk_s3::model::lifecycle_expiration::Builder
source · [−]pub struct Builder { /* private fields */ }
Expand description
A builder for LifecycleExpiration
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn date(self, input: DateTime) -> Self
pub fn date(self, input: DateTime) -> Self
Indicates at what date the object is to be moved or deleted. Should be in GMT ISO 8601 Format.
sourcepub fn set_date(self, input: Option<DateTime>) -> Self
pub fn set_date(self, input: Option<DateTime>) -> Self
Indicates at what date the object is to be moved or deleted. Should be in GMT ISO 8601 Format.
sourcepub fn days(self, input: i32) -> Self
pub fn days(self, input: i32) -> Self
Indicates the lifetime, in days, of the objects that are subject to the rule. The value must be a non-zero positive integer.
sourcepub fn set_days(self, input: Option<i32>) -> Self
pub fn set_days(self, input: Option<i32>) -> Self
Indicates the lifetime, in days, of the objects that are subject to the rule. The value must be a non-zero positive integer.
sourcepub fn expired_object_delete_marker(self, input: bool) -> Self
pub fn expired_object_delete_marker(self, input: bool) -> Self
Indicates whether Amazon S3 will remove a delete marker with no noncurrent versions. If set to true, the delete marker will be expired; if set to false the policy takes no action. This cannot be specified with Days or Date in a Lifecycle Expiration Policy.
sourcepub fn set_expired_object_delete_marker(self, input: Option<bool>) -> Self
pub fn set_expired_object_delete_marker(self, input: Option<bool>) -> Self
Indicates whether Amazon S3 will remove a delete marker with no noncurrent versions. If set to true, the delete marker will be expired; if set to false the policy takes no action. This cannot be specified with Days or Date in a Lifecycle Expiration Policy.
sourcepub fn build(self) -> LifecycleExpiration
pub fn build(self) -> LifecycleExpiration
Consumes the builder and constructs a LifecycleExpiration
.