#[non_exhaustive]pub struct PrivateConnection {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: HashMap<String, String>,
pub display_name: String,
pub state: State,
pub error: Option<Status>,
pub connectivity: Option<Connectivity>,
/* private fields */
}Expand description
The PrivateConnection resource is used to establish private connectivity with the customer’s network.
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.name: StringThe name of the resource.
create_time: Option<Timestamp>Output only. The create time of the resource.
update_time: Option<Timestamp>Output only. The last update time of the resource.
labels: HashMap<String, String>The resource labels for private connections to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of “key”: “value” pairs.
Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
display_name: StringThe private connection display name.
state: StateOutput only. The state of the private connection.
error: Option<Status>Output only. The error details in case of state FAILED.
connectivity: Option<Connectivity>Implementations§
Source§impl PrivateConnection
impl PrivateConnection
pub fn new() -> Self
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sets the value of labels.
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of display_name.
Sourcepub fn set_or_clear_error<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_error<T>(self, v: Option<T>) -> Self
Sets or clears the value of error.
Sourcepub fn set_connectivity<T: Into<Option<Connectivity>>>(self, v: T) -> Self
pub fn set_connectivity<T: Into<Option<Connectivity>>>(self, v: T) -> Self
Sets the value of connectivity.
Note that all the setters affecting connectivity are mutually
exclusive.
Sourcepub fn vpc_peering_config(&self) -> Option<&Box<VpcPeeringConfig>>
pub fn vpc_peering_config(&self) -> Option<&Box<VpcPeeringConfig>>
The value of connectivity
if it holds a VpcPeeringConfig, None if the field is not set or
holds a different branch.
Sourcepub fn set_vpc_peering_config<T: Into<Box<VpcPeeringConfig>>>(
self,
v: T,
) -> Self
pub fn set_vpc_peering_config<T: Into<Box<VpcPeeringConfig>>>( self, v: T, ) -> Self
Sets the value of connectivity
to hold a VpcPeeringConfig.
Note that all the setters affecting connectivity are
mutually exclusive.
Trait Implementations§
Source§impl Clone for PrivateConnection
impl Clone for PrivateConnection
Source§fn clone(&self) -> PrivateConnection
fn clone(&self) -> PrivateConnection
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more