#[non_exhaustive]pub struct HibernationOptionsRequestBuilder { /* private fields */ }
Expand description
A builder for HibernationOptionsRequest
.
Implementations§
source§impl HibernationOptionsRequestBuilder
impl HibernationOptionsRequestBuilder
sourcepub fn configured(self, input: bool) -> Self
pub fn configured(self, input: bool) -> Self
Set to true
to enable your instance for hibernation.
For Spot Instances, if you set Configured
to true
, either omit the InstanceInterruptionBehavior
parameter (for SpotMarketOptions
), or set it to hibernate
. When Configured
is true:
-
If you omit
InstanceInterruptionBehavior
, it defaults tohibernate
. -
If you set
InstanceInterruptionBehavior
to a value other thanhibernate
, you'll get an error.
Default: false
sourcepub fn set_configured(self, input: Option<bool>) -> Self
pub fn set_configured(self, input: Option<bool>) -> Self
Set to true
to enable your instance for hibernation.
For Spot Instances, if you set Configured
to true
, either omit the InstanceInterruptionBehavior
parameter (for SpotMarketOptions
), or set it to hibernate
. When Configured
is true:
-
If you omit
InstanceInterruptionBehavior
, it defaults tohibernate
. -
If you set
InstanceInterruptionBehavior
to a value other thanhibernate
, you'll get an error.
Default: false
sourcepub fn get_configured(&self) -> &Option<bool>
pub fn get_configured(&self) -> &Option<bool>
Set to true
to enable your instance for hibernation.
For Spot Instances, if you set Configured
to true
, either omit the InstanceInterruptionBehavior
parameter (for SpotMarketOptions
), or set it to hibernate
. When Configured
is true:
-
If you omit
InstanceInterruptionBehavior
, it defaults tohibernate
. -
If you set
InstanceInterruptionBehavior
to a value other thanhibernate
, you'll get an error.
Default: false
sourcepub fn build(self) -> HibernationOptionsRequest
pub fn build(self) -> HibernationOptionsRequest
Consumes the builder and constructs a HibernationOptionsRequest
.
Trait Implementations§
source§impl Clone for HibernationOptionsRequestBuilder
impl Clone for HibernationOptionsRequestBuilder
source§fn clone(&self) -> HibernationOptionsRequestBuilder
fn clone(&self) -> HibernationOptionsRequestBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for HibernationOptionsRequestBuilder
impl Default for HibernationOptionsRequestBuilder
source§fn default() -> HibernationOptionsRequestBuilder
fn default() -> HibernationOptionsRequestBuilder
source§impl PartialEq for HibernationOptionsRequestBuilder
impl PartialEq for HibernationOptionsRequestBuilder
source§fn eq(&self, other: &HibernationOptionsRequestBuilder) -> bool
fn eq(&self, other: &HibernationOptionsRequestBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for HibernationOptionsRequestBuilder
Auto Trait Implementations§
impl Freeze for HibernationOptionsRequestBuilder
impl RefUnwindSafe for HibernationOptionsRequestBuilder
impl Send for HibernationOptionsRequestBuilder
impl Sync for HibernationOptionsRequestBuilder
impl Unpin for HibernationOptionsRequestBuilder
impl UnwindSafe for HibernationOptionsRequestBuilder
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
)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