@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FirewallStatelessRule extends Object implements Serializable, Cloneable
Describes a stateless rule.
| Constructor and Description | 
|---|
| FirewallStatelessRule() | 
| Modifier and Type | Method and Description | 
|---|---|
| FirewallStatelessRule | clone() | 
| boolean | equals(Object obj) | 
| List<PortRange> | getDestinationPorts()
 The destination ports. | 
| List<String> | getDestinations()
 The destination IP addresses, in CIDR notation. | 
| Integer | getPriority()
 The rule priority. | 
| List<Integer> | getProtocols()
 The protocols. | 
| String | getRuleAction()
 The rule action. | 
| String | getRuleGroupArn()
 The ARN of the stateless rule group. | 
| List<PortRange> | getSourcePorts()
 The source ports. | 
| List<String> | getSources()
 The source IP addresses, in CIDR notation. | 
| int | hashCode() | 
| void | setDestinationPorts(Collection<PortRange> destinationPorts)
 The destination ports. | 
| void | setDestinations(Collection<String> destinations)
 The destination IP addresses, in CIDR notation. | 
| void | setPriority(Integer priority)
 The rule priority. | 
| void | setProtocols(Collection<Integer> protocols)
 The protocols. | 
| void | setRuleAction(String ruleAction)
 The rule action. | 
| void | setRuleGroupArn(String ruleGroupArn)
 The ARN of the stateless rule group. | 
| void | setSourcePorts(Collection<PortRange> sourcePorts)
 The source ports. | 
| void | setSources(Collection<String> sources)
 The source IP addresses, in CIDR notation. | 
| String | toString()Returns a string representation of this object. | 
| FirewallStatelessRule | withDestinationPorts(Collection<PortRange> destinationPorts)
 The destination ports. | 
| FirewallStatelessRule | withDestinationPorts(PortRange... destinationPorts)
 The destination ports. | 
| FirewallStatelessRule | withDestinations(Collection<String> destinations)
 The destination IP addresses, in CIDR notation. | 
| FirewallStatelessRule | withDestinations(String... destinations)
 The destination IP addresses, in CIDR notation. | 
| FirewallStatelessRule | withPriority(Integer priority)
 The rule priority. | 
| FirewallStatelessRule | withProtocols(Collection<Integer> protocols)
 The protocols. | 
| FirewallStatelessRule | withProtocols(Integer... protocols)
 The protocols. | 
| FirewallStatelessRule | withRuleAction(String ruleAction)
 The rule action. | 
| FirewallStatelessRule | withRuleGroupArn(String ruleGroupArn)
 The ARN of the stateless rule group. | 
| FirewallStatelessRule | withSourcePorts(Collection<PortRange> sourcePorts)
 The source ports. | 
| FirewallStatelessRule | withSourcePorts(PortRange... sourcePorts)
 The source ports. | 
| FirewallStatelessRule | withSources(Collection<String> sources)
 The source IP addresses, in CIDR notation. | 
| FirewallStatelessRule | withSources(String... sources)
 The source IP addresses, in CIDR notation. | 
public void setRuleGroupArn(String ruleGroupArn)
The ARN of the stateless rule group.
ruleGroupArn - The ARN of the stateless rule group.public String getRuleGroupArn()
The ARN of the stateless rule group.
public FirewallStatelessRule withRuleGroupArn(String ruleGroupArn)
The ARN of the stateless rule group.
ruleGroupArn - The ARN of the stateless rule group.public List<String> getSources()
The source IP addresses, in CIDR notation.
public void setSources(Collection<String> sources)
The source IP addresses, in CIDR notation.
sources - The source IP addresses, in CIDR notation.public FirewallStatelessRule withSources(String... sources)
The source IP addresses, 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, in CIDR notation.public FirewallStatelessRule withSources(Collection<String> sources)
The source IP addresses, in CIDR notation.
sources - The source IP addresses, in CIDR notation.public List<String> getDestinations()
The destination IP addresses, in CIDR notation.
public void setDestinations(Collection<String> destinations)
The destination IP addresses, in CIDR notation.
destinations - The destination IP addresses, in CIDR notation.public FirewallStatelessRule withDestinations(String... destinations)
The destination IP addresses, 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, in CIDR notation.public FirewallStatelessRule withDestinations(Collection<String> destinations)
The destination IP addresses, in CIDR notation.
destinations - The destination IP addresses, in CIDR notation.public void setSourcePorts(Collection<PortRange> sourcePorts)
The source ports.
sourcePorts - The source ports.public FirewallStatelessRule withSourcePorts(PortRange... sourcePorts)
The source ports.
 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.public FirewallStatelessRule withSourcePorts(Collection<PortRange> sourcePorts)
The source ports.
sourcePorts - The source ports.public List<PortRange> getDestinationPorts()
The destination ports.
public void setDestinationPorts(Collection<PortRange> destinationPorts)
The destination ports.
destinationPorts - The destination ports.public FirewallStatelessRule withDestinationPorts(PortRange... destinationPorts)
The destination ports.
 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.public FirewallStatelessRule withDestinationPorts(Collection<PortRange> destinationPorts)
The destination ports.
destinationPorts - The destination ports.public void setProtocols(Collection<Integer> protocols)
The protocols.
protocols - The protocols.public FirewallStatelessRule withProtocols(Integer... protocols)
The protocols.
 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.public FirewallStatelessRule withProtocols(Collection<Integer> protocols)
The protocols.
protocols - The protocols.public void setRuleAction(String ruleAction)
 The rule action. The possible values are pass, drop, and forward_to_site.
 
ruleAction - The rule action. The possible values are pass, drop, and
        forward_to_site.public String getRuleAction()
 The rule action. The possible values are pass, drop, and forward_to_site.
 
pass, drop, and
         forward_to_site.public FirewallStatelessRule withRuleAction(String ruleAction)
 The rule action. The possible values are pass, drop, and forward_to_site.
 
ruleAction - The rule action. The possible values are pass, drop, and
        forward_to_site.public void setPriority(Integer priority)
The rule priority.
priority - The rule priority.public Integer getPriority()
The rule priority.
public FirewallStatelessRule withPriority(Integer priority)
The rule priority.
priority - The rule priority.public String toString()
toString in class ObjectObject.toString()public FirewallStatelessRule clone()