@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AnalysisPacketHeader extends Object implements Serializable, Cloneable
Describes a header. Reflects any changes made by a component as traffic passes through. The fields of an inbound header are null except for the first component of a path.
Constructor and Description |
---|
AnalysisPacketHeader() |
Modifier and Type | Method and Description |
---|---|
AnalysisPacketHeader |
clone() |
boolean |
equals(Object obj) |
List<String> |
getDestinationAddresses()
The destination addresses.
|
List<PortRange> |
getDestinationPortRanges()
The destination port ranges.
|
String |
getProtocol()
The protocol.
|
List<String> |
getSourceAddresses()
The source addresses.
|
List<PortRange> |
getSourcePortRanges()
The source port ranges.
|
int |
hashCode() |
void |
setDestinationAddresses(Collection<String> destinationAddresses)
The destination addresses.
|
void |
setDestinationPortRanges(Collection<PortRange> destinationPortRanges)
The destination port ranges.
|
void |
setProtocol(String protocol)
The protocol.
|
void |
setSourceAddresses(Collection<String> sourceAddresses)
The source addresses.
|
void |
setSourcePortRanges(Collection<PortRange> sourcePortRanges)
The source port ranges.
|
String |
toString()
Returns a string representation of this object.
|
AnalysisPacketHeader |
withDestinationAddresses(Collection<String> destinationAddresses)
The destination addresses.
|
AnalysisPacketHeader |
withDestinationAddresses(String... destinationAddresses)
The destination addresses.
|
AnalysisPacketHeader |
withDestinationPortRanges(Collection<PortRange> destinationPortRanges)
The destination port ranges.
|
AnalysisPacketHeader |
withDestinationPortRanges(PortRange... destinationPortRanges)
The destination port ranges.
|
AnalysisPacketHeader |
withProtocol(String protocol)
The protocol.
|
AnalysisPacketHeader |
withSourceAddresses(Collection<String> sourceAddresses)
The source addresses.
|
AnalysisPacketHeader |
withSourceAddresses(String... sourceAddresses)
The source addresses.
|
AnalysisPacketHeader |
withSourcePortRanges(Collection<PortRange> sourcePortRanges)
The source port ranges.
|
AnalysisPacketHeader |
withSourcePortRanges(PortRange... sourcePortRanges)
The source port ranges.
|
public List<String> getDestinationAddresses()
The destination addresses.
public void setDestinationAddresses(Collection<String> destinationAddresses)
The destination addresses.
destinationAddresses
- The destination addresses.public AnalysisPacketHeader 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 AnalysisPacketHeader withDestinationAddresses(Collection<String> destinationAddresses)
The destination addresses.
destinationAddresses
- The destination addresses.public List<PortRange> getDestinationPortRanges()
The destination port ranges.
public void setDestinationPortRanges(Collection<PortRange> destinationPortRanges)
The destination port ranges.
destinationPortRanges
- The destination port ranges.public AnalysisPacketHeader withDestinationPortRanges(PortRange... destinationPortRanges)
The destination port ranges.
NOTE: This method appends the values to the existing list (if any). Use
setDestinationPortRanges(java.util.Collection)
or
withDestinationPortRanges(java.util.Collection)
if you want to override the existing values.
destinationPortRanges
- The destination port ranges.public AnalysisPacketHeader withDestinationPortRanges(Collection<PortRange> destinationPortRanges)
The destination port ranges.
destinationPortRanges
- The destination port ranges.public void setProtocol(String protocol)
The protocol.
protocol
- The protocol.public String getProtocol()
The protocol.
public AnalysisPacketHeader withProtocol(String protocol)
The protocol.
protocol
- The protocol.public List<String> getSourceAddresses()
The source addresses.
public void setSourceAddresses(Collection<String> sourceAddresses)
The source addresses.
sourceAddresses
- The source addresses.public AnalysisPacketHeader 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 AnalysisPacketHeader withSourceAddresses(Collection<String> sourceAddresses)
The source addresses.
sourceAddresses
- The source addresses.public List<PortRange> getSourcePortRanges()
The source port ranges.
public void setSourcePortRanges(Collection<PortRange> sourcePortRanges)
The source port ranges.
sourcePortRanges
- The source port ranges.public AnalysisPacketHeader withSourcePortRanges(PortRange... sourcePortRanges)
The source port ranges.
NOTE: This method appends the values to the existing list (if any). Use
setSourcePortRanges(java.util.Collection)
or withSourcePortRanges(java.util.Collection)
if you
want to override the existing values.
sourcePortRanges
- The source port ranges.public AnalysisPacketHeader withSourcePortRanges(Collection<PortRange> sourcePortRanges)
The source port ranges.
sourcePortRanges
- The source port ranges.public String toString()
toString
in class Object
Object.toString()
public AnalysisPacketHeader clone()