#[non_exhaustive]pub struct SchedulingOnInstanceStopAction {
pub discard_local_ssd: Option<bool>,
/* private fields */
}Available on crate features
instance-templates or instances or machine-images or region-instance-templates or region-instances only.Expand description
Defines the behaviour for instances with the instance_termination_actionSTOP.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.discard_local_ssd: Option<bool>If true, the contents of any attached Local SSD disks will be discarded else, the Local SSD data will be preserved when the instance is stopped at the end of the run duration/termination time.
Implementations§
Source§impl SchedulingOnInstanceStopAction
impl SchedulingOnInstanceStopAction
pub fn new() -> Self
Sourcepub fn set_discard_local_ssd<T>(self, v: T) -> Self
pub fn set_discard_local_ssd<T>(self, v: T) -> Self
Sets the value of discard_local_ssd.
§Example
ⓘ
let x = SchedulingOnInstanceStopAction::new().set_discard_local_ssd(true);Sourcepub fn set_or_clear_discard_local_ssd<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_discard_local_ssd<T>(self, v: Option<T>) -> Self
Sets or clears the value of discard_local_ssd.
§Example
ⓘ
let x = SchedulingOnInstanceStopAction::new().set_or_clear_discard_local_ssd(Some(false));
let x = SchedulingOnInstanceStopAction::new().set_or_clear_discard_local_ssd(None::<bool>);Trait Implementations§
Source§impl Clone for SchedulingOnInstanceStopAction
impl Clone for SchedulingOnInstanceStopAction
Source§fn clone(&self) -> SchedulingOnInstanceStopAction
fn clone(&self) -> SchedulingOnInstanceStopAction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for SchedulingOnInstanceStopAction
impl Default for SchedulingOnInstanceStopAction
Source§fn default() -> SchedulingOnInstanceStopAction
fn default() -> SchedulingOnInstanceStopAction
Returns the “default value” for a type. Read more
Source§impl PartialEq for SchedulingOnInstanceStopAction
impl PartialEq for SchedulingOnInstanceStopAction
Source§fn eq(&self, other: &SchedulingOnInstanceStopAction) -> bool
fn eq(&self, other: &SchedulingOnInstanceStopAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SchedulingOnInstanceStopAction
Auto Trait Implementations§
impl Freeze for SchedulingOnInstanceStopAction
impl RefUnwindSafe for SchedulingOnInstanceStopAction
impl Send for SchedulingOnInstanceStopAction
impl Sync for SchedulingOnInstanceStopAction
impl Unpin for SchedulingOnInstanceStopAction
impl UnwindSafe for SchedulingOnInstanceStopAction
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
Mutably borrows from an owned value. Read more