public class Route extends Object implements Serializable
Describes a route in a route table.
Constructor and Description |
---|
Route() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDestinationCidrBlock()
The CIDR block used for the destination match.
|
String |
getGatewayId()
The ID of a gateway attached to your VPC.
|
String |
getInstanceId()
The ID of a NAT instance in your VPC.
|
String |
getInstanceOwnerId()
The AWS account ID of the owner of the instance.
|
String |
getNetworkInterfaceId()
The ID of the network interface.
|
String |
getOrigin()
Returns the value of the Origin property for this object.
|
String |
getState()
The state of the route.
|
int |
hashCode() |
void |
setDestinationCidrBlock(String destinationCidrBlock)
The CIDR block used for the destination match.
|
void |
setGatewayId(String gatewayId)
The ID of a gateway attached to your VPC.
|
void |
setInstanceId(String instanceId)
The ID of a NAT instance in your VPC.
|
void |
setInstanceOwnerId(String instanceOwnerId)
The AWS account ID of the owner of the instance.
|
void |
setNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
|
void |
setOrigin(RouteOrigin origin)
Sets the value of the Origin property for this object.
|
void |
setOrigin(String origin)
Sets the value of the Origin property for this object.
|
void |
setState(RouteState state)
The state of the route.
|
void |
setState(String state)
The state of the route.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Route |
withDestinationCidrBlock(String destinationCidrBlock)
The CIDR block used for the destination match.
|
Route |
withGatewayId(String gatewayId)
The ID of a gateway attached to your VPC.
|
Route |
withInstanceId(String instanceId)
The ID of a NAT instance in your VPC.
|
Route |
withInstanceOwnerId(String instanceOwnerId)
The AWS account ID of the owner of the instance.
|
Route |
withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
|
Route |
withOrigin(RouteOrigin origin)
Sets the value of the Origin property for this object.
|
Route |
withOrigin(String origin)
Sets the value of the Origin property for this object.
|
Route |
withState(RouteState state)
The state of the route.
|
Route |
withState(String state)
The state of the route.
|
public String getDestinationCidrBlock()
public void setDestinationCidrBlock(String destinationCidrBlock)
destinationCidrBlock
- The CIDR block used for the destination match.public Route withDestinationCidrBlock(String destinationCidrBlock)
Returns a reference to this object so that method calls can be chained together.
destinationCidrBlock
- The CIDR block used for the destination match.public String getGatewayId()
public void setGatewayId(String gatewayId)
gatewayId
- The ID of a gateway attached to your VPC.public Route withGatewayId(String gatewayId)
Returns a reference to this object so that method calls can be chained together.
gatewayId
- The ID of a gateway attached to your VPC.public String getInstanceId()
public void setInstanceId(String instanceId)
instanceId
- The ID of a NAT instance in your VPC.public Route withInstanceId(String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId
- The ID of a NAT instance in your VPC.public String getInstanceOwnerId()
public void setInstanceOwnerId(String instanceOwnerId)
instanceOwnerId
- The AWS account ID of the owner of the instance.public Route withInstanceOwnerId(String instanceOwnerId)
Returns a reference to this object so that method calls can be chained together.
instanceOwnerId
- The AWS account ID of the owner of the instance.public String getNetworkInterfaceId()
public void setNetworkInterfaceId(String networkInterfaceId)
networkInterfaceId
- The ID of the network interface.public Route withNetworkInterfaceId(String networkInterfaceId)
Returns a reference to this object so that method calls can be chained together.
networkInterfaceId
- The ID of the network interface.public String getState()
blackhole
state indicates
that the route's target isn't available (for example, the specified
gateway isn't attached to the VPC, or the specified NAT instance has
been terminated).
Constraints:
Allowed Values: active, blackhole
blackhole
state indicates
that the route's target isn't available (for example, the specified
gateway isn't attached to the VPC, or the specified NAT instance has
been terminated).RouteState
public void setState(String state)
blackhole
state indicates
that the route's target isn't available (for example, the specified
gateway isn't attached to the VPC, or the specified NAT instance has
been terminated).
Constraints:
Allowed Values: active, blackhole
state
- The state of the route. The blackhole
state indicates
that the route's target isn't available (for example, the specified
gateway isn't attached to the VPC, or the specified NAT instance has
been terminated).RouteState
public Route withState(String state)
blackhole
state indicates
that the route's target isn't available (for example, the specified
gateway isn't attached to the VPC, or the specified NAT instance has
been terminated).
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: active, blackhole
state
- The state of the route. The blackhole
state indicates
that the route's target isn't available (for example, the specified
gateway isn't attached to the VPC, or the specified NAT instance has
been terminated).RouteState
public void setState(RouteState state)
blackhole
state indicates
that the route's target isn't available (for example, the specified
gateway isn't attached to the VPC, or the specified NAT instance has
been terminated).
Constraints:
Allowed Values: active, blackhole
state
- The state of the route. The blackhole
state indicates
that the route's target isn't available (for example, the specified
gateway isn't attached to the VPC, or the specified NAT instance has
been terminated).RouteState
public Route withState(RouteState state)
blackhole
state indicates
that the route's target isn't available (for example, the specified
gateway isn't attached to the VPC, or the specified NAT instance has
been terminated).
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: active, blackhole
state
- The state of the route. The blackhole
state indicates
that the route's target isn't available (for example, the specified
gateway isn't attached to the VPC, or the specified NAT instance has
been terminated).RouteState
public String getOrigin()
Constraints:
Allowed Values: CreateRouteTable, CreateRoute, EnableVgwRoutePropagation
RouteOrigin
public void setOrigin(String origin)
Constraints:
Allowed Values: CreateRouteTable, CreateRoute, EnableVgwRoutePropagation
origin
- The new value for the Origin property for this object.RouteOrigin
public Route withOrigin(String origin)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CreateRouteTable, CreateRoute, EnableVgwRoutePropagation
origin
- The new value for the Origin property for this object.RouteOrigin
public void setOrigin(RouteOrigin origin)
Constraints:
Allowed Values: CreateRouteTable, CreateRoute, EnableVgwRoutePropagation
origin
- The new value for the Origin property for this object.RouteOrigin
public Route withOrigin(RouteOrigin origin)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CreateRouteTable, CreateRoute, EnableVgwRoutePropagation
origin
- The new value for the Origin property for this object.RouteOrigin
public String toString()
toString
in class Object
Object.toString()
Copyright © 2016. All rights reserved.