public class Route extends Object implements Serializable, Cloneable
Describes a route in a route table.
| Constructor and Description |
|---|
Route() |
| Modifier and Type | Method and Description |
|---|---|
Route |
clone() |
boolean |
equals(Object obj) |
String |
getDestinationCidrBlock()
The CIDR block used for the destination match.
|
String |
getDestinationPrefixListId()
The prefix of the AWS service.
|
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 |
getNatGatewayId()
The ID of a NAT gateway.
|
String |
getNetworkInterfaceId()
The ID of the network interface.
|
String |
getOrigin()
Describes how the route was created.
|
String |
getState()
The state of the route.
|
String |
getVpcPeeringConnectionId()
The ID of the VPC peering connection.
|
int |
hashCode() |
void |
setDestinationCidrBlock(String destinationCidrBlock)
The CIDR block used for the destination match.
|
void |
setDestinationPrefixListId(String destinationPrefixListId)
The prefix of the AWS service.
|
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 |
setNatGatewayId(String natGatewayId)
The ID of a NAT gateway.
|
void |
setNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
|
void |
setOrigin(RouteOrigin origin)
Describes how the route was created.
|
void |
setOrigin(String origin)
Describes how the route was created.
|
void |
setState(RouteState state)
The state of the route.
|
void |
setState(String state)
The state of the route.
|
void |
setVpcPeeringConnectionId(String vpcPeeringConnectionId)
The ID of the VPC peering connection.
|
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 |
withDestinationPrefixListId(String destinationPrefixListId)
The prefix of the AWS service.
|
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 |
withNatGatewayId(String natGatewayId)
The ID of a NAT gateway.
|
Route |
withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
|
Route |
withOrigin(RouteOrigin origin)
Describes how the route was created.
|
Route |
withOrigin(String origin)
Describes how the route was created.
|
Route |
withState(RouteState state)
The state of the route.
|
Route |
withState(String state)
The state of the route.
|
Route |
withVpcPeeringConnectionId(String vpcPeeringConnectionId)
The ID of the VPC peering connection.
|
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 getDestinationPrefixListId()
public void setDestinationPrefixListId(String destinationPrefixListId)
destinationPrefixListId - The prefix of the AWS service.public Route withDestinationPrefixListId(String destinationPrefixListId)
Returns a reference to this object so that method calls can be chained together.
destinationPrefixListId - The prefix of the AWS service.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 getVpcPeeringConnectionId()
public void setVpcPeeringConnectionId(String vpcPeeringConnectionId)
vpcPeeringConnectionId - The ID of the VPC peering connection.public Route withVpcPeeringConnectionId(String vpcPeeringConnectionId)
Returns a reference to this object so that method calls can be chained together.
vpcPeeringConnectionId - The ID of the VPC peering connection.public String getNatGatewayId()
public void setNatGatewayId(String natGatewayId)
natGatewayId - The ID of a NAT gateway.public Route withNatGatewayId(String natGatewayId)
Returns a reference to this object so that method calls can be chained together.
natGatewayId - The ID of a NAT gateway.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).RouteStatepublic 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).RouteStatepublic 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).RouteStatepublic 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).RouteStatepublic 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).RouteStatepublic String getOrigin()
CreateRouteTable indicates that route was
automatically created when the route table was created.CreateRoute indicates that the route was manually
added to the route table.EnableVgwRoutePropagation indicates that the route
was propagated by route propagation.
Constraints:
Allowed Values: CreateRouteTable, CreateRoute, EnableVgwRoutePropagation
CreateRouteTable indicates that route was
automatically created when the route table was created.CreateRoute indicates that the route was manually
added to the route table.EnableVgwRoutePropagation indicates that the route
was propagated by route propagation.RouteOriginpublic void setOrigin(String origin)
CreateRouteTable indicates that route was
automatically created when the route table was created.CreateRoute indicates that the route was manually
added to the route table.EnableVgwRoutePropagation indicates that the route
was propagated by route propagation.
Constraints:
Allowed Values: CreateRouteTable, CreateRoute, EnableVgwRoutePropagation
origin - Describes how the route was created. CreateRouteTable indicates that route was
automatically created when the route table was created.CreateRoute indicates that the route was manually
added to the route table.EnableVgwRoutePropagation indicates that the route
was propagated by route propagation.RouteOriginpublic Route withOrigin(String origin)
CreateRouteTable indicates that route was
automatically created when the route table was created.CreateRoute indicates that the route was manually
added to the route table.EnableVgwRoutePropagation indicates that the route
was propagated by route propagation.Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CreateRouteTable, CreateRoute, EnableVgwRoutePropagation
origin - Describes how the route was created. CreateRouteTable indicates that route was
automatically created when the route table was created.CreateRoute indicates that the route was manually
added to the route table.EnableVgwRoutePropagation indicates that the route
was propagated by route propagation.RouteOriginpublic void setOrigin(RouteOrigin origin)
CreateRouteTable indicates that route was
automatically created when the route table was created.CreateRoute indicates that the route was manually
added to the route table.EnableVgwRoutePropagation indicates that the route
was propagated by route propagation.
Constraints:
Allowed Values: CreateRouteTable, CreateRoute, EnableVgwRoutePropagation
origin - Describes how the route was created. CreateRouteTable indicates that route was
automatically created when the route table was created.CreateRoute indicates that the route was manually
added to the route table.EnableVgwRoutePropagation indicates that the route
was propagated by route propagation.RouteOriginpublic Route withOrigin(RouteOrigin origin)
CreateRouteTable indicates that route was
automatically created when the route table was created.CreateRoute indicates that the route was manually
added to the route table.EnableVgwRoutePropagation indicates that the route
was propagated by route propagation.Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CreateRouteTable, CreateRoute, EnableVgwRoutePropagation
origin - Describes how the route was created. CreateRouteTable indicates that route was
automatically created when the route table was created.CreateRoute indicates that the route was manually
added to the route table.EnableVgwRoutePropagation indicates that the route
was propagated by route propagation.RouteOriginpublic String toString()
toString in class ObjectObject.toString()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.