#[non_exhaustive]pub struct InstanceGroupManagerStatusStateful {
pub has_stateful_config: Option<bool>,
pub per_instance_configs: Option<InstanceGroupManagerStatusStatefulPerInstanceConfigs>,
/* 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.has_stateful_config: Option<bool>Output only. [Output Only] A bit indicating whether the managed instance group has stateful configuration, that is, if you have configured any items in a stateful policy or in per-instance configs. The group might report that it has no stateful configuration even when there is still some preserved state on a managed instance, for example, if you have deleted all PICs but not yet applied those deletions.
per_instance_configs: Option<InstanceGroupManagerStatusStatefulPerInstanceConfigs>Output only. [Output Only] Status of per-instance configurations on the instances.
Implementations§
Source§impl InstanceGroupManagerStatusStateful
impl InstanceGroupManagerStatusStateful
pub fn new() -> Self
Sourcepub fn set_has_stateful_config<T>(self, v: T) -> Self
pub fn set_has_stateful_config<T>(self, v: T) -> Self
Sets the value of has_stateful_config.
§Example
ⓘ
let x = InstanceGroupManagerStatusStateful::new().set_has_stateful_config(true);Sourcepub fn set_or_clear_has_stateful_config<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_has_stateful_config<T>(self, v: Option<T>) -> Self
Sets or clears the value of has_stateful_config.
§Example
ⓘ
let x = InstanceGroupManagerStatusStateful::new().set_or_clear_has_stateful_config(Some(false));
let x = InstanceGroupManagerStatusStateful::new().set_or_clear_has_stateful_config(None::<bool>);Sourcepub fn set_per_instance_configs<T>(self, v: T) -> Self
pub fn set_per_instance_configs<T>(self, v: T) -> Self
Sets the value of per_instance_configs.
§Example
ⓘ
use google_cloud_compute_v1::model::InstanceGroupManagerStatusStatefulPerInstanceConfigs;
let x = InstanceGroupManagerStatusStateful::new().set_per_instance_configs(InstanceGroupManagerStatusStatefulPerInstanceConfigs::default()/* use setters */);Sourcepub fn set_or_clear_per_instance_configs<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_per_instance_configs<T>(self, v: Option<T>) -> Self
Sets or clears the value of per_instance_configs.
§Example
ⓘ
use google_cloud_compute_v1::model::InstanceGroupManagerStatusStatefulPerInstanceConfigs;
let x = InstanceGroupManagerStatusStateful::new().set_or_clear_per_instance_configs(Some(InstanceGroupManagerStatusStatefulPerInstanceConfigs::default()/* use setters */));
let x = InstanceGroupManagerStatusStateful::new().set_or_clear_per_instance_configs(None::<InstanceGroupManagerStatusStatefulPerInstanceConfigs>);Trait Implementations§
Source§impl Clone for InstanceGroupManagerStatusStateful
impl Clone for InstanceGroupManagerStatusStateful
Source§fn clone(&self) -> InstanceGroupManagerStatusStateful
fn clone(&self) -> InstanceGroupManagerStatusStateful
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 InstanceGroupManagerStatusStateful
impl Default for InstanceGroupManagerStatusStateful
Source§fn default() -> InstanceGroupManagerStatusStateful
fn default() -> InstanceGroupManagerStatusStateful
Returns the “default value” for a type. Read more
Source§impl PartialEq for InstanceGroupManagerStatusStateful
impl PartialEq for InstanceGroupManagerStatusStateful
Source§fn eq(&self, other: &InstanceGroupManagerStatusStateful) -> bool
fn eq(&self, other: &InstanceGroupManagerStatusStateful) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InstanceGroupManagerStatusStateful
Auto Trait Implementations§
impl Freeze for InstanceGroupManagerStatusStateful
impl RefUnwindSafe for InstanceGroupManagerStatusStateful
impl Send for InstanceGroupManagerStatusStateful
impl Sync for InstanceGroupManagerStatusStateful
impl Unpin for InstanceGroupManagerStatusStateful
impl UnwindSafe for InstanceGroupManagerStatusStateful
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