#[non_exhaustive]pub struct InterconnectLocationRegionInfo {
pub expected_rtt_ms: Option<i64>,
pub l_2_forwarding_enabled: Option<bool>,
pub location_presence: Option<LocationPresence>,
pub region: Option<String>,
/* private fields */
}interconnect-locations only.Expand description
Information about any potential InterconnectAttachments between an Interconnect at a specific InterconnectLocation, and a specific Cloud Region.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.expected_rtt_ms: Option<i64>Output only. Expected round-trip time in milliseconds, from this InterconnectLocation to a VM in this region.
l_2_forwarding_enabled: Option<bool>Output only. Identifies whether L2 Interconnect Attachments can be created in this region for interconnects that are in this location.
location_presence: Option<LocationPresence>Output only. Identifies the network presence of this location.
region: Option<String>Output only. URL for the region of this location.
Implementations§
Source§impl InterconnectLocationRegionInfo
impl InterconnectLocationRegionInfo
pub fn new() -> Self
Sourcepub fn set_expected_rtt_ms<T>(self, v: T) -> Self
pub fn set_expected_rtt_ms<T>(self, v: T) -> Self
Sets the value of expected_rtt_ms.
§Example
let x = InterconnectLocationRegionInfo::new().set_expected_rtt_ms(42);Sourcepub fn set_or_clear_expected_rtt_ms<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_expected_rtt_ms<T>(self, v: Option<T>) -> Self
Sets or clears the value of expected_rtt_ms.
§Example
let x = InterconnectLocationRegionInfo::new().set_or_clear_expected_rtt_ms(Some(42));
let x = InterconnectLocationRegionInfo::new().set_or_clear_expected_rtt_ms(None::<i32>);Sourcepub fn set_l_2_forwarding_enabled<T>(self, v: T) -> Self
pub fn set_l_2_forwarding_enabled<T>(self, v: T) -> Self
Sets the value of l_2_forwarding_enabled.
§Example
let x = InterconnectLocationRegionInfo::new().set_l_2_forwarding_enabled(true);Sourcepub fn set_or_clear_l_2_forwarding_enabled<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_l_2_forwarding_enabled<T>(self, v: Option<T>) -> Self
Sets or clears the value of l_2_forwarding_enabled.
§Example
let x = InterconnectLocationRegionInfo::new().set_or_clear_l_2_forwarding_enabled(Some(false));
let x = InterconnectLocationRegionInfo::new().set_or_clear_l_2_forwarding_enabled(None::<bool>);Sourcepub fn set_location_presence<T>(self, v: T) -> Selfwhere
T: Into<LocationPresence>,
pub fn set_location_presence<T>(self, v: T) -> Selfwhere
T: Into<LocationPresence>,
Sets the value of location_presence.
§Example
use google_cloud_compute_v1::model::interconnect_location_region_info::LocationPresence;
let x0 = InterconnectLocationRegionInfo::new().set_location_presence(LocationPresence::LocalRegion);
let x1 = InterconnectLocationRegionInfo::new().set_location_presence(LocationPresence::LpGlobal);
let x2 = InterconnectLocationRegionInfo::new().set_location_presence(LocationPresence::LpLocalRegion);Sourcepub fn set_or_clear_location_presence<T>(self, v: Option<T>) -> Selfwhere
T: Into<LocationPresence>,
pub fn set_or_clear_location_presence<T>(self, v: Option<T>) -> Selfwhere
T: Into<LocationPresence>,
Sets or clears the value of location_presence.
§Example
use google_cloud_compute_v1::model::interconnect_location_region_info::LocationPresence;
let x0 = InterconnectLocationRegionInfo::new().set_or_clear_location_presence(Some(LocationPresence::LocalRegion));
let x1 = InterconnectLocationRegionInfo::new().set_or_clear_location_presence(Some(LocationPresence::LpGlobal));
let x2 = InterconnectLocationRegionInfo::new().set_or_clear_location_presence(Some(LocationPresence::LpLocalRegion));
let x_none = InterconnectLocationRegionInfo::new().set_or_clear_location_presence(None::<LocationPresence>);Sourcepub fn set_region<T>(self, v: T) -> Self
pub fn set_region<T>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for InterconnectLocationRegionInfo
impl Clone for InterconnectLocationRegionInfo
Source§fn clone(&self) -> InterconnectLocationRegionInfo
fn clone(&self) -> InterconnectLocationRegionInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for InterconnectLocationRegionInfo
impl Default for InterconnectLocationRegionInfo
Source§fn default() -> InterconnectLocationRegionInfo
fn default() -> InterconnectLocationRegionInfo
Source§impl PartialEq for InterconnectLocationRegionInfo
impl PartialEq for InterconnectLocationRegionInfo
Source§fn eq(&self, other: &InterconnectLocationRegionInfo) -> bool
fn eq(&self, other: &InterconnectLocationRegionInfo) -> bool
self and other values to be equal, and is used by ==.