#[non_exhaustive]pub struct FirewallPolicyAssociation {
pub attachment_target: Option<String>,
pub display_name: Option<String>,
pub firewall_policy_id: Option<String>,
pub name: Option<String>,
pub short_name: Option<String>,
/* private fields */
}Available on crate features
firewall-policies or network-firewall-policies or region-network-firewall-policies only.Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.attachment_target: Option<String>The target that the firewall policy is attached to.
display_name: Option<String>👎Deprecated
[Output Only] Deprecated, please use short name instead. The display name of the firewall policy of the association.
firewall_policy_id: Option<String>Output only. [Output Only] The firewall policy ID of the association.
name: Option<String>The name for an association.
short_name: Option<String>Output only. [Output Only] The short name of the firewall policy of the association.
Implementations§
Source§impl FirewallPolicyAssociation
impl FirewallPolicyAssociation
pub fn new() -> Self
Sourcepub fn set_attachment_target<T>(self, v: T) -> Self
pub fn set_attachment_target<T>(self, v: T) -> Self
Sets the value of attachment_target.
§Example
ⓘ
let x = FirewallPolicyAssociation::new().set_attachment_target("example");Sourcepub fn set_or_clear_attachment_target<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_attachment_target<T>(self, v: Option<T>) -> Self
Sets or clears the value of attachment_target.
§Example
ⓘ
let x = FirewallPolicyAssociation::new().set_or_clear_attachment_target(Some("example"));
let x = FirewallPolicyAssociation::new().set_or_clear_attachment_target(None::<String>);Sourcepub fn set_display_name<T>(self, v: T) -> Self
👎Deprecated
pub fn set_display_name<T>(self, v: T) -> Self
Sets the value of display_name.
§Example
ⓘ
let x = FirewallPolicyAssociation::new().set_display_name("example");Sourcepub fn set_or_clear_display_name<T>(self, v: Option<T>) -> Self
👎Deprecated
pub fn set_or_clear_display_name<T>(self, v: Option<T>) -> Self
Sets or clears the value of display_name.
§Example
ⓘ
let x = FirewallPolicyAssociation::new().set_or_clear_display_name(Some("example"));
let x = FirewallPolicyAssociation::new().set_or_clear_display_name(None::<String>);Sourcepub fn set_firewall_policy_id<T>(self, v: T) -> Self
pub fn set_firewall_policy_id<T>(self, v: T) -> Self
Sets the value of firewall_policy_id.
§Example
ⓘ
let x = FirewallPolicyAssociation::new().set_firewall_policy_id("example");Sourcepub fn set_or_clear_firewall_policy_id<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_firewall_policy_id<T>(self, v: Option<T>) -> Self
Sets or clears the value of firewall_policy_id.
§Example
ⓘ
let x = FirewallPolicyAssociation::new().set_or_clear_firewall_policy_id(Some("example"));
let x = FirewallPolicyAssociation::new().set_or_clear_firewall_policy_id(None::<String>);Sourcepub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
Sourcepub fn set_short_name<T>(self, v: T) -> Self
pub fn set_short_name<T>(self, v: T) -> Self
Sets the value of short_name.
§Example
ⓘ
let x = FirewallPolicyAssociation::new().set_short_name("example");Sourcepub fn set_or_clear_short_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_short_name<T>(self, v: Option<T>) -> Self
Sets or clears the value of short_name.
§Example
ⓘ
let x = FirewallPolicyAssociation::new().set_or_clear_short_name(Some("example"));
let x = FirewallPolicyAssociation::new().set_or_clear_short_name(None::<String>);Trait Implementations§
Source§impl Clone for FirewallPolicyAssociation
impl Clone for FirewallPolicyAssociation
Source§fn clone(&self) -> FirewallPolicyAssociation
fn clone(&self) -> FirewallPolicyAssociation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FirewallPolicyAssociation
impl Debug for FirewallPolicyAssociation
Source§impl Default for FirewallPolicyAssociation
impl Default for FirewallPolicyAssociation
Source§fn default() -> FirewallPolicyAssociation
fn default() -> FirewallPolicyAssociation
Returns the “default value” for a type. Read more
Source§impl Message for FirewallPolicyAssociation
impl Message for FirewallPolicyAssociation
impl StructuralPartialEq for FirewallPolicyAssociation
Auto Trait Implementations§
impl Freeze for FirewallPolicyAssociation
impl RefUnwindSafe for FirewallPolicyAssociation
impl Send for FirewallPolicyAssociation
impl Sync for FirewallPolicyAssociation
impl Unpin for FirewallPolicyAssociation
impl UnwindSafe for FirewallPolicyAssociation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more