#[non_exhaustive]pub struct InstanceGroupManagersStopInstancesRequest {
pub force_stop: Option<bool>,
pub instances: Vec<String>,
/* private fields */
}Available on crate feature
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 InstanceGroupManagersStopInstancesRequest
impl InstanceGroupManagersStopInstancesRequest
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 = InstanceGroupManagersStopInstancesRequest::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 = InstanceGroupManagersStopInstancesRequest::new().set_or_clear_force_stop(Some(false));
let x = InstanceGroupManagersStopInstancesRequest::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 InstanceGroupManagersStopInstancesRequest
impl Clone for InstanceGroupManagersStopInstancesRequest
Source§fn clone(&self) -> InstanceGroupManagersStopInstancesRequest
fn clone(&self) -> InstanceGroupManagersStopInstancesRequest
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 InstanceGroupManagersStopInstancesRequest
impl Default for InstanceGroupManagersStopInstancesRequest
Source§fn default() -> InstanceGroupManagersStopInstancesRequest
fn default() -> InstanceGroupManagersStopInstancesRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for InstanceGroupManagersStopInstancesRequest
impl PartialEq for InstanceGroupManagersStopInstancesRequest
Source§fn eq(&self, other: &InstanceGroupManagersStopInstancesRequest) -> bool
fn eq(&self, other: &InstanceGroupManagersStopInstancesRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InstanceGroupManagersStopInstancesRequest
Auto Trait Implementations§
impl Freeze for InstanceGroupManagersStopInstancesRequest
impl RefUnwindSafe for InstanceGroupManagersStopInstancesRequest
impl Send for InstanceGroupManagersStopInstancesRequest
impl Sync for InstanceGroupManagersStopInstancesRequest
impl Unpin for InstanceGroupManagersStopInstancesRequest
impl UnwindSafe for InstanceGroupManagersStopInstancesRequest
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