#[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 ==
.impl StructuralPartialEq for RuleGroupSourceStatelessRuleDefinitionBuilder
Auto Trait Implementations§
impl Freeze for RuleGroupSourceStatelessRuleDefinitionBuilder
impl RefUnwindSafe for RuleGroupSourceStatelessRuleDefinitionBuilder
impl Send for RuleGroupSourceStatelessRuleDefinitionBuilder
impl Sync for RuleGroupSourceStatelessRuleDefinitionBuilder
impl Unpin for RuleGroupSourceStatelessRuleDefinitionBuilder
impl UnwindSafe for RuleGroupSourceStatelessRuleDefinitionBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more