@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class VirtualRouterSpec extends Object implements Serializable, Cloneable, StructuredPojo
An object that represents the specification of a virtual router.
| Constructor and Description |
|---|
VirtualRouterSpec() |
| Modifier and Type | Method and Description |
|---|---|
VirtualRouterSpec |
clone() |
boolean |
equals(Object obj) |
List<VirtualRouterListener> |
getListeners()
The listeners that the virtual router is expected to receive inbound traffic from.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setListeners(Collection<VirtualRouterListener> listeners)
The listeners that the virtual router is expected to receive inbound traffic from.
|
String |
toString()
Returns a string representation of this object.
|
VirtualRouterSpec |
withListeners(Collection<VirtualRouterListener> listeners)
The listeners that the virtual router is expected to receive inbound traffic from.
|
VirtualRouterSpec |
withListeners(VirtualRouterListener... listeners)
The listeners that the virtual router is expected to receive inbound traffic from.
|
public List<VirtualRouterListener> getListeners()
The listeners that the virtual router is expected to receive inbound traffic from. You can specify one listener.
public void setListeners(Collection<VirtualRouterListener> listeners)
The listeners that the virtual router is expected to receive inbound traffic from. You can specify one listener.
listeners - The listeners that the virtual router is expected to receive inbound traffic from. You can specify one
listener.public VirtualRouterSpec withListeners(VirtualRouterListener... listeners)
The listeners that the virtual router is expected to receive inbound traffic from. You can specify one listener.
NOTE: This method appends the values to the existing list (if any). Use
setListeners(java.util.Collection) or withListeners(java.util.Collection) if you want to
override the existing values.
listeners - The listeners that the virtual router is expected to receive inbound traffic from. You can specify one
listener.public VirtualRouterSpec withListeners(Collection<VirtualRouterListener> listeners)
The listeners that the virtual router is expected to receive inbound traffic from. You can specify one listener.
listeners - The listeners that the virtual router is expected to receive inbound traffic from. You can specify one
listener.public String toString()
toString in class ObjectObject.toString()public VirtualRouterSpec clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.