public class Route
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a route in a route table.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
destinationCidrBlock
The CIDR block used for the destination match.
|
private java.lang.String |
destinationPrefixListId
The prefix of the AWS service.
|
private java.lang.String |
gatewayId
The ID of a gateway attached to your VPC.
|
private java.lang.String |
instanceId
The ID of a NAT instance in your VPC.
|
private java.lang.String |
instanceOwnerId
The AWS account ID of the owner of the instance.
|
private java.lang.String |
natGatewayId
The ID of a NAT gateway.
|
private java.lang.String |
networkInterfaceId
The ID of the network interface.
|
private java.lang.String |
origin
Describes how the route was created.
|
private java.lang.String |
state
The state of the route.
|
private java.lang.String |
vpcPeeringConnectionId
The ID of the VPC peering connection.
|
Constructor and Description |
---|
Route() |
Modifier and Type | Method and Description |
---|---|
Route |
clone() |
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.
|
private java.lang.String destinationCidrBlock
The CIDR block used for the destination match.
private java.lang.String destinationPrefixListId
The prefix of the AWS service.
private java.lang.String gatewayId
The ID of a gateway attached to your VPC.
private java.lang.String instanceId
The ID of a NAT instance in your VPC.
private java.lang.String instanceOwnerId
The AWS account ID of the owner of the instance.
private java.lang.String networkInterfaceId
The ID of the network interface.
private java.lang.String vpcPeeringConnectionId
The ID of the VPC peering connection.
private java.lang.String natGatewayId
The ID of a NAT gateway.
private java.lang.String 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).
private java.lang.String 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.
public void setDestinationCidrBlock(java.lang.String destinationCidrBlock)
The CIDR block used for the destination match.
destinationCidrBlock
- The CIDR block used for the destination match.public java.lang.String getDestinationCidrBlock()
The CIDR block used for the destination match.
public Route withDestinationCidrBlock(java.lang.String destinationCidrBlock)
The CIDR block used for the destination match.
destinationCidrBlock
- The CIDR block used for the destination match.public void setDestinationPrefixListId(java.lang.String destinationPrefixListId)
The prefix of the AWS service.
destinationPrefixListId
- The prefix of the AWS service.public java.lang.String getDestinationPrefixListId()
The prefix of the AWS service.
public Route withDestinationPrefixListId(java.lang.String destinationPrefixListId)
The prefix of the AWS service.
destinationPrefixListId
- The prefix of the AWS service.public void setGatewayId(java.lang.String gatewayId)
The ID of a gateway attached to your VPC.
gatewayId
- The ID of a gateway attached to your VPC.public java.lang.String getGatewayId()
The ID of a gateway attached to your VPC.
public Route withGatewayId(java.lang.String gatewayId)
The ID of a gateway attached to your VPC.
gatewayId
- The ID of a gateway attached to your VPC.public void setInstanceId(java.lang.String instanceId)
The ID of a NAT instance in your VPC.
instanceId
- The ID of a NAT instance in your VPC.public java.lang.String getInstanceId()
The ID of a NAT instance in your VPC.
public Route withInstanceId(java.lang.String instanceId)
The ID of a NAT instance in your VPC.
instanceId
- The ID of a NAT instance in your VPC.public void setInstanceOwnerId(java.lang.String instanceOwnerId)
The AWS account ID of the owner of the instance.
instanceOwnerId
- The AWS account ID of the owner of the instance.public java.lang.String getInstanceOwnerId()
The AWS account ID of the owner of the instance.
public Route withInstanceOwnerId(java.lang.String instanceOwnerId)
The AWS account ID of the owner of the instance.
instanceOwnerId
- The AWS account ID of the owner of the instance.public void setNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of the network interface.
networkInterfaceId
- The ID of the network interface.public java.lang.String getNetworkInterfaceId()
The ID of the network interface.
public Route withNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of the network interface.
networkInterfaceId
- The ID of the network interface.public void setVpcPeeringConnectionId(java.lang.String vpcPeeringConnectionId)
The ID of the VPC peering connection.
vpcPeeringConnectionId
- The ID of the VPC peering connection.public java.lang.String getVpcPeeringConnectionId()
The ID of the VPC peering connection.
public Route withVpcPeeringConnectionId(java.lang.String vpcPeeringConnectionId)
The ID of the VPC peering connection.
vpcPeeringConnectionId
- The ID of the VPC peering connection.public void setNatGatewayId(java.lang.String natGatewayId)
The ID of a NAT gateway.
natGatewayId
- The ID of a NAT gateway.public java.lang.String getNatGatewayId()
The ID of a NAT gateway.
public Route withNatGatewayId(java.lang.String natGatewayId)
The ID of a NAT gateway.
natGatewayId
- The ID of a NAT gateway.public void setState(java.lang.String 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).
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 getState()
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).
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)
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).
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)
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).
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)
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).
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 setOrigin(java.lang.String 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.
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 getOrigin()
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.
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)
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.
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)
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.
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)
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.
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 boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Route clone()
clone
in class java.lang.Object