Struct aws_sdk_networkfirewall::model::match_attributes::Builder
source · [−]pub struct Builder { /* private fields */ }
Expand description
A builder for MatchAttributes
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn sources(self, input: Address) -> Self
pub fn sources(self, input: Address) -> 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. If not specified, this matches with any source address.
sourcepub fn set_sources(self, input: Option<Vec<Address>>) -> Self
pub fn set_sources(self, input: Option<Vec<Address>>) -> Self
The source IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any source address.
sourcepub fn destinations(self, input: Address) -> Self
pub fn destinations(self, input: Address) -> 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. If not specified, this matches with any destination address.
sourcepub fn set_destinations(self, input: Option<Vec<Address>>) -> Self
pub fn set_destinations(self, input: Option<Vec<Address>>) -> Self
The destination IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any destination address.
sourcepub fn source_ports(self, input: PortRange) -> Self
pub fn source_ports(self, input: PortRange) -> Self
Appends an item to source_ports
.
To override the contents of this collection use set_source_ports
.
The source ports to inspect for. If not specified, this matches with any source port. This setting is only used for protocols 6 (TCP) and 17 (UDP).
You can specify individual ports, for example 1994
and you can specify port ranges, for example 1990:1994
.
sourcepub fn set_source_ports(self, input: Option<Vec<PortRange>>) -> Self
pub fn set_source_ports(self, input: Option<Vec<PortRange>>) -> Self
The source ports to inspect for. If not specified, this matches with any source port. This setting is only used for protocols 6 (TCP) and 17 (UDP).
You can specify individual ports, for example 1994
and you can specify port ranges, for example 1990:1994
.
sourcepub fn destination_ports(self, input: PortRange) -> Self
pub fn destination_ports(self, input: PortRange) -> Self
Appends an item to destination_ports
.
To override the contents of this collection use set_destination_ports
.
The destination ports to inspect for. If not specified, this matches with any destination port. This setting is only used for protocols 6 (TCP) and 17 (UDP).
You can specify individual ports, for example 1994
and you can specify port ranges, for example 1990:1994
.
sourcepub fn set_destination_ports(self, input: Option<Vec<PortRange>>) -> Self
pub fn set_destination_ports(self, input: Option<Vec<PortRange>>) -> Self
The destination ports to inspect for. If not specified, this matches with any destination port. This setting is only used for protocols 6 (TCP) and 17 (UDP).
You can specify individual ports, for example 1994
and you can specify port ranges, for example 1990:1994
.
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, specified using each protocol's assigned internet protocol number (IANA). If not specified, this matches with any protocol.
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, specified using each protocol's assigned internet protocol number (IANA). If not specified, this matches with any protocol.
sourcepub fn tcp_flags(self, input: TcpFlagField) -> Self
pub fn tcp_flags(self, input: TcpFlagField) -> 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. If not specified, this matches with any settings. This setting is only used for protocol 6 (TCP).
sourcepub fn set_tcp_flags(self, input: Option<Vec<TcpFlagField>>) -> Self
pub fn set_tcp_flags(self, input: Option<Vec<TcpFlagField>>) -> Self
The TCP flags and masks to inspect for. If not specified, this matches with any settings. This setting is only used for protocol 6 (TCP).
sourcepub fn build(self) -> MatchAttributes
pub fn build(self) -> MatchAttributes
Consumes the builder and constructs a MatchAttributes
.