#[non_exhaustive]pub struct RouterStatusNatStatusNatRuleStatus {
pub active_nat_ips: Vec<String>,
pub drain_nat_ips: Vec<String>,
pub min_extra_ips_needed: Option<i32>,
pub num_vm_endpoints_with_nat_mappings: Option<i32>,
pub rule_number: Option<i32>,
/* private fields */
}routers only.Expand description
Status of a NAT Rule contained in this NAT.
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.active_nat_ips: Vec<String>Output only. A list of active IPs for NAT. Example: [“1.1.1.1”, “179.12.26.133”].
drain_nat_ips: Vec<String>Output only. A list of IPs for NAT that are in drain mode. Example: [“1.1.1.1”, “179.12.26.133”].
min_extra_ips_needed: Option<i32>Output only. The number of extra IPs to allocate. This will be greater than 0 only if the existing IPs in this NAT Rule are NOT enough to allow all configured VMs to use NAT.
num_vm_endpoints_with_nat_mappings: Option<i32>Output only. Number of VM endpoints (i.e., NICs) that have NAT Mappings from this NAT Rule.
rule_number: Option<i32>Output only. Rule number of the rule.
Implementations§
Source§impl RouterStatusNatStatusNatRuleStatus
impl RouterStatusNatStatusNatRuleStatus
pub fn new() -> Self
Sourcepub fn set_active_nat_ips<T, V>(self, v: T) -> Self
pub fn set_active_nat_ips<T, V>(self, v: T) -> Self
Sets the value of active_nat_ips.
§Example
let x = RouterStatusNatStatusNatRuleStatus::new().set_active_nat_ips(["a", "b", "c"]);Sourcepub fn set_drain_nat_ips<T, V>(self, v: T) -> Self
pub fn set_drain_nat_ips<T, V>(self, v: T) -> Self
Sets the value of drain_nat_ips.
§Example
let x = RouterStatusNatStatusNatRuleStatus::new().set_drain_nat_ips(["a", "b", "c"]);Sourcepub fn set_min_extra_ips_needed<T>(self, v: T) -> Self
pub fn set_min_extra_ips_needed<T>(self, v: T) -> Self
Sets the value of min_extra_ips_needed.
§Example
let x = RouterStatusNatStatusNatRuleStatus::new().set_min_extra_ips_needed(42);Sourcepub fn set_or_clear_min_extra_ips_needed<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_min_extra_ips_needed<T>(self, v: Option<T>) -> Self
Sets or clears the value of min_extra_ips_needed.
§Example
let x = RouterStatusNatStatusNatRuleStatus::new().set_or_clear_min_extra_ips_needed(Some(42));
let x = RouterStatusNatStatusNatRuleStatus::new().set_or_clear_min_extra_ips_needed(None::<i32>);Sourcepub fn set_num_vm_endpoints_with_nat_mappings<T>(self, v: T) -> Self
pub fn set_num_vm_endpoints_with_nat_mappings<T>(self, v: T) -> Self
Sets the value of num_vm_endpoints_with_nat_mappings.
§Example
let x = RouterStatusNatStatusNatRuleStatus::new().set_num_vm_endpoints_with_nat_mappings(42);Sourcepub fn set_or_clear_num_vm_endpoints_with_nat_mappings<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_num_vm_endpoints_with_nat_mappings<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of num_vm_endpoints_with_nat_mappings.
§Example
let x = RouterStatusNatStatusNatRuleStatus::new().set_or_clear_num_vm_endpoints_with_nat_mappings(Some(42));
let x = RouterStatusNatStatusNatRuleStatus::new().set_or_clear_num_vm_endpoints_with_nat_mappings(None::<i32>);Sourcepub fn set_rule_number<T>(self, v: T) -> Self
pub fn set_rule_number<T>(self, v: T) -> Self
Sets the value of rule_number.
§Example
let x = RouterStatusNatStatusNatRuleStatus::new().set_rule_number(42);Sourcepub fn set_or_clear_rule_number<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_rule_number<T>(self, v: Option<T>) -> Self
Sets or clears the value of rule_number.
§Example
let x = RouterStatusNatStatusNatRuleStatus::new().set_or_clear_rule_number(Some(42));
let x = RouterStatusNatStatusNatRuleStatus::new().set_or_clear_rule_number(None::<i32>);Trait Implementations§
Source§impl Clone for RouterStatusNatStatusNatRuleStatus
impl Clone for RouterStatusNatStatusNatRuleStatus
Source§fn clone(&self) -> RouterStatusNatStatusNatRuleStatus
fn clone(&self) -> RouterStatusNatStatusNatRuleStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for RouterStatusNatStatusNatRuleStatus
impl Default for RouterStatusNatStatusNatRuleStatus
Source§fn default() -> RouterStatusNatStatusNatRuleStatus
fn default() -> RouterStatusNatStatusNatRuleStatus
Source§impl PartialEq for RouterStatusNatStatusNatRuleStatus
impl PartialEq for RouterStatusNatStatusNatRuleStatus
Source§fn eq(&self, other: &RouterStatusNatStatusNatRuleStatus) -> bool
fn eq(&self, other: &RouterStatusNatStatusNatRuleStatus) -> bool
self and other values to be equal, and is used by ==.