@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CustomRoutingDestinationDescription extends Object implements Serializable, Cloneable, StructuredPojo
For a custom routing accelerator, describes the port range and protocol for all endpoints (virtual private cloud subnets) in an endpoint group to accept client traffic on.
| Constructor and Description |
|---|
CustomRoutingDestinationDescription() |
| Modifier and Type | Method and Description |
|---|---|
CustomRoutingDestinationDescription |
clone() |
boolean |
equals(Object obj) |
Integer |
getFromPort()
The first port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing
accelerator.
|
List<String> |
getProtocols()
The protocol for the endpoint group that is associated with a custom routing accelerator.
|
Integer |
getToPort()
The last port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing
accelerator.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setFromPort(Integer fromPort)
The first port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing
accelerator.
|
void |
setProtocols(Collection<String> protocols)
The protocol for the endpoint group that is associated with a custom routing accelerator.
|
void |
setToPort(Integer toPort)
The last port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing
accelerator.
|
String |
toString()
Returns a string representation of this object.
|
CustomRoutingDestinationDescription |
withFromPort(Integer fromPort)
The first port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing
accelerator.
|
CustomRoutingDestinationDescription |
withProtocols(Collection<String> protocols)
The protocol for the endpoint group that is associated with a custom routing accelerator.
|
CustomRoutingDestinationDescription |
withProtocols(Protocol... protocols)
The protocol for the endpoint group that is associated with a custom routing accelerator.
|
CustomRoutingDestinationDescription |
withProtocols(String... protocols)
The protocol for the endpoint group that is associated with a custom routing accelerator.
|
CustomRoutingDestinationDescription |
withToPort(Integer toPort)
The last port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing
accelerator.
|
public void setFromPort(Integer fromPort)
The first port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing accelerator.
fromPort - The first port, inclusive, in the range of ports for the endpoint group that is associated with a custom
routing accelerator.public Integer getFromPort()
The first port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing accelerator.
public CustomRoutingDestinationDescription withFromPort(Integer fromPort)
The first port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing accelerator.
fromPort - The first port, inclusive, in the range of ports for the endpoint group that is associated with a custom
routing accelerator.public void setToPort(Integer toPort)
The last port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing accelerator.
toPort - The last port, inclusive, in the range of ports for the endpoint group that is associated with a custom
routing accelerator.public Integer getToPort()
The last port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing accelerator.
public CustomRoutingDestinationDescription withToPort(Integer toPort)
The last port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing accelerator.
toPort - The last port, inclusive, in the range of ports for the endpoint group that is associated with a custom
routing accelerator.public List<String> getProtocols()
The protocol for the endpoint group that is associated with a custom routing accelerator. The protocol can be either TCP or UDP.
Protocolpublic void setProtocols(Collection<String> protocols)
The protocol for the endpoint group that is associated with a custom routing accelerator. The protocol can be either TCP or UDP.
protocols - The protocol for the endpoint group that is associated with a custom routing accelerator. The protocol can
be either TCP or UDP.Protocolpublic CustomRoutingDestinationDescription withProtocols(String... protocols)
The protocol for the endpoint group that is associated with a custom routing accelerator. The protocol can be either TCP or UDP.
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 protocol for the endpoint group that is associated with a custom routing accelerator. The protocol can
be either TCP or UDP.Protocolpublic CustomRoutingDestinationDescription withProtocols(Collection<String> protocols)
The protocol for the endpoint group that is associated with a custom routing accelerator. The protocol can be either TCP or UDP.
protocols - The protocol for the endpoint group that is associated with a custom routing accelerator. The protocol can
be either TCP or UDP.Protocolpublic CustomRoutingDestinationDescription withProtocols(Protocol... protocols)
The protocol for the endpoint group that is associated with a custom routing accelerator. The protocol can be either TCP or UDP.
protocols - The protocol for the endpoint group that is associated with a custom routing accelerator. The protocol can
be either TCP or UDP.Protocolpublic String toString()
toString in class ObjectObject.toString()public CustomRoutingDestinationDescription clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.