#[non_exhaustive]pub struct RegionInstanceGroupManagersStopInstancesRequest {
pub force_stop: Option<bool>,
pub instances: Vec<String>,
/* private fields */
}Available on crate feature
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.force_stop: Option<bool>If this flag is set to true, the Instance Group Manager will proceed to stop the instances, skipping initialization on them.
instances: Vec<String>The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
Implementations§
Source§impl RegionInstanceGroupManagersStopInstancesRequest
impl RegionInstanceGroupManagersStopInstancesRequest
pub fn new() -> Self
Sourcepub fn set_force_stop<T>(self, v: T) -> Self
pub fn set_force_stop<T>(self, v: T) -> Self
Sets the value of force_stop.
§Example
ⓘ
let x = RegionInstanceGroupManagersStopInstancesRequest::new().set_force_stop(true);Sourcepub fn set_or_clear_force_stop<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_force_stop<T>(self, v: Option<T>) -> Self
Sets or clears the value of force_stop.
§Example
ⓘ
let x = RegionInstanceGroupManagersStopInstancesRequest::new().set_or_clear_force_stop(Some(false));
let x = RegionInstanceGroupManagersStopInstancesRequest::new().set_or_clear_force_stop(None::<bool>);Sourcepub fn set_instances<T, V>(self, v: T) -> Self
pub fn set_instances<T, V>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for RegionInstanceGroupManagersStopInstancesRequest
impl Clone for RegionInstanceGroupManagersStopInstancesRequest
Source§fn clone(&self) -> RegionInstanceGroupManagersStopInstancesRequest
fn clone(&self) -> RegionInstanceGroupManagersStopInstancesRequest
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 RegionInstanceGroupManagersStopInstancesRequest
impl Default for RegionInstanceGroupManagersStopInstancesRequest
Source§fn default() -> RegionInstanceGroupManagersStopInstancesRequest
fn default() -> RegionInstanceGroupManagersStopInstancesRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for RegionInstanceGroupManagersStopInstancesRequest
impl PartialEq for RegionInstanceGroupManagersStopInstancesRequest
Source§fn eq(&self, other: &RegionInstanceGroupManagersStopInstancesRequest) -> bool
fn eq(&self, other: &RegionInstanceGroupManagersStopInstancesRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RegionInstanceGroupManagersStopInstancesRequest
Auto Trait Implementations§
impl Freeze for RegionInstanceGroupManagersStopInstancesRequest
impl RefUnwindSafe for RegionInstanceGroupManagersStopInstancesRequest
impl Send for RegionInstanceGroupManagersStopInstancesRequest
impl Sync for RegionInstanceGroupManagersStopInstancesRequest
impl Unpin for RegionInstanceGroupManagersStopInstancesRequest
impl UnwindSafe for RegionInstanceGroupManagersStopInstancesRequest
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