@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.
Protocol
public 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.Protocol
public 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.Protocol
public 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.Protocol
public 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.Protocol
public String toString()
toString
in class Object
Object.toString()
public CustomRoutingDestinationDescription clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.