#[non_exhaustive]pub struct RuleGroupSourceStatelessRuleDefinitionBuilder { /* private fields */ }
Expand description
A builder for RuleGroupSourceStatelessRuleDefinition
.
Implementations§
source§impl RuleGroupSourceStatelessRuleDefinitionBuilder
impl RuleGroupSourceStatelessRuleDefinitionBuilder
sourcepub fn actions(self, input: impl Into<String>) -> Self
pub fn actions(self, input: impl Into<String>) -> Self
Appends an item to actions
.
To override the contents of this collection use set_actions
.
The actions to take on a packet that matches one of the stateless rule definition's match attributes. You must specify a standard action (aws:pass
, aws:drop
, or aws:forward_to_sfe
). You can then add custom actions.
sourcepub fn set_actions(self, input: Option<Vec<String>>) -> Self
pub fn set_actions(self, input: Option<Vec<String>>) -> Self
The actions to take on a packet that matches one of the stateless rule definition's match attributes. You must specify a standard action (aws:pass
, aws:drop
, or aws:forward_to_sfe
). You can then add custom actions.
sourcepub fn get_actions(&self) -> &Option<Vec<String>>
pub fn get_actions(&self) -> &Option<Vec<String>>
The actions to take on a packet that matches one of the stateless rule definition's match attributes. You must specify a standard action (aws:pass
, aws:drop
, or aws:forward_to_sfe
). You can then add custom actions.
sourcepub fn match_attributes(
self,
input: RuleGroupSourceStatelessRuleMatchAttributes
) -> Self
pub fn match_attributes( self, input: RuleGroupSourceStatelessRuleMatchAttributes ) -> Self
The criteria for Network Firewall to use to inspect an individual packet in a stateless rule inspection.
sourcepub fn set_match_attributes(
self,
input: Option<RuleGroupSourceStatelessRuleMatchAttributes>
) -> Self
pub fn set_match_attributes( self, input: Option<RuleGroupSourceStatelessRuleMatchAttributes> ) -> Self
The criteria for Network Firewall to use to inspect an individual packet in a stateless rule inspection.
sourcepub fn get_match_attributes(
&self
) -> &Option<RuleGroupSourceStatelessRuleMatchAttributes>
pub fn get_match_attributes( &self ) -> &Option<RuleGroupSourceStatelessRuleMatchAttributes>
The criteria for Network Firewall to use to inspect an individual packet in a stateless rule inspection.
sourcepub fn build(self) -> RuleGroupSourceStatelessRuleDefinition
pub fn build(self) -> RuleGroupSourceStatelessRuleDefinition
Consumes the builder and constructs a RuleGroupSourceStatelessRuleDefinition
.
Trait Implementations§
source§impl Clone for RuleGroupSourceStatelessRuleDefinitionBuilder
impl Clone for RuleGroupSourceStatelessRuleDefinitionBuilder
source§fn clone(&self) -> RuleGroupSourceStatelessRuleDefinitionBuilder
fn clone(&self) -> RuleGroupSourceStatelessRuleDefinitionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for RuleGroupSourceStatelessRuleDefinitionBuilder
impl Default for RuleGroupSourceStatelessRuleDefinitionBuilder
source§fn default() -> RuleGroupSourceStatelessRuleDefinitionBuilder
fn default() -> RuleGroupSourceStatelessRuleDefinitionBuilder
source§impl PartialEq for RuleGroupSourceStatelessRuleDefinitionBuilder
impl PartialEq for RuleGroupSourceStatelessRuleDefinitionBuilder
source§fn eq(&self, other: &RuleGroupSourceStatelessRuleDefinitionBuilder) -> bool
fn eq(&self, other: &RuleGroupSourceStatelessRuleDefinitionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.