Struct bonsaidb::keystorage::s3::aws_sdk_s3::types::builders::LifecycleExpirationBuilder
pub struct LifecycleExpirationBuilder { /* private fields */ }
Expand description
A builder for LifecycleExpiration
.
Implementations§
§impl LifecycleExpirationBuilder
impl LifecycleExpirationBuilder
pub fn date(self, input: DateTime) -> LifecycleExpirationBuilder
pub fn date(self, input: DateTime) -> LifecycleExpirationBuilder
Indicates at what date the object is to be moved or deleted. The date value must conform to the ISO 8601 format. The time is always midnight UTC.
pub fn set_date(self, input: Option<DateTime>) -> LifecycleExpirationBuilder
pub fn set_date(self, input: Option<DateTime>) -> LifecycleExpirationBuilder
Indicates at what date the object is to be moved or deleted. The date value must conform to the ISO 8601 format. The time is always midnight UTC.
pub fn get_date(&self) -> &Option<DateTime>
pub fn get_date(&self) -> &Option<DateTime>
Indicates at what date the object is to be moved or deleted. The date value must conform to the ISO 8601 format. The time is always midnight UTC.
pub fn days(self, input: i32) -> LifecycleExpirationBuilder
pub fn days(self, input: i32) -> LifecycleExpirationBuilder
Indicates the lifetime, in days, of the objects that are subject to the rule. The value must be a non-zero positive integer.
pub fn set_days(self, input: Option<i32>) -> LifecycleExpirationBuilder
pub fn set_days(self, input: Option<i32>) -> LifecycleExpirationBuilder
Indicates the lifetime, in days, of the objects that are subject to the rule. The value must be a non-zero positive integer.
pub fn get_days(&self) -> &Option<i32>
pub fn get_days(&self) -> &Option<i32>
Indicates the lifetime, in days, of the objects that are subject to the rule. The value must be a non-zero positive integer.
pub fn expired_object_delete_marker(
self,
input: bool
) -> LifecycleExpirationBuilder
pub fn expired_object_delete_marker( self, input: bool ) -> LifecycleExpirationBuilder
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.
pub fn set_expired_object_delete_marker(
self,
input: Option<bool>
) -> LifecycleExpirationBuilder
pub fn set_expired_object_delete_marker( self, input: Option<bool> ) -> LifecycleExpirationBuilder
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.
pub fn get_expired_object_delete_marker(&self) -> &Option<bool>
pub fn get_expired_object_delete_marker(&self) -> &Option<bool>
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.
pub fn build(self) -> LifecycleExpiration
pub fn build(self) -> LifecycleExpiration
Consumes the builder and constructs a LifecycleExpiration
.
Trait Implementations§
§impl Clone for LifecycleExpirationBuilder
impl Clone for LifecycleExpirationBuilder
§fn clone(&self) -> LifecycleExpirationBuilder
fn clone(&self) -> LifecycleExpirationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for LifecycleExpirationBuilder
impl Debug for LifecycleExpirationBuilder
§impl Default for LifecycleExpirationBuilder
impl Default for LifecycleExpirationBuilder
§fn default() -> LifecycleExpirationBuilder
fn default() -> LifecycleExpirationBuilder
§impl PartialEq<LifecycleExpirationBuilder> for LifecycleExpirationBuilder
impl PartialEq<LifecycleExpirationBuilder> for LifecycleExpirationBuilder
§fn eq(&self, other: &LifecycleExpirationBuilder) -> bool
fn eq(&self, other: &LifecycleExpirationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.