#[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
InstanceInterruptionBehaviorto 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
InstanceInterruptionBehaviorto 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
InstanceInterruptionBehaviorto 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 ==.