#[non_exhaustive]pub struct RestoreStatusBuilder { /* private fields */ }
Expand description
A builder for RestoreStatus
.
Implementations§
source§impl RestoreStatusBuilder
impl RestoreStatusBuilder
sourcepub fn is_restore_in_progress(self, input: bool) -> Self
pub fn is_restore_in_progress(self, input: bool) -> Self
Specifies whether the object is currently being restored. If the object restoration is in progress, the header returns the value TRUE
. For example:
x-amz-optional-object-attributes: IsRestoreInProgress="true"
If the object restoration has completed, the header returns the value FALSE
. For example:
x-amz-optional-object-attributes: IsRestoreInProgress="false", RestoreExpiryDate="2012-12-21T00:00:00.000Z"
If the object hasn't been restored, there is no header response.
sourcepub fn set_is_restore_in_progress(self, input: Option<bool>) -> Self
pub fn set_is_restore_in_progress(self, input: Option<bool>) -> Self
Specifies whether the object is currently being restored. If the object restoration is in progress, the header returns the value TRUE
. For example:
x-amz-optional-object-attributes: IsRestoreInProgress="true"
If the object restoration has completed, the header returns the value FALSE
. For example:
x-amz-optional-object-attributes: IsRestoreInProgress="false", RestoreExpiryDate="2012-12-21T00:00:00.000Z"
If the object hasn't been restored, there is no header response.
sourcepub fn get_is_restore_in_progress(&self) -> &Option<bool>
pub fn get_is_restore_in_progress(&self) -> &Option<bool>
Specifies whether the object is currently being restored. If the object restoration is in progress, the header returns the value TRUE
. For example:
x-amz-optional-object-attributes: IsRestoreInProgress="true"
If the object restoration has completed, the header returns the value FALSE
. For example:
x-amz-optional-object-attributes: IsRestoreInProgress="false", RestoreExpiryDate="2012-12-21T00:00:00.000Z"
If the object hasn't been restored, there is no header response.
sourcepub fn restore_expiry_date(self, input: DateTime) -> Self
pub fn restore_expiry_date(self, input: DateTime) -> Self
Indicates when the restored copy will expire. This value is populated only if the object has already been restored. For example:
x-amz-optional-object-attributes: IsRestoreInProgress="false", RestoreExpiryDate="2012-12-21T00:00:00.000Z"
sourcepub fn set_restore_expiry_date(self, input: Option<DateTime>) -> Self
pub fn set_restore_expiry_date(self, input: Option<DateTime>) -> Self
Indicates when the restored copy will expire. This value is populated only if the object has already been restored. For example:
x-amz-optional-object-attributes: IsRestoreInProgress="false", RestoreExpiryDate="2012-12-21T00:00:00.000Z"
sourcepub fn get_restore_expiry_date(&self) -> &Option<DateTime>
pub fn get_restore_expiry_date(&self) -> &Option<DateTime>
Indicates when the restored copy will expire. This value is populated only if the object has already been restored. For example:
x-amz-optional-object-attributes: IsRestoreInProgress="false", RestoreExpiryDate="2012-12-21T00:00:00.000Z"
sourcepub fn build(self) -> RestoreStatus
pub fn build(self) -> RestoreStatus
Consumes the builder and constructs a RestoreStatus
.
Trait Implementations§
source§impl Clone for RestoreStatusBuilder
impl Clone for RestoreStatusBuilder
source§fn clone(&self) -> RestoreStatusBuilder
fn clone(&self) -> RestoreStatusBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RestoreStatusBuilder
impl Debug for RestoreStatusBuilder
source§impl Default for RestoreStatusBuilder
impl Default for RestoreStatusBuilder
source§fn default() -> RestoreStatusBuilder
fn default() -> RestoreStatusBuilder
source§impl PartialEq for RestoreStatusBuilder
impl PartialEq for RestoreStatusBuilder
impl StructuralPartialEq for RestoreStatusBuilder
Auto Trait Implementations§
impl Freeze for RestoreStatusBuilder
impl RefUnwindSafe for RestoreStatusBuilder
impl Send for RestoreStatusBuilder
impl Sync for RestoreStatusBuilder
impl Unpin for RestoreStatusBuilder
impl UnwindSafe for RestoreStatusBuilder
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