@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RuleGroupSourceStatelessRuleMatchAttributes extends Object implements Serializable, Cloneable, StructuredPojo
Criteria for the stateless rule.
| Constructor and Description |
|---|
RuleGroupSourceStatelessRuleMatchAttributes() |
public RuleGroupSourceStatelessRuleMatchAttributes()
public List<RuleGroupSourceStatelessRuleMatchAttributesDestinationPorts> getDestinationPorts()
A list of port ranges to specify the destination ports to inspect for.
public void setDestinationPorts(Collection<RuleGroupSourceStatelessRuleMatchAttributesDestinationPorts> destinationPorts)
A list of port ranges to specify the destination ports to inspect for.
destinationPorts - A list of port ranges to specify the destination ports to inspect for.public RuleGroupSourceStatelessRuleMatchAttributes withDestinationPorts(RuleGroupSourceStatelessRuleMatchAttributesDestinationPorts... destinationPorts)
A list of port ranges to specify the destination ports to inspect for.
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 - A list of port ranges to specify the destination ports to inspect for.public RuleGroupSourceStatelessRuleMatchAttributes withDestinationPorts(Collection<RuleGroupSourceStatelessRuleMatchAttributesDestinationPorts> destinationPorts)
A list of port ranges to specify the destination ports to inspect for.
destinationPorts - A list of port ranges to specify the destination ports to inspect for.public List<RuleGroupSourceStatelessRuleMatchAttributesDestinations> getDestinations()
The destination IP addresses and address ranges to inspect for, in CIDR notation.
public void setDestinations(Collection<RuleGroupSourceStatelessRuleMatchAttributesDestinations> destinations)
The destination IP addresses and address ranges to inspect for, in CIDR notation.
destinations - The destination IP addresses and address ranges to inspect for, in CIDR notation.public RuleGroupSourceStatelessRuleMatchAttributes withDestinations(RuleGroupSourceStatelessRuleMatchAttributesDestinations... destinations)
The destination IP addresses and address ranges to inspect for, in CIDR notation.
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.public RuleGroupSourceStatelessRuleMatchAttributes withDestinations(Collection<RuleGroupSourceStatelessRuleMatchAttributesDestinations> destinations)
The destination IP addresses and address ranges to inspect for, in CIDR notation.
destinations - The destination IP addresses and address ranges to inspect for, in CIDR notation.public List<Integer> getProtocols()
The protocols to inspect for.
public void setProtocols(Collection<Integer> protocols)
The protocols to inspect for.
protocols - The protocols to inspect for.public RuleGroupSourceStatelessRuleMatchAttributes withProtocols(Integer... protocols)
The protocols to inspect for.
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.public RuleGroupSourceStatelessRuleMatchAttributes withProtocols(Collection<Integer> protocols)
The protocols to inspect for.
protocols - The protocols to inspect for.public List<RuleGroupSourceStatelessRuleMatchAttributesSourcePorts> getSourcePorts()
A list of port ranges to specify the source ports to inspect for.
public void setSourcePorts(Collection<RuleGroupSourceStatelessRuleMatchAttributesSourcePorts> sourcePorts)
A list of port ranges to specify the source ports to inspect for.
sourcePorts - A list of port ranges to specify the source ports to inspect for.public RuleGroupSourceStatelessRuleMatchAttributes withSourcePorts(RuleGroupSourceStatelessRuleMatchAttributesSourcePorts... sourcePorts)
A list of port ranges to specify the source ports to inspect for.
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 - A list of port ranges to specify the source ports to inspect for.public RuleGroupSourceStatelessRuleMatchAttributes withSourcePorts(Collection<RuleGroupSourceStatelessRuleMatchAttributesSourcePorts> sourcePorts)
A list of port ranges to specify the source ports to inspect for.
sourcePorts - A list of port ranges to specify the source ports to inspect for.public List<RuleGroupSourceStatelessRuleMatchAttributesSources> getSources()
The source IP addresses and address ranges to inspect for, in CIDR notation.
public void setSources(Collection<RuleGroupSourceStatelessRuleMatchAttributesSources> sources)
The source IP addresses and address ranges to inspect for, in CIDR notation.
sources - The source IP addresses and address ranges to inspect for, in CIDR notation.public RuleGroupSourceStatelessRuleMatchAttributes withSources(RuleGroupSourceStatelessRuleMatchAttributesSources... sources)
The source IP addresses and address ranges to inspect for, in CIDR notation.
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.public RuleGroupSourceStatelessRuleMatchAttributes withSources(Collection<RuleGroupSourceStatelessRuleMatchAttributesSources> sources)
The source IP addresses and address ranges to inspect for, in CIDR notation.
sources - The source IP addresses and address ranges to inspect for, in CIDR notation.public List<RuleGroupSourceStatelessRuleMatchAttributesTcpFlags> getTcpFlags()
The TCP flags and masks to inspect for.
public void setTcpFlags(Collection<RuleGroupSourceStatelessRuleMatchAttributesTcpFlags> tcpFlags)
The TCP flags and masks to inspect for.
tcpFlags - The TCP flags and masks to inspect for.public RuleGroupSourceStatelessRuleMatchAttributes withTcpFlags(RuleGroupSourceStatelessRuleMatchAttributesTcpFlags... tcpFlags)
The TCP flags and masks to inspect for.
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.public RuleGroupSourceStatelessRuleMatchAttributes withTcpFlags(Collection<RuleGroupSourceStatelessRuleMatchAttributesTcpFlags> tcpFlags)
The TCP flags and masks to inspect for.
tcpFlags - The TCP flags and masks to inspect for.public String toString()
toString in class ObjectObject.toString()public RuleGroupSourceStatelessRuleMatchAttributes clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.