Struct aws_sdk_securityhub::types::builders::RuleGroupSourceStatelessRuleMatchAttributesBuilder
source · #[non_exhaustive]pub struct RuleGroupSourceStatelessRuleMatchAttributesBuilder { /* private fields */ }
Expand description
A builder for RuleGroupSourceStatelessRuleMatchAttributes
.
Implementations§
source§impl RuleGroupSourceStatelessRuleMatchAttributesBuilder
impl RuleGroupSourceStatelessRuleMatchAttributesBuilder
sourcepub fn destination_ports(
self,
input: RuleGroupSourceStatelessRuleMatchAttributesDestinationPorts
) -> Self
pub fn destination_ports( self, input: RuleGroupSourceStatelessRuleMatchAttributesDestinationPorts ) -> Self
Appends an item to destination_ports
.
To override the contents of this collection use set_destination_ports
.
A list of port ranges to specify the destination ports to inspect for.
sourcepub fn set_destination_ports(
self,
input: Option<Vec<RuleGroupSourceStatelessRuleMatchAttributesDestinationPorts>>
) -> Self
pub fn set_destination_ports( self, input: Option<Vec<RuleGroupSourceStatelessRuleMatchAttributesDestinationPorts>> ) -> Self
A list of port ranges to specify the destination ports to inspect for.
sourcepub fn get_destination_ports(
&self
) -> &Option<Vec<RuleGroupSourceStatelessRuleMatchAttributesDestinationPorts>>
pub fn get_destination_ports( &self ) -> &Option<Vec<RuleGroupSourceStatelessRuleMatchAttributesDestinationPorts>>
A list of port ranges to specify the destination ports to inspect for.
sourcepub fn destinations(
self,
input: RuleGroupSourceStatelessRuleMatchAttributesDestinations
) -> Self
pub fn destinations( self, input: RuleGroupSourceStatelessRuleMatchAttributesDestinations ) -> Self
Appends an item to destinations
.
To override the contents of this collection use set_destinations
.
The destination IP addresses and address ranges to inspect for, in CIDR notation.
sourcepub fn set_destinations(
self,
input: Option<Vec<RuleGroupSourceStatelessRuleMatchAttributesDestinations>>
) -> Self
pub fn set_destinations( self, input: Option<Vec<RuleGroupSourceStatelessRuleMatchAttributesDestinations>> ) -> Self
The destination IP addresses and address ranges to inspect for, in CIDR notation.
sourcepub fn get_destinations(
&self
) -> &Option<Vec<RuleGroupSourceStatelessRuleMatchAttributesDestinations>>
pub fn get_destinations( &self ) -> &Option<Vec<RuleGroupSourceStatelessRuleMatchAttributesDestinations>>
The destination IP addresses and address ranges to inspect for, in CIDR notation.
sourcepub fn protocols(self, input: i32) -> Self
pub fn protocols(self, input: i32) -> Self
Appends an item to protocols
.
To override the contents of this collection use set_protocols
.
The protocols to inspect for.
sourcepub fn set_protocols(self, input: Option<Vec<i32>>) -> Self
pub fn set_protocols(self, input: Option<Vec<i32>>) -> Self
The protocols to inspect for.
sourcepub fn get_protocols(&self) -> &Option<Vec<i32>>
pub fn get_protocols(&self) -> &Option<Vec<i32>>
The protocols to inspect for.
sourcepub fn source_ports(
self,
input: RuleGroupSourceStatelessRuleMatchAttributesSourcePorts
) -> Self
pub fn source_ports( self, input: RuleGroupSourceStatelessRuleMatchAttributesSourcePorts ) -> Self
Appends an item to source_ports
.
To override the contents of this collection use set_source_ports
.
A list of port ranges to specify the source ports to inspect for.
sourcepub fn set_source_ports(
self,
input: Option<Vec<RuleGroupSourceStatelessRuleMatchAttributesSourcePorts>>
) -> Self
pub fn set_source_ports( self, input: Option<Vec<RuleGroupSourceStatelessRuleMatchAttributesSourcePorts>> ) -> Self
A list of port ranges to specify the source ports to inspect for.
sourcepub fn get_source_ports(
&self
) -> &Option<Vec<RuleGroupSourceStatelessRuleMatchAttributesSourcePorts>>
pub fn get_source_ports( &self ) -> &Option<Vec<RuleGroupSourceStatelessRuleMatchAttributesSourcePorts>>
A list of port ranges to specify the source ports to inspect for.
sourcepub fn sources(
self,
input: RuleGroupSourceStatelessRuleMatchAttributesSources
) -> Self
pub fn sources( self, input: RuleGroupSourceStatelessRuleMatchAttributesSources ) -> Self
Appends an item to sources
.
To override the contents of this collection use set_sources
.
The source IP addresses and address ranges to inspect for, in CIDR notation.
sourcepub fn set_sources(
self,
input: Option<Vec<RuleGroupSourceStatelessRuleMatchAttributesSources>>
) -> Self
pub fn set_sources( self, input: Option<Vec<RuleGroupSourceStatelessRuleMatchAttributesSources>> ) -> Self
The source IP addresses and address ranges to inspect for, in CIDR notation.
sourcepub fn get_sources(
&self
) -> &Option<Vec<RuleGroupSourceStatelessRuleMatchAttributesSources>>
pub fn get_sources( &self ) -> &Option<Vec<RuleGroupSourceStatelessRuleMatchAttributesSources>>
The source IP addresses and address ranges to inspect for, in CIDR notation.
sourcepub fn tcp_flags(
self,
input: RuleGroupSourceStatelessRuleMatchAttributesTcpFlags
) -> Self
pub fn tcp_flags( self, input: RuleGroupSourceStatelessRuleMatchAttributesTcpFlags ) -> Self
Appends an item to tcp_flags
.
To override the contents of this collection use set_tcp_flags
.
The TCP flags and masks to inspect for.
sourcepub fn set_tcp_flags(
self,
input: Option<Vec<RuleGroupSourceStatelessRuleMatchAttributesTcpFlags>>
) -> Self
pub fn set_tcp_flags( self, input: Option<Vec<RuleGroupSourceStatelessRuleMatchAttributesTcpFlags>> ) -> Self
The TCP flags and masks to inspect for.
sourcepub fn get_tcp_flags(
&self
) -> &Option<Vec<RuleGroupSourceStatelessRuleMatchAttributesTcpFlags>>
pub fn get_tcp_flags( &self ) -> &Option<Vec<RuleGroupSourceStatelessRuleMatchAttributesTcpFlags>>
The TCP flags and masks to inspect for.
sourcepub fn build(self) -> RuleGroupSourceStatelessRuleMatchAttributes
pub fn build(self) -> RuleGroupSourceStatelessRuleMatchAttributes
Consumes the builder and constructs a RuleGroupSourceStatelessRuleMatchAttributes
.
Trait Implementations§
source§impl Clone for RuleGroupSourceStatelessRuleMatchAttributesBuilder
impl Clone for RuleGroupSourceStatelessRuleMatchAttributesBuilder
source§fn clone(&self) -> RuleGroupSourceStatelessRuleMatchAttributesBuilder
fn clone(&self) -> RuleGroupSourceStatelessRuleMatchAttributesBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for RuleGroupSourceStatelessRuleMatchAttributesBuilder
impl Default for RuleGroupSourceStatelessRuleMatchAttributesBuilder
source§fn default() -> RuleGroupSourceStatelessRuleMatchAttributesBuilder
fn default() -> RuleGroupSourceStatelessRuleMatchAttributesBuilder
source§impl PartialEq for RuleGroupSourceStatelessRuleMatchAttributesBuilder
impl PartialEq for RuleGroupSourceStatelessRuleMatchAttributesBuilder
source§fn eq(&self, other: &RuleGroupSourceStatelessRuleMatchAttributesBuilder) -> bool
fn eq(&self, other: &RuleGroupSourceStatelessRuleMatchAttributesBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.