#[non_exhaustive]pub struct FirewallEndpointAssociation {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: HashMap<String, String>,
pub state: State,
pub network: String,
pub firewall_endpoint: String,
pub tls_inspection_policy: String,
pub reconciling: bool,
pub disabled: bool,
/* private fields */
}Expand description
Message describing Association object
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: StringImmutable. Identifier. name of resource
create_time: Option<Timestamp>Output only. Create time stamp
update_time: Option<Timestamp>Output only. Update time stamp
labels: HashMap<String, String>Optional. Labels as key value pairs
state: StateOutput only. Current state of the association.
network: StringRequired. The URL of the network that is being associated.
firewall_endpoint: StringRequired. The URL of the FirewallEndpoint that is being associated.
tls_inspection_policy: StringOptional. The URL of the TlsInspectionPolicy that is being associated.
reconciling: boolOutput only. Whether reconciling is in progress, recommended per https://google.aip.dev/128.
disabled: boolOptional. Whether the association is disabled. True indicates that traffic won’t be intercepted
Implementations§
Source§impl FirewallEndpointAssociation
impl FirewallEndpointAssociation
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.
§Example
use wkt::Timestamp;
let x = FirewallEndpointAssociation::new().set_create_time(Timestamp::default()/* use setters */);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.
§Example
use wkt::Timestamp;
let x = FirewallEndpointAssociation::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = FirewallEndpointAssociation::new().set_or_clear_create_time(None::<Timestamp>);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.
§Example
use wkt::Timestamp;
let x = FirewallEndpointAssociation::new().set_update_time(Timestamp::default()/* use setters */);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.
§Example
use wkt::Timestamp;
let x = FirewallEndpointAssociation::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = FirewallEndpointAssociation::new().set_or_clear_update_time(None::<Timestamp>);Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sourcepub fn set_state<T: Into<State>>(self, v: T) -> Self
pub fn set_state<T: Into<State>>(self, v: T) -> Self
Sets the value of state.
§Example
use google_cloud_networksecurity_v1::model::firewall_endpoint_association::State;
let x0 = FirewallEndpointAssociation::new().set_state(State::Creating);
let x1 = FirewallEndpointAssociation::new().set_state(State::Active);
let x2 = FirewallEndpointAssociation::new().set_state(State::Deleting);Sourcepub fn set_network<T: Into<String>>(self, v: T) -> Self
pub fn set_network<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_firewall_endpoint<T: Into<String>>(self, v: T) -> Self
pub fn set_firewall_endpoint<T: Into<String>>(self, v: T) -> Self
Sets the value of firewall_endpoint.
§Example
let x = FirewallEndpointAssociation::new().set_firewall_endpoint("example");Sourcepub fn set_tls_inspection_policy<T: Into<String>>(self, v: T) -> Self
pub fn set_tls_inspection_policy<T: Into<String>>(self, v: T) -> Self
Sets the value of tls_inspection_policy.
§Example
let x = FirewallEndpointAssociation::new().set_tls_inspection_policy("example");Sourcepub fn set_reconciling<T: Into<bool>>(self, v: T) -> Self
pub fn set_reconciling<T: Into<bool>>(self, v: T) -> Self
Sets the value of reconciling.
§Example
let x = FirewallEndpointAssociation::new().set_reconciling(true);Trait Implementations§
Source§impl Clone for FirewallEndpointAssociation
impl Clone for FirewallEndpointAssociation
Source§fn clone(&self) -> FirewallEndpointAssociation
fn clone(&self) -> FirewallEndpointAssociation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more