#[non_exhaustive]pub struct TransitionBuilder { /* private fields */ }
Expand description
A builder for Transition
.
Implementations§
source§impl TransitionBuilder
impl TransitionBuilder
sourcepub fn date(self, input: DateTime) -> Self
pub fn date(self, input: DateTime) -> Self
Indicates when objects are transitioned to the specified storage class. The date value must be in 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 when objects are transitioned to the specified storage class. The date value must be in ISO 8601 format. The time is always midnight UTC.
sourcepub fn get_date(&self) -> &Option<DateTime>
pub fn get_date(&self) -> &Option<DateTime>
Indicates when objects are transitioned to the specified storage class. The date value must be in 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 number of days after creation when objects are transitioned to the specified storage class. The value must be a positive integer.
sourcepub fn set_days(self, input: Option<i32>) -> Self
pub fn set_days(self, input: Option<i32>) -> Self
Indicates the number of days after creation when objects are transitioned to the specified storage class. The value must be a positive integer.
sourcepub fn get_days(&self) -> &Option<i32>
pub fn get_days(&self) -> &Option<i32>
Indicates the number of days after creation when objects are transitioned to the specified storage class. The value must be a positive integer.
sourcepub fn storage_class(self, input: TransitionStorageClass) -> Self
pub fn storage_class(self, input: TransitionStorageClass) -> Self
The storage class to which you want the object to transition.
sourcepub fn set_storage_class(self, input: Option<TransitionStorageClass>) -> Self
pub fn set_storage_class(self, input: Option<TransitionStorageClass>) -> Self
The storage class to which you want the object to transition.
sourcepub fn get_storage_class(&self) -> &Option<TransitionStorageClass>
pub fn get_storage_class(&self) -> &Option<TransitionStorageClass>
The storage class to which you want the object to transition.
sourcepub fn build(self) -> Transition
pub fn build(self) -> Transition
Consumes the builder and constructs a Transition
.
Trait Implementations§
source§impl Clone for TransitionBuilder
impl Clone for TransitionBuilder
source§fn clone(&self) -> TransitionBuilder
fn clone(&self) -> TransitionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TransitionBuilder
impl Debug for TransitionBuilder
source§impl Default for TransitionBuilder
impl Default for TransitionBuilder
source§fn default() -> TransitionBuilder
fn default() -> TransitionBuilder
source§impl PartialEq for TransitionBuilder
impl PartialEq for TransitionBuilder
impl StructuralPartialEq for TransitionBuilder
Auto Trait Implementations§
impl Freeze for TransitionBuilder
impl RefUnwindSafe for TransitionBuilder
impl Send for TransitionBuilder
impl Sync for TransitionBuilder
impl Unpin for TransitionBuilder
impl UnwindSafe for TransitionBuilder
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more