Class Route
- All Implemented Interfaces:
Serializable
,Cloneable
Describes a route in a route table.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The CIDR block used for the destination match.The prefix of the AWS service.The ID of a gateway attached to your VPC.The ID of a NAT instance in your VPC.The AWS account ID of the owner of the instance.The ID of a NAT gateway.The ID of the network interface.Describes how the route was created.getState()
The state of the route.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
Describes how the route was created.void
setState
(RouteState state) The state of the route.void
The state of the route.void
setVpcPeeringConnectionId
(String vpcPeeringConnectionId) The ID of the VPC peering connection.toString()
Returns a string representation of this object; useful for testing and debugging.withDestinationCidrBlock
(String destinationCidrBlock) The CIDR block used for the destination match.withDestinationPrefixListId
(String destinationPrefixListId) The prefix of the AWS service.withGatewayId
(String gatewayId) The ID of a gateway attached to your VPC.withInstanceId
(String instanceId) The ID of a NAT instance in your VPC.withInstanceOwnerId
(String instanceOwnerId) The AWS account ID of the owner of the instance.withNatGatewayId
(String natGatewayId) The ID of a NAT gateway.withNetworkInterfaceId
(String networkInterfaceId) The ID of the network interface.withOrigin
(RouteOrigin origin) Describes how the route was created.withOrigin
(String origin) Describes how the route was created.withState
(RouteState state) The state of the route.The state of the route.withVpcPeeringConnectionId
(String vpcPeeringConnectionId) The ID of the VPC peering connection.
-
Constructor Details
-
Route
public Route()
-
-
Method Details
-
setDestinationCidrBlock
The CIDR block used for the destination match.
- Parameters:
destinationCidrBlock
- The CIDR block used for the destination match.
-
getDestinationCidrBlock
The CIDR block used for the destination match.
- Returns:
- The CIDR block used for the destination match.
-
withDestinationCidrBlock
The CIDR block used for the destination match.
- Parameters:
destinationCidrBlock
- The CIDR block used for the destination match.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDestinationPrefixListId
The prefix of the AWS service.
- Parameters:
destinationPrefixListId
- The prefix of the AWS service.
-
getDestinationPrefixListId
The prefix of the AWS service.
- Returns:
- The prefix of the AWS service.
-
withDestinationPrefixListId
The prefix of the AWS service.
- Parameters:
destinationPrefixListId
- The prefix of the AWS service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setGatewayId
The ID of a gateway attached to your VPC.
- Parameters:
gatewayId
- The ID of a gateway attached to your VPC.
-
getGatewayId
The ID of a gateway attached to your VPC.
- Returns:
- The ID of a gateway attached to your VPC.
-
withGatewayId
The ID of a gateway attached to your VPC.
- Parameters:
gatewayId
- The ID of a gateway attached to your VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceId
The ID of a NAT instance in your VPC.
- Parameters:
instanceId
- The ID of a NAT instance in your VPC.
-
getInstanceId
The ID of a NAT instance in your VPC.
- Returns:
- The ID of a NAT instance in your VPC.
-
withInstanceId
The ID of a NAT instance in your VPC.
- Parameters:
instanceId
- The ID of a NAT instance in your VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceOwnerId
The AWS account ID of the owner of the instance.
- Parameters:
instanceOwnerId
- The AWS account ID of the owner of the instance.
-
getInstanceOwnerId
The AWS account ID of the owner of the instance.
- Returns:
- The AWS account ID of the owner of the instance.
-
withInstanceOwnerId
The AWS account ID of the owner of the instance.
- Parameters:
instanceOwnerId
- The AWS account ID of the owner of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNetworkInterfaceId
The ID of the network interface.
- Parameters:
networkInterfaceId
- The ID of the network interface.
-
getNetworkInterfaceId
The ID of the network interface.
- Returns:
- The ID of the network interface.
-
withNetworkInterfaceId
The ID of the network interface.
- Parameters:
networkInterfaceId
- The ID of the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVpcPeeringConnectionId
The ID of the VPC peering connection.
- Parameters:
vpcPeeringConnectionId
- The ID of the VPC peering connection.
-
getVpcPeeringConnectionId
The ID of the VPC peering connection.
- Returns:
- The ID of the VPC peering connection.
-
withVpcPeeringConnectionId
The ID of the VPC peering connection.
- Parameters:
vpcPeeringConnectionId
- The ID of the VPC peering connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNatGatewayId
The ID of a NAT gateway.
- Parameters:
natGatewayId
- The ID of a NAT gateway.
-
getNatGatewayId
The ID of a NAT gateway.
- Returns:
- The ID of a NAT gateway.
-
withNatGatewayId
The ID of a NAT gateway.
- Parameters:
natGatewayId
- The ID of a NAT gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setState
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).- Parameters:
state
- The state of the route. Theblackhole
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).- See Also:
-
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).- Returns:
- 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). - See Also:
-
withState
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).- Parameters:
state
- The state of the route. Theblackhole
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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setState
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).- Parameters:
state
- The state of the route. Theblackhole
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).- See Also:
-
withState
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).- Parameters:
state
- The state of the route. Theblackhole
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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setOrigin
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.
- Parameters:
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.
-
- See Also:
-
-
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.
- Returns:
- 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.
-
- See Also:
-
-
withOrigin
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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
setOrigin
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.
- Parameters:
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.
-
- See Also:
-
-
withOrigin
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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-