@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MatchAttributes extends Object implements Serializable, Cloneable, StructuredPojo
Criteria for Network Firewall to use to inspect an individual packet in stateless rule inspection. Each match attributes set can include one or more items such as IP address, CIDR range, port number, protocol, and TCP flags.
Constructor and Description |
---|
MatchAttributes() |
Modifier and Type | Method and Description |
---|---|
MatchAttributes |
clone() |
boolean |
equals(Object obj) |
List<PortRange> |
getDestinationPorts()
The destination ports to inspect for.
|
List<Address> |
getDestinations()
The destination IP addresses and address ranges to inspect for, in CIDR notation.
|
List<Integer> |
getProtocols()
The protocols to inspect for, specified using each protocol's assigned internet protocol number (IANA).
|
List<PortRange> |
getSourcePorts()
The source ports to inspect for.
|
List<Address> |
getSources()
The source IP addresses and address ranges to inspect for, in CIDR notation.
|
List<TCPFlagField> |
getTCPFlags()
The TCP flags and masks to inspect for.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDestinationPorts(Collection<PortRange> destinationPorts)
The destination ports to inspect for.
|
void |
setDestinations(Collection<Address> destinations)
The destination IP addresses and address ranges to inspect for, in CIDR notation.
|
void |
setProtocols(Collection<Integer> protocols)
The protocols to inspect for, specified using each protocol's assigned internet protocol number (IANA).
|
void |
setSourcePorts(Collection<PortRange> sourcePorts)
The source ports to inspect for.
|
void |
setSources(Collection<Address> sources)
The source IP addresses and address ranges to inspect for, in CIDR notation.
|
void |
setTCPFlags(Collection<TCPFlagField> tCPFlags)
The TCP flags and masks to inspect for.
|
String |
toString()
Returns a string representation of this object.
|
MatchAttributes |
withDestinationPorts(Collection<PortRange> destinationPorts)
The destination ports to inspect for.
|
MatchAttributes |
withDestinationPorts(PortRange... destinationPorts)
The destination ports to inspect for.
|
MatchAttributes |
withDestinations(Address... destinations)
The destination IP addresses and address ranges to inspect for, in CIDR notation.
|
MatchAttributes |
withDestinations(Collection<Address> destinations)
The destination IP addresses and address ranges to inspect for, in CIDR notation.
|
MatchAttributes |
withProtocols(Collection<Integer> protocols)
The protocols to inspect for, specified using each protocol's assigned internet protocol number (IANA).
|
MatchAttributes |
withProtocols(Integer... protocols)
The protocols to inspect for, specified using each protocol's assigned internet protocol number (IANA).
|
MatchAttributes |
withSourcePorts(Collection<PortRange> sourcePorts)
The source ports to inspect for.
|
MatchAttributes |
withSourcePorts(PortRange... sourcePorts)
The source ports to inspect for.
|
MatchAttributes |
withSources(Address... sources)
The source IP addresses and address ranges to inspect for, in CIDR notation.
|
MatchAttributes |
withSources(Collection<Address> sources)
The source IP addresses and address ranges to inspect for, in CIDR notation.
|
MatchAttributes |
withTCPFlags(Collection<TCPFlagField> tCPFlags)
The TCP flags and masks to inspect for.
|
MatchAttributes |
withTCPFlags(TCPFlagField... tCPFlags)
The TCP flags and masks to inspect for.
|
public List<Address> getSources()
The source IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any source address.
public void setSources(Collection<Address> sources)
The source IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any source address.
sources
- The source IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this
matches with any source address.public MatchAttributes withSources(Address... sources)
The source IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any source address.
NOTE: This method appends the values to the existing list (if any). Use
setSources(java.util.Collection)
or withSources(java.util.Collection)
if you want to override
the existing values.
sources
- The source IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this
matches with any source address.public MatchAttributes withSources(Collection<Address> sources)
The source IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any source address.
sources
- The source IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this
matches with any source address.public List<Address> getDestinations()
The destination IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any destination address.
public void setDestinations(Collection<Address> destinations)
The destination IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any destination address.
destinations
- The destination IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this
matches with any destination address.public MatchAttributes withDestinations(Address... destinations)
The destination IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any destination address.
NOTE: This method appends the values to the existing list (if any). Use
setDestinations(java.util.Collection)
or withDestinations(java.util.Collection)
if you want to
override the existing values.
destinations
- The destination IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this
matches with any destination address.public MatchAttributes withDestinations(Collection<Address> destinations)
The destination IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any destination address.
destinations
- The destination IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this
matches with any destination address.public List<PortRange> getSourcePorts()
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
.
You can specify individual ports, for example 1994
and you can specify port ranges, for
example 1990:1994
.
public void setSourcePorts(Collection<PortRange> sourcePorts)
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
.
sourcePorts
- 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
.
public MatchAttributes withSourcePorts(PortRange... sourcePorts)
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
.
NOTE: This method appends the values to the existing list (if any). Use
setSourcePorts(java.util.Collection)
or withSourcePorts(java.util.Collection)
if you want to
override the existing values.
sourcePorts
- 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
.
public MatchAttributes withSourcePorts(Collection<PortRange> sourcePorts)
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
.
sourcePorts
- 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
.
public List<PortRange> getDestinationPorts()
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
.
You can specify individual ports, for example 1994
and you can specify port ranges, for
example 1990:1994
.
public void setDestinationPorts(Collection<PortRange> destinationPorts)
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
.
destinationPorts
- 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
.
public MatchAttributes withDestinationPorts(PortRange... destinationPorts)
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
.
NOTE: This method appends the values to the existing list (if any). Use
setDestinationPorts(java.util.Collection)
or withDestinationPorts(java.util.Collection)
if you
want to override the existing values.
destinationPorts
- 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
.
public MatchAttributes withDestinationPorts(Collection<PortRange> destinationPorts)
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
.
destinationPorts
- 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
.
public List<Integer> getProtocols()
The protocols to inspect for, specified using each protocol's assigned internet protocol number (IANA). If not specified, this matches with any protocol.
public void setProtocols(Collection<Integer> protocols)
The protocols to inspect for, specified using each protocol's assigned internet protocol number (IANA). If not specified, this matches with any protocol.
protocols
- The protocols to inspect for, specified using each protocol's assigned internet protocol number (IANA). If
not specified, this matches with any protocol.public MatchAttributes withProtocols(Integer... protocols)
The protocols to inspect for, specified using each protocol's assigned internet protocol number (IANA). If not specified, this matches with any protocol.
NOTE: This method appends the values to the existing list (if any). Use
setProtocols(java.util.Collection)
or withProtocols(java.util.Collection)
if you want to
override the existing values.
protocols
- The protocols to inspect for, specified using each protocol's assigned internet protocol number (IANA). If
not specified, this matches with any protocol.public MatchAttributes withProtocols(Collection<Integer> protocols)
The protocols to inspect for, specified using each protocol's assigned internet protocol number (IANA). If not specified, this matches with any protocol.
protocols
- The protocols to inspect for, specified using each protocol's assigned internet protocol number (IANA). If
not specified, this matches with any protocol.public List<TCPFlagField> getTCPFlags()
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).
public void setTCPFlags(Collection<TCPFlagField> tCPFlags)
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).
tCPFlags
- 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).public MatchAttributes withTCPFlags(TCPFlagField... tCPFlags)
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).
NOTE: This method appends the values to the existing list (if any). Use
setTCPFlags(java.util.Collection)
or withTCPFlags(java.util.Collection)
if you want to override
the existing values.
tCPFlags
- 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).public MatchAttributes withTCPFlags(Collection<TCPFlagField> tCPFlags)
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).
tCPFlags
- 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).public String toString()
toString
in class Object
Object.toString()
public MatchAttributes clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.