Struct aws_sdk_networkfirewall::model::match_attributes::Builder
source · [−]#[non_exhaustive]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
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more