@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class NetworkRoute extends Object implements Serializable, Cloneable, StructuredPojo
Describes a network route.
Constructor and Description |
---|
NetworkRoute() |
Modifier and Type | Method and Description |
---|---|
NetworkRoute |
clone() |
boolean |
equals(Object obj) |
String |
getDestinationCidrBlock()
A unique identifier for the route, such as a CIDR block.
|
List<NetworkRouteDestination> |
getDestinations()
The destinations.
|
String |
getPrefixListId()
The ID of the prefix list.
|
String |
getState()
The route state.
|
String |
getType()
The route type.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDestinationCidrBlock(String destinationCidrBlock)
A unique identifier for the route, such as a CIDR block.
|
void |
setDestinations(Collection<NetworkRouteDestination> destinations)
The destinations.
|
void |
setPrefixListId(String prefixListId)
The ID of the prefix list.
|
void |
setState(String state)
The route state.
|
void |
setType(String type)
The route type.
|
String |
toString()
Returns a string representation of this object.
|
NetworkRoute |
withDestinationCidrBlock(String destinationCidrBlock)
A unique identifier for the route, such as a CIDR block.
|
NetworkRoute |
withDestinations(Collection<NetworkRouteDestination> destinations)
The destinations.
|
NetworkRoute |
withDestinations(NetworkRouteDestination... destinations)
The destinations.
|
NetworkRoute |
withPrefixListId(String prefixListId)
The ID of the prefix list.
|
NetworkRoute |
withState(RouteState state)
The route state.
|
NetworkRoute |
withState(String state)
The route state.
|
NetworkRoute |
withType(RouteType type)
The route type.
|
NetworkRoute |
withType(String type)
The route type.
|
public void setDestinationCidrBlock(String destinationCidrBlock)
A unique identifier for the route, such as a CIDR block.
destinationCidrBlock
- A unique identifier for the route, such as a CIDR block.public String getDestinationCidrBlock()
A unique identifier for the route, such as a CIDR block.
public NetworkRoute withDestinationCidrBlock(String destinationCidrBlock)
A unique identifier for the route, such as a CIDR block.
destinationCidrBlock
- A unique identifier for the route, such as a CIDR block.public List<NetworkRouteDestination> getDestinations()
The destinations.
public void setDestinations(Collection<NetworkRouteDestination> destinations)
The destinations.
destinations
- The destinations.public NetworkRoute withDestinations(NetworkRouteDestination... destinations)
The destinations.
NOTE: This method appends the values to the existing list (if any). Use
setDestinations(java.util.Collection)
or withDestinations(java.util.Collection)
if you want to
override the existing values.
destinations
- The destinations.public NetworkRoute withDestinations(Collection<NetworkRouteDestination> destinations)
The destinations.
destinations
- The destinations.public void setPrefixListId(String prefixListId)
The ID of the prefix list.
prefixListId
- The ID of the prefix list.public String getPrefixListId()
The ID of the prefix list.
public NetworkRoute withPrefixListId(String prefixListId)
The ID of the prefix list.
prefixListId
- The ID of the prefix list.public void setState(String state)
The route state. The possible values are active
and blackhole
.
state
- The route state. The possible values are active
and blackhole
.RouteState
public String getState()
The route state. The possible values are active
and blackhole
.
active
and blackhole
.RouteState
public NetworkRoute withState(String state)
The route state. The possible values are active
and blackhole
.
state
- The route state. The possible values are active
and blackhole
.RouteState
public NetworkRoute withState(RouteState state)
The route state. The possible values are active
and blackhole
.
state
- The route state. The possible values are active
and blackhole
.RouteState
public void setType(String type)
The route type. The possible values are propagated
and static
.
type
- The route type. The possible values are propagated
and static
.RouteType
public String getType()
The route type. The possible values are propagated
and static
.
propagated
and static
.RouteType
public NetworkRoute withType(String type)
The route type. The possible values are propagated
and static
.
type
- The route type. The possible values are propagated
and static
.RouteType
public NetworkRoute withType(RouteType type)
The route type. The possible values are propagated
and static
.
type
- The route type. The possible values are propagated
and static
.RouteType
public String toString()
toString
in class Object
Object.toString()
public NetworkRoute clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.