public class Route
extends java.lang.Object
implements java.io.Serializable
Describes a route in a route table.
Constructor and Description |
---|
Route() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDestinationCidrBlock()
The CIDR block used for the destination match.
|
java.lang.String |
getDestinationPrefixListId()
The prefix of the AWS service.
|
java.lang.String |
getGatewayId()
The ID of a gateway attached to your VPC.
|
java.lang.String |
getInstanceId()
The ID of a NAT instance in your VPC.
|
java.lang.String |
getInstanceOwnerId()
The AWS account ID of the owner of the instance.
|
java.lang.String |
getNatGatewayId()
The ID of a NAT gateway.
|
java.lang.String |
getNetworkInterfaceId()
The ID of the network interface.
|
java.lang.String |
getOrigin()
Describes how the route was created.
|
java.lang.String |
getState()
The state of the route.
|
java.lang.String |
getVpcPeeringConnectionId()
The ID of the VPC peering connection.
|
int |
hashCode() |
void |
setDestinationCidrBlock(java.lang.String destinationCidrBlock)
The CIDR block used for the destination match.
|
void |
setDestinationPrefixListId(java.lang.String destinationPrefixListId)
The prefix of the AWS service.
|
void |
setGatewayId(java.lang.String gatewayId)
The ID of a gateway attached to your VPC.
|
void |
setInstanceId(java.lang.String instanceId)
The ID of a NAT instance in your VPC.
|
void |
setInstanceOwnerId(java.lang.String instanceOwnerId)
The AWS account ID of the owner of the instance.
|
void |
setNatGatewayId(java.lang.String natGatewayId)
The ID of a NAT gateway.
|
void |
setNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of the network interface.
|
void |
setOrigin(RouteOrigin origin)
Describes how the route was created.
|
void |
setOrigin(java.lang.String origin)
Describes how the route was created.
|
void |
setState(RouteState state)
The state of the route.
|
void |
setState(java.lang.String state)
The state of the route.
|
void |
setVpcPeeringConnectionId(java.lang.String vpcPeeringConnectionId)
The ID of the VPC peering connection.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Route |
withDestinationCidrBlock(java.lang.String destinationCidrBlock)
The CIDR block used for the destination match.
|
Route |
withDestinationPrefixListId(java.lang.String destinationPrefixListId)
The prefix of the AWS service.
|
Route |
withGatewayId(java.lang.String gatewayId)
The ID of a gateway attached to your VPC.
|
Route |
withInstanceId(java.lang.String instanceId)
The ID of a NAT instance in your VPC.
|
Route |
withInstanceOwnerId(java.lang.String instanceOwnerId)
The AWS account ID of the owner of the instance.
|
Route |
withNatGatewayId(java.lang.String natGatewayId)
The ID of a NAT gateway.
|
Route |
withNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of the network interface.
|
Route |
withOrigin(RouteOrigin origin)
Describes how the route was created.
|
Route |
withOrigin(java.lang.String origin)
Describes how the route was created.
|
Route |
withState(RouteState state)
The state of the route.
|
Route |
withState(java.lang.String state)
The state of the route.
|
Route |
withVpcPeeringConnectionId(java.lang.String vpcPeeringConnectionId)
The ID of the VPC peering connection.
|
public java.lang.String getDestinationCidrBlock()
public void setDestinationCidrBlock(java.lang.String destinationCidrBlock)
destinationCidrBlock
- The CIDR block used for the destination match.public Route withDestinationCidrBlock(java.lang.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 java.lang.String getDestinationPrefixListId()
public void setDestinationPrefixListId(java.lang.String destinationPrefixListId)
destinationPrefixListId
- The prefix of the AWS service.public Route withDestinationPrefixListId(java.lang.String destinationPrefixListId)
Returns a reference to this object so that method calls can be chained together.
destinationPrefixListId
- The prefix of the AWS service.public java.lang.String getGatewayId()
public void setGatewayId(java.lang.String gatewayId)
gatewayId
- The ID of a gateway attached to your VPC.public Route withGatewayId(java.lang.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 java.lang.String getInstanceId()
public void setInstanceId(java.lang.String instanceId)
instanceId
- The ID of a NAT instance in your VPC.public Route withInstanceId(java.lang.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 java.lang.String getInstanceOwnerId()
public void setInstanceOwnerId(java.lang.String instanceOwnerId)
instanceOwnerId
- The AWS account ID of the owner of the instance.public Route withInstanceOwnerId(java.lang.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 java.lang.String getNetworkInterfaceId()
public void setNetworkInterfaceId(java.lang.String networkInterfaceId)
networkInterfaceId
- The ID of the network interface.public Route withNetworkInterfaceId(java.lang.String networkInterfaceId)
Returns a reference to this object so that method calls can be chained together.
networkInterfaceId
- The ID of the network interface.public java.lang.String getVpcPeeringConnectionId()
public void setVpcPeeringConnectionId(java.lang.String vpcPeeringConnectionId)
vpcPeeringConnectionId
- The ID of the VPC peering connection.public Route withVpcPeeringConnectionId(java.lang.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 java.lang.String getNatGatewayId()
public void setNatGatewayId(java.lang.String natGatewayId)
natGatewayId
- The ID of a NAT gateway.public Route withNatGatewayId(java.lang.String natGatewayId)
Returns a reference to this object so that method calls can be chained together.
natGatewayId
- The ID of a NAT gateway.public java.lang.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(java.lang.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(java.lang.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 java.lang.String getOrigin()
CreateRouteTable
- The route was automatically
created when the route table was created.
CreateRoute
- The route was manually added to the
route table.
EnableVgwRoutePropagation
- The
route was propagated by route propagation.
Constraints:
Allowed Values: CreateRouteTable, CreateRoute, EnableVgwRoutePropagation
CreateRouteTable
- The route was automatically
created when the route table was created.
CreateRoute
- The route was manually added to the
route table.
EnableVgwRoutePropagation
- The
route was propagated by route propagation.
RouteOrigin
public void setOrigin(java.lang.String origin)
CreateRouteTable
- The route was automatically
created when the route table was created.
CreateRoute
- The route was manually added to the
route table.
EnableVgwRoutePropagation
- The
route was propagated by route propagation.
Constraints:
Allowed Values: CreateRouteTable, CreateRoute, EnableVgwRoutePropagation
origin
- Describes how the route was created. CreateRouteTable
- The route was automatically
created when the route table was created.
CreateRoute
- The route was manually added to the
route table.
EnableVgwRoutePropagation
- The
route was propagated by route propagation.
RouteOrigin
public Route withOrigin(java.lang.String origin)
CreateRouteTable
- The route was automatically
created when the route table was created.
CreateRoute
- The route was manually added to the
route table.
EnableVgwRoutePropagation
- 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
- The route was automatically
created when the route table was created.
CreateRoute
- The route was manually added to the
route table.
EnableVgwRoutePropagation
- The
route was propagated by route propagation.
RouteOrigin
public void setOrigin(RouteOrigin origin)
CreateRouteTable
- The route was automatically
created when the route table was created.
CreateRoute
- The route was manually added to the
route table.
EnableVgwRoutePropagation
- The
route was propagated by route propagation.
Constraints:
Allowed Values: CreateRouteTable, CreateRoute, EnableVgwRoutePropagation
origin
- Describes how the route was created. CreateRouteTable
- The route was automatically
created when the route table was created.
CreateRoute
- The route was manually added to the
route table.
EnableVgwRoutePropagation
- The
route was propagated by route propagation.
RouteOrigin
public Route withOrigin(RouteOrigin origin)
CreateRouteTable
- The route was automatically
created when the route table was created.
CreateRoute
- The route was manually added to the
route table.
EnableVgwRoutePropagation
- 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
- The route was automatically
created when the route table was created.
CreateRoute
- The route was manually added to the
route table.
EnableVgwRoutePropagation
- The
route was propagated by route propagation.
RouteOrigin
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.