@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PacketHeaderStatementRequest extends Object implements Serializable, Cloneable
Describes a packet header statement.
Constructor and Description |
---|
PacketHeaderStatementRequest() |
public List<String> getSourceAddresses()
The source addresses.
public void setSourceAddresses(Collection<String> sourceAddresses)
The source addresses.
sourceAddresses
- The source addresses.public PacketHeaderStatementRequest withSourceAddresses(String... sourceAddresses)
The source addresses.
NOTE: This method appends the values to the existing list (if any). Use
setSourceAddresses(java.util.Collection)
or withSourceAddresses(java.util.Collection)
if you
want to override the existing values.
sourceAddresses
- The source addresses.public PacketHeaderStatementRequest withSourceAddresses(Collection<String> sourceAddresses)
The source addresses.
sourceAddresses
- The source addresses.public List<String> getDestinationAddresses()
The destination addresses.
public void setDestinationAddresses(Collection<String> destinationAddresses)
The destination addresses.
destinationAddresses
- The destination addresses.public PacketHeaderStatementRequest withDestinationAddresses(String... destinationAddresses)
The destination addresses.
NOTE: This method appends the values to the existing list (if any). Use
setDestinationAddresses(java.util.Collection)
or withDestinationAddresses(java.util.Collection)
if you want to override the existing values.
destinationAddresses
- The destination addresses.public PacketHeaderStatementRequest withDestinationAddresses(Collection<String> destinationAddresses)
The destination addresses.
destinationAddresses
- The destination addresses.public void setSourcePorts(Collection<String> sourcePorts)
The source ports.
sourcePorts
- The source ports.public PacketHeaderStatementRequest withSourcePorts(String... 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 PacketHeaderStatementRequest withSourcePorts(Collection<String> sourcePorts)
The source ports.
sourcePorts
- The source ports.public List<String> getDestinationPorts()
The destination ports.
public void setDestinationPorts(Collection<String> destinationPorts)
The destination ports.
destinationPorts
- The destination ports.public PacketHeaderStatementRequest withDestinationPorts(String... 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 PacketHeaderStatementRequest withDestinationPorts(Collection<String> destinationPorts)
The destination ports.
destinationPorts
- The destination ports.public List<String> getSourcePrefixLists()
The source prefix lists.
public void setSourcePrefixLists(Collection<String> sourcePrefixLists)
The source prefix lists.
sourcePrefixLists
- The source prefix lists.public PacketHeaderStatementRequest withSourcePrefixLists(String... sourcePrefixLists)
The source prefix lists.
NOTE: This method appends the values to the existing list (if any). Use
setSourcePrefixLists(java.util.Collection)
or withSourcePrefixLists(java.util.Collection)
if
you want to override the existing values.
sourcePrefixLists
- The source prefix lists.public PacketHeaderStatementRequest withSourcePrefixLists(Collection<String> sourcePrefixLists)
The source prefix lists.
sourcePrefixLists
- The source prefix lists.public List<String> getDestinationPrefixLists()
The destination prefix lists.
public void setDestinationPrefixLists(Collection<String> destinationPrefixLists)
The destination prefix lists.
destinationPrefixLists
- The destination prefix lists.public PacketHeaderStatementRequest withDestinationPrefixLists(String... destinationPrefixLists)
The destination prefix lists.
NOTE: This method appends the values to the existing list (if any). Use
setDestinationPrefixLists(java.util.Collection)
or
withDestinationPrefixLists(java.util.Collection)
if you want to override the existing values.
destinationPrefixLists
- The destination prefix lists.public PacketHeaderStatementRequest withDestinationPrefixLists(Collection<String> destinationPrefixLists)
The destination prefix lists.
destinationPrefixLists
- The destination prefix lists.public List<String> getProtocols()
The protocols.
Protocol
public void setProtocols(Collection<String> protocols)
The protocols.
protocols
- The protocols.Protocol
public PacketHeaderStatementRequest withProtocols(String... 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.Protocol
public PacketHeaderStatementRequest withProtocols(Collection<String> protocols)
The protocols.
protocols
- The protocols.Protocol
public PacketHeaderStatementRequest withProtocols(Protocol... protocols)
The protocols.
protocols
- The protocols.Protocol
public String toString()
toString
in class Object
Object.toString()
public PacketHeaderStatementRequest clone()