Struct aws_sdk_s3::types::builders::LifecycleExpirationBuilder
source · #[non_exhaustive]pub struct LifecycleExpirationBuilder { /* private fields */ }
Expand description
A builder for LifecycleExpiration
.
Implementations§
source§impl LifecycleExpirationBuilder
impl LifecycleExpirationBuilder
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. The date value must conform to the ISO 8601 format. The time is always midnight UTC.
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. The date value must conform to the ISO 8601 format. The time is always midnight UTC.
sourcepub 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.
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 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.
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 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.
sourcepub fn build(self) -> LifecycleExpiration
pub fn build(self) -> LifecycleExpiration
Consumes the builder and constructs a LifecycleExpiration
.
Trait Implementations§
source§impl Clone for LifecycleExpirationBuilder
impl Clone for LifecycleExpirationBuilder
source§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 moresource§impl Debug for LifecycleExpirationBuilder
impl Debug for LifecycleExpirationBuilder
source§impl Default for LifecycleExpirationBuilder
impl Default for LifecycleExpirationBuilder
source§fn default() -> LifecycleExpirationBuilder
fn default() -> LifecycleExpirationBuilder
impl StructuralPartialEq for LifecycleExpirationBuilder
Auto Trait Implementations§
impl Freeze for LifecycleExpirationBuilder
impl RefUnwindSafe for LifecycleExpirationBuilder
impl Send for LifecycleExpirationBuilder
impl Sync for LifecycleExpirationBuilder
impl Unpin for LifecycleExpirationBuilder
impl UnwindSafe for LifecycleExpirationBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)