#[non_exhaustive]pub struct InterconnectAttachmentGroupIntent {
pub availability_sla: Option<AvailabilitySla>,
/* private fields */
}Available on crate feature
interconnect-attachment-groups only.Expand description
The user’s intent for this AttachmentGroup. This is the only required field besides the name that must be specified on group creation.
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.availability_sla: Option<AvailabilitySla>Implementations§
Source§impl InterconnectAttachmentGroupIntent
impl InterconnectAttachmentGroupIntent
pub fn new() -> Self
Sourcepub fn set_availability_sla<T>(self, v: T) -> Selfwhere
T: Into<AvailabilitySla>,
pub fn set_availability_sla<T>(self, v: T) -> Selfwhere
T: Into<AvailabilitySla>,
Sets the value of availability_sla.
§Example
ⓘ
use google_cloud_compute_v1::model::interconnect_attachment_group_intent::AvailabilitySla;
let x0 = InterconnectAttachmentGroupIntent::new().set_availability_sla(AvailabilitySla::NoSla);
let x1 = InterconnectAttachmentGroupIntent::new().set_availability_sla(AvailabilitySla::ProductionCritical);
let x2 = InterconnectAttachmentGroupIntent::new().set_availability_sla(AvailabilitySla::ProductionNonCritical);Sourcepub fn set_or_clear_availability_sla<T>(self, v: Option<T>) -> Selfwhere
T: Into<AvailabilitySla>,
pub fn set_or_clear_availability_sla<T>(self, v: Option<T>) -> Selfwhere
T: Into<AvailabilitySla>,
Sets or clears the value of availability_sla.
§Example
ⓘ
use google_cloud_compute_v1::model::interconnect_attachment_group_intent::AvailabilitySla;
let x0 = InterconnectAttachmentGroupIntent::new().set_or_clear_availability_sla(Some(AvailabilitySla::NoSla));
let x1 = InterconnectAttachmentGroupIntent::new().set_or_clear_availability_sla(Some(AvailabilitySla::ProductionCritical));
let x2 = InterconnectAttachmentGroupIntent::new().set_or_clear_availability_sla(Some(AvailabilitySla::ProductionNonCritical));
let x_none = InterconnectAttachmentGroupIntent::new().set_or_clear_availability_sla(None::<AvailabilitySla>);Trait Implementations§
Source§impl Clone for InterconnectAttachmentGroupIntent
impl Clone for InterconnectAttachmentGroupIntent
Source§fn clone(&self) -> InterconnectAttachmentGroupIntent
fn clone(&self) -> InterconnectAttachmentGroupIntent
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 InterconnectAttachmentGroupIntent
impl Default for InterconnectAttachmentGroupIntent
Source§fn default() -> InterconnectAttachmentGroupIntent
fn default() -> InterconnectAttachmentGroupIntent
Returns the “default value” for a type. Read more
Source§impl PartialEq for InterconnectAttachmentGroupIntent
impl PartialEq for InterconnectAttachmentGroupIntent
Source§fn eq(&self, other: &InterconnectAttachmentGroupIntent) -> bool
fn eq(&self, other: &InterconnectAttachmentGroupIntent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InterconnectAttachmentGroupIntent
Auto Trait Implementations§
impl Freeze for InterconnectAttachmentGroupIntent
impl RefUnwindSafe for InterconnectAttachmentGroupIntent
impl Send for InterconnectAttachmentGroupIntent
impl Sync for InterconnectAttachmentGroupIntent
impl Unpin for InterconnectAttachmentGroupIntent
impl UnwindSafe for InterconnectAttachmentGroupIntent
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