@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CustomRoutingDestinationConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
For a custom routing accelerator, sets the port range and protocol for all endpoints (virtual private cloud subnets) in an endpoint group to accept client traffic on.
Constructor and Description |
---|
CustomRoutingDestinationConfiguration() |
Modifier and Type | Method and Description |
---|---|
CustomRoutingDestinationConfiguration |
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.
|
CustomRoutingDestinationConfiguration |
withFromPort(Integer fromPort)
The first port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing
accelerator.
|
CustomRoutingDestinationConfiguration |
withProtocols(Collection<String> protocols)
The protocol for the endpoint group that is associated with a custom routing accelerator.
|
CustomRoutingDestinationConfiguration |
withProtocols(CustomRoutingProtocol... protocols)
The protocol for the endpoint group that is associated with a custom routing accelerator.
|
CustomRoutingDestinationConfiguration |
withProtocols(String... protocols)
The protocol for the endpoint group that is associated with a custom routing accelerator.
|
CustomRoutingDestinationConfiguration |
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 CustomRoutingDestinationConfiguration()
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 CustomRoutingDestinationConfiguration 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 CustomRoutingDestinationConfiguration 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.
CustomRoutingProtocol
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.CustomRoutingProtocol
public CustomRoutingDestinationConfiguration 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.CustomRoutingProtocol
public CustomRoutingDestinationConfiguration 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.CustomRoutingProtocol
public CustomRoutingDestinationConfiguration withProtocols(CustomRoutingProtocol... 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.CustomRoutingProtocol
public String toString()
toString
in class Object
Object.toString()
public CustomRoutingDestinationConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.