#[non_exhaustive]pub struct InstanceGroupManagersSetTargetPoolsRequest {
pub fingerprint: Option<Bytes>,
pub target_pools: 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.fingerprint: Option<Bytes>The fingerprint of the target pools information. Use this optional property to prevent conflicts when multiple users change the target pools settings concurrently. Obtain the fingerprint with theinstanceGroupManagers.get method. Then, include the fingerprint in your request to ensure that you do not overwrite changes that were applied from another concurrent request.
target_pools: Vec<String>The list of target pool URLs that instances in this managed instance group belong to. The managed instance group applies these target pools to all of the instances in the group. Existing instances and new instances in the group all receive these target pool settings.
Implementations§
Source§impl InstanceGroupManagersSetTargetPoolsRequest
impl InstanceGroupManagersSetTargetPoolsRequest
pub fn new() -> Self
Sourcepub fn set_fingerprint<T>(self, v: T) -> Self
pub fn set_fingerprint<T>(self, v: T) -> Self
Sets the value of fingerprint.
§Example
ⓘ
let x = InstanceGroupManagersSetTargetPoolsRequest::new().set_fingerprint(bytes::Bytes::from_static(b"example"));Sourcepub fn set_or_clear_fingerprint<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_fingerprint<T>(self, v: Option<T>) -> Self
Sets or clears the value of fingerprint.
§Example
ⓘ
let x = InstanceGroupManagersSetTargetPoolsRequest::new().set_or_clear_fingerprint(Some(bytes::Bytes::from_static(b"example")));
let x = InstanceGroupManagersSetTargetPoolsRequest::new().set_or_clear_fingerprint(None::<bytes::Bytes>);Sourcepub fn set_target_pools<T, V>(self, v: T) -> Self
pub fn set_target_pools<T, V>(self, v: T) -> Self
Sets the value of target_pools.
§Example
ⓘ
let x = InstanceGroupManagersSetTargetPoolsRequest::new().set_target_pools(["a", "b", "c"]);Trait Implementations§
Source§impl Clone for InstanceGroupManagersSetTargetPoolsRequest
impl Clone for InstanceGroupManagersSetTargetPoolsRequest
Source§fn clone(&self) -> InstanceGroupManagersSetTargetPoolsRequest
fn clone(&self) -> InstanceGroupManagersSetTargetPoolsRequest
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 InstanceGroupManagersSetTargetPoolsRequest
impl Default for InstanceGroupManagersSetTargetPoolsRequest
Source§fn default() -> InstanceGroupManagersSetTargetPoolsRequest
fn default() -> InstanceGroupManagersSetTargetPoolsRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for InstanceGroupManagersSetTargetPoolsRequest
impl PartialEq for InstanceGroupManagersSetTargetPoolsRequest
Source§fn eq(&self, other: &InstanceGroupManagersSetTargetPoolsRequest) -> bool
fn eq(&self, other: &InstanceGroupManagersSetTargetPoolsRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InstanceGroupManagersSetTargetPoolsRequest
Auto Trait Implementations§
impl !Freeze for InstanceGroupManagersSetTargetPoolsRequest
impl RefUnwindSafe for InstanceGroupManagersSetTargetPoolsRequest
impl Send for InstanceGroupManagersSetTargetPoolsRequest
impl Sync for InstanceGroupManagersSetTargetPoolsRequest
impl Unpin for InstanceGroupManagersSetTargetPoolsRequest
impl UnwindSafe for InstanceGroupManagersSetTargetPoolsRequest
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