#[non_exhaustive]pub struct ApplicationRestoreConfigurationBuilder { /* private fields */ }
Expand description
A builder for ApplicationRestoreConfiguration
.
Implementations§
source§impl ApplicationRestoreConfigurationBuilder
impl ApplicationRestoreConfigurationBuilder
sourcepub fn application_restore_type(self, input: ApplicationRestoreType) -> Self
pub fn application_restore_type(self, input: ApplicationRestoreType) -> Self
Specifies how the application should be restored.
This field is required.sourcepub fn set_application_restore_type(
self,
input: Option<ApplicationRestoreType>,
) -> Self
pub fn set_application_restore_type( self, input: Option<ApplicationRestoreType>, ) -> Self
Specifies how the application should be restored.
sourcepub fn get_application_restore_type(&self) -> &Option<ApplicationRestoreType>
pub fn get_application_restore_type(&self) -> &Option<ApplicationRestoreType>
Specifies how the application should be restored.
sourcepub fn snapshot_name(self, input: impl Into<String>) -> Self
pub fn snapshot_name(self, input: impl Into<String>) -> Self
The identifier of an existing snapshot of application state to use to restart an application. The application uses this value if RESTORE_FROM_CUSTOM_SNAPSHOT
is specified for the ApplicationRestoreType
.
sourcepub fn set_snapshot_name(self, input: Option<String>) -> Self
pub fn set_snapshot_name(self, input: Option<String>) -> Self
The identifier of an existing snapshot of application state to use to restart an application. The application uses this value if RESTORE_FROM_CUSTOM_SNAPSHOT
is specified for the ApplicationRestoreType
.
sourcepub fn get_snapshot_name(&self) -> &Option<String>
pub fn get_snapshot_name(&self) -> &Option<String>
The identifier of an existing snapshot of application state to use to restart an application. The application uses this value if RESTORE_FROM_CUSTOM_SNAPSHOT
is specified for the ApplicationRestoreType
.
sourcepub fn build(self) -> Result<ApplicationRestoreConfiguration, BuildError>
pub fn build(self) -> Result<ApplicationRestoreConfiguration, BuildError>
Consumes the builder and constructs a ApplicationRestoreConfiguration
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ApplicationRestoreConfigurationBuilder
impl Clone for ApplicationRestoreConfigurationBuilder
source§fn clone(&self) -> ApplicationRestoreConfigurationBuilder
fn clone(&self) -> ApplicationRestoreConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ApplicationRestoreConfigurationBuilder
impl Default for ApplicationRestoreConfigurationBuilder
source§fn default() -> ApplicationRestoreConfigurationBuilder
fn default() -> ApplicationRestoreConfigurationBuilder
source§impl PartialEq for ApplicationRestoreConfigurationBuilder
impl PartialEq for ApplicationRestoreConfigurationBuilder
source§fn eq(&self, other: &ApplicationRestoreConfigurationBuilder) -> bool
fn eq(&self, other: &ApplicationRestoreConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ApplicationRestoreConfigurationBuilder
Auto Trait Implementations§
impl Freeze for ApplicationRestoreConfigurationBuilder
impl RefUnwindSafe for ApplicationRestoreConfigurationBuilder
impl Send for ApplicationRestoreConfigurationBuilder
impl Sync for ApplicationRestoreConfigurationBuilder
impl Unpin for ApplicationRestoreConfigurationBuilder
impl UnwindSafe for ApplicationRestoreConfigurationBuilder
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> 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