#[non_exhaustive]pub struct RegionInstanceGroupManagersSetTargetPoolsRequest {
pub fingerprint: Option<Bytes>,
pub target_pools: 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.fingerprint: Option<Bytes>Fingerprint of the target pools information, which is a hash of the contents. This field is used for optimistic locking when you update the target pool entries. This field is optional.
target_pools: Vec<String>The URL of all TargetPool resources to which instances in theinstanceGroup field are added. The target pools automatically apply to all of the instances in the managed instance group.
Implementations§
Source§impl RegionInstanceGroupManagersSetTargetPoolsRequest
impl RegionInstanceGroupManagersSetTargetPoolsRequest
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 = RegionInstanceGroupManagersSetTargetPoolsRequest::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 = RegionInstanceGroupManagersSetTargetPoolsRequest::new().set_or_clear_fingerprint(Some(bytes::Bytes::from_static(b"example")));
let x = RegionInstanceGroupManagersSetTargetPoolsRequest::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 = RegionInstanceGroupManagersSetTargetPoolsRequest::new().set_target_pools(["a", "b", "c"]);Trait Implementations§
Source§impl Clone for RegionInstanceGroupManagersSetTargetPoolsRequest
impl Clone for RegionInstanceGroupManagersSetTargetPoolsRequest
Source§fn clone(&self) -> RegionInstanceGroupManagersSetTargetPoolsRequest
fn clone(&self) -> RegionInstanceGroupManagersSetTargetPoolsRequest
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 RegionInstanceGroupManagersSetTargetPoolsRequest
impl Default for RegionInstanceGroupManagersSetTargetPoolsRequest
Source§fn default() -> RegionInstanceGroupManagersSetTargetPoolsRequest
fn default() -> RegionInstanceGroupManagersSetTargetPoolsRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for RegionInstanceGroupManagersSetTargetPoolsRequest
impl PartialEq for RegionInstanceGroupManagersSetTargetPoolsRequest
Source§fn eq(&self, other: &RegionInstanceGroupManagersSetTargetPoolsRequest) -> bool
fn eq(&self, other: &RegionInstanceGroupManagersSetTargetPoolsRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RegionInstanceGroupManagersSetTargetPoolsRequest
Auto Trait Implementations§
impl !Freeze for RegionInstanceGroupManagersSetTargetPoolsRequest
impl RefUnwindSafe for RegionInstanceGroupManagersSetTargetPoolsRequest
impl Send for RegionInstanceGroupManagersSetTargetPoolsRequest
impl Sync for RegionInstanceGroupManagersSetTargetPoolsRequest
impl Unpin for RegionInstanceGroupManagersSetTargetPoolsRequest
impl UnwindSafe for RegionInstanceGroupManagersSetTargetPoolsRequest
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