#[non_exhaustive]pub struct VpnGatewayStatusVpnConnection {
pub peer_external_gateway: Option<String>,
pub peer_gcp_gateway: Option<String>,
pub state: Option<VpnGatewayStatusHighAvailabilityRequirementState>,
pub tunnels: Vec<VpnGatewayStatusTunnel>,
/* private fields */
}vpn-gateways only.Expand description
A VPN connection contains all VPN tunnels connected from this VpnGateway to the same peer gateway. The peer gateway could either be an external VPN gateway or a Google Cloud VPN gateway.
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.peer_external_gateway: Option<String>Output only. URL reference to the peer external VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.
peer_gcp_gateway: Option<String>Output only. URL reference to the peer side VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.
state: Option<VpnGatewayStatusHighAvailabilityRequirementState>HighAvailabilityRequirementState for the VPN connection.
tunnels: Vec<VpnGatewayStatusTunnel>List of VPN tunnels that are in this VPN connection.
Implementations§
Source§impl VpnGatewayStatusVpnConnection
impl VpnGatewayStatusVpnConnection
pub fn new() -> Self
Sourcepub fn set_peer_external_gateway<T>(self, v: T) -> Self
pub fn set_peer_external_gateway<T>(self, v: T) -> Self
Sets the value of peer_external_gateway.
§Example
let x = VpnGatewayStatusVpnConnection::new().set_peer_external_gateway("example");Sourcepub fn set_or_clear_peer_external_gateway<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_peer_external_gateway<T>(self, v: Option<T>) -> Self
Sets or clears the value of peer_external_gateway.
§Example
let x = VpnGatewayStatusVpnConnection::new().set_or_clear_peer_external_gateway(Some("example"));
let x = VpnGatewayStatusVpnConnection::new().set_or_clear_peer_external_gateway(None::<String>);Sourcepub fn set_peer_gcp_gateway<T>(self, v: T) -> Self
pub fn set_peer_gcp_gateway<T>(self, v: T) -> Self
Sets the value of peer_gcp_gateway.
§Example
let x = VpnGatewayStatusVpnConnection::new().set_peer_gcp_gateway("example");Sourcepub fn set_or_clear_peer_gcp_gateway<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_peer_gcp_gateway<T>(self, v: Option<T>) -> Self
Sets or clears the value of peer_gcp_gateway.
§Example
let x = VpnGatewayStatusVpnConnection::new().set_or_clear_peer_gcp_gateway(Some("example"));
let x = VpnGatewayStatusVpnConnection::new().set_or_clear_peer_gcp_gateway(None::<String>);Sourcepub fn set_or_clear_state<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_state<T>(self, v: Option<T>) -> Self
Sets or clears the value of state.
§Example
use google_cloud_compute_v1::model::VpnGatewayStatusHighAvailabilityRequirementState;
let x = VpnGatewayStatusVpnConnection::new().set_or_clear_state(Some(VpnGatewayStatusHighAvailabilityRequirementState::default()/* use setters */));
let x = VpnGatewayStatusVpnConnection::new().set_or_clear_state(None::<VpnGatewayStatusHighAvailabilityRequirementState>);Sourcepub fn set_tunnels<T, V>(self, v: T) -> Self
pub fn set_tunnels<T, V>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for VpnGatewayStatusVpnConnection
impl Clone for VpnGatewayStatusVpnConnection
Source§fn clone(&self) -> VpnGatewayStatusVpnConnection
fn clone(&self) -> VpnGatewayStatusVpnConnection
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for VpnGatewayStatusVpnConnection
impl Default for VpnGatewayStatusVpnConnection
Source§fn default() -> VpnGatewayStatusVpnConnection
fn default() -> VpnGatewayStatusVpnConnection
Source§impl PartialEq for VpnGatewayStatusVpnConnection
impl PartialEq for VpnGatewayStatusVpnConnection
Source§fn eq(&self, other: &VpnGatewayStatusVpnConnection) -> bool
fn eq(&self, other: &VpnGatewayStatusVpnConnection) -> bool
self and other values to be equal, and is used by ==.