#[non_exhaustive]pub struct InstanceGroupManagerStandbyPolicy {
pub initial_delay_sec: Option<i32>,
pub mode: Option<Mode>,
/* private fields */
}Available on crate features
instance-group-managers or region-instance-group-managers only.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.initial_delay_sec: Option<i32>Specifies the number of seconds that the MIG should wait to suspend or stop a VM after that VM was created. The initial delay gives the initialization script the time to prepare your VM for a quick scale out. The value of initial delay must be between 0 and 3600 seconds. The default value is 0.
mode: Option<Mode>Defines how a MIG resumes or starts VMs from a standby pool when the
group scales out. The default mode is MANUAL.
Implementations§
Source§impl InstanceGroupManagerStandbyPolicy
impl InstanceGroupManagerStandbyPolicy
pub fn new() -> Self
Sourcepub fn set_initial_delay_sec<T>(self, v: T) -> Self
pub fn set_initial_delay_sec<T>(self, v: T) -> Self
Sets the value of initial_delay_sec.
§Example
ⓘ
let x = InstanceGroupManagerStandbyPolicy::new().set_initial_delay_sec(42);Sourcepub fn set_or_clear_initial_delay_sec<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_initial_delay_sec<T>(self, v: Option<T>) -> Self
Sets or clears the value of initial_delay_sec.
§Example
ⓘ
let x = InstanceGroupManagerStandbyPolicy::new().set_or_clear_initial_delay_sec(Some(42));
let x = InstanceGroupManagerStandbyPolicy::new().set_or_clear_initial_delay_sec(None::<i32>);Sourcepub fn set_or_clear_mode<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_mode<T>(self, v: Option<T>) -> Self
Sets or clears the value of mode.
§Example
ⓘ
use google_cloud_compute_v1::model::instance_group_manager_standby_policy::Mode;
let x0 = InstanceGroupManagerStandbyPolicy::new().set_or_clear_mode(Some(Mode::ScaleOutPool));
let x_none = InstanceGroupManagerStandbyPolicy::new().set_or_clear_mode(None::<Mode>);Trait Implementations§
Source§impl Clone for InstanceGroupManagerStandbyPolicy
impl Clone for InstanceGroupManagerStandbyPolicy
Source§fn clone(&self) -> InstanceGroupManagerStandbyPolicy
fn clone(&self) -> InstanceGroupManagerStandbyPolicy
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 InstanceGroupManagerStandbyPolicy
impl Default for InstanceGroupManagerStandbyPolicy
Source§fn default() -> InstanceGroupManagerStandbyPolicy
fn default() -> InstanceGroupManagerStandbyPolicy
Returns the “default value” for a type. Read more
Source§impl PartialEq for InstanceGroupManagerStandbyPolicy
impl PartialEq for InstanceGroupManagerStandbyPolicy
Source§fn eq(&self, other: &InstanceGroupManagerStandbyPolicy) -> bool
fn eq(&self, other: &InstanceGroupManagerStandbyPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InstanceGroupManagerStandbyPolicy
Auto Trait Implementations§
impl Freeze for InstanceGroupManagerStandbyPolicy
impl RefUnwindSafe for InstanceGroupManagerStandbyPolicy
impl Send for InstanceGroupManagerStandbyPolicy
impl Sync for InstanceGroupManagerStandbyPolicy
impl Unpin for InstanceGroupManagerStandbyPolicy
impl UnwindSafe for InstanceGroupManagerStandbyPolicy
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