@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class NetworkPathComponentDetails extends Object implements Serializable, Cloneable, StructuredPojo
Information about the destination of the next component in the network path.
| Constructor and Description |
|---|
NetworkPathComponentDetails() |
| Modifier and Type | Method and Description |
|---|---|
NetworkPathComponentDetails |
clone() |
boolean |
equals(Object obj) |
List<String> |
getAddress()
The IP addresses of the destination.
|
List<PortRange> |
getPortRanges()
A list of port ranges for the destination.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setAddress(Collection<String> address)
The IP addresses of the destination.
|
void |
setPortRanges(Collection<PortRange> portRanges)
A list of port ranges for the destination.
|
String |
toString()
Returns a string representation of this object.
|
NetworkPathComponentDetails |
withAddress(Collection<String> address)
The IP addresses of the destination.
|
NetworkPathComponentDetails |
withAddress(String... address)
The IP addresses of the destination.
|
NetworkPathComponentDetails |
withPortRanges(Collection<PortRange> portRanges)
A list of port ranges for the destination.
|
NetworkPathComponentDetails |
withPortRanges(PortRange... portRanges)
A list of port ranges for the destination.
|
public List<String> getAddress()
The IP addresses of the destination.
public void setAddress(Collection<String> address)
The IP addresses of the destination.
address - The IP addresses of the destination.public NetworkPathComponentDetails withAddress(String... address)
The IP addresses of the destination.
NOTE: This method appends the values to the existing list (if any). Use
setAddress(java.util.Collection) or withAddress(java.util.Collection) if you want to override
the existing values.
address - The IP addresses of the destination.public NetworkPathComponentDetails withAddress(Collection<String> address)
The IP addresses of the destination.
address - The IP addresses of the destination.public List<PortRange> getPortRanges()
A list of port ranges for the destination.
public void setPortRanges(Collection<PortRange> portRanges)
A list of port ranges for the destination.
portRanges - A list of port ranges for the destination.public NetworkPathComponentDetails withPortRanges(PortRange... portRanges)
A list of port ranges for the destination.
NOTE: This method appends the values to the existing list (if any). Use
setPortRanges(java.util.Collection) or withPortRanges(java.util.Collection) if you want to
override the existing values.
portRanges - A list of port ranges for the destination.public NetworkPathComponentDetails withPortRanges(Collection<PortRange> portRanges)
A list of port ranges for the destination.
portRanges - A list of port ranges for the destination.public String toString()
toString in class ObjectObject.toString()public NetworkPathComponentDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.