Class Route
- java.lang.Object
-
- com.amazonaws.services.ec2.model.Route
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Route extends Object implements Serializable, Cloneable
Describes a route in a route table.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Route()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Routeclone()booleanequals(Object obj)StringgetDestinationCidrBlock()The CIDR block used for the destination match.StringgetDestinationPrefixListId()The prefix of the AWS service.StringgetGatewayId()The ID of a gateway attached to your VPC.StringgetInstanceId()The ID of a NAT instance in your VPC.StringgetInstanceOwnerId()The AWS account ID of the owner of the instance.StringgetNatGatewayId()The ID of a NAT gateway.StringgetNetworkInterfaceId()The ID of the network interface.StringgetOrigin()Describes how the route was created.StringgetState()The state of the route.StringgetVpcPeeringConnectionId()The ID of the VPC peering connection.inthashCode()voidsetDestinationCidrBlock(String destinationCidrBlock)The CIDR block used for the destination match.voidsetDestinationPrefixListId(String destinationPrefixListId)The prefix of the AWS service.voidsetGatewayId(String gatewayId)The ID of a gateway attached to your VPC.voidsetInstanceId(String instanceId)The ID of a NAT instance in your VPC.voidsetInstanceOwnerId(String instanceOwnerId)The AWS account ID of the owner of the instance.voidsetNatGatewayId(String natGatewayId)The ID of a NAT gateway.voidsetNetworkInterfaceId(String networkInterfaceId)The ID of the network interface.voidsetOrigin(RouteOrigin origin)Describes how the route was created.voidsetOrigin(String origin)Describes how the route was created.voidsetState(RouteState state)The state of the route.voidsetState(String state)The state of the route.voidsetVpcPeeringConnectionId(String vpcPeeringConnectionId)The ID of the VPC peering connection.StringtoString()Returns a string representation of this object; useful for testing and debugging.RoutewithDestinationCidrBlock(String destinationCidrBlock)The CIDR block used for the destination match.RoutewithDestinationPrefixListId(String destinationPrefixListId)The prefix of the AWS service.RoutewithGatewayId(String gatewayId)The ID of a gateway attached to your VPC.RoutewithInstanceId(String instanceId)The ID of a NAT instance in your VPC.RoutewithInstanceOwnerId(String instanceOwnerId)The AWS account ID of the owner of the instance.RoutewithNatGatewayId(String natGatewayId)The ID of a NAT gateway.RoutewithNetworkInterfaceId(String networkInterfaceId)The ID of the network interface.RoutewithOrigin(RouteOrigin origin)Describes how the route was created.RoutewithOrigin(String origin)Describes how the route was created.RoutewithState(RouteState state)The state of the route.RoutewithState(String state)The state of the route.RoutewithVpcPeeringConnectionId(String vpcPeeringConnectionId)The ID of the VPC peering connection.
-
-
-
Method Detail
-
setDestinationCidrBlock
public void setDestinationCidrBlock(String destinationCidrBlock)
The CIDR block used for the destination match.
- Parameters:
destinationCidrBlock- The CIDR block used for the destination match.
-
getDestinationCidrBlock
public String getDestinationCidrBlock()
The CIDR block used for the destination match.
- Returns:
- The CIDR block used for the destination match.
-
withDestinationCidrBlock
public Route withDestinationCidrBlock(String destinationCidrBlock)
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
public void setDestinationPrefixListId(String destinationPrefixListId)
The prefix of the AWS service.
- Parameters:
destinationPrefixListId- The prefix of the AWS service.
-
getDestinationPrefixListId
public String getDestinationPrefixListId()
The prefix of the AWS service.
- Returns:
- The prefix of the AWS service.
-
withDestinationPrefixListId
public Route withDestinationPrefixListId(String destinationPrefixListId)
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
public void setGatewayId(String gatewayId)
The ID of a gateway attached to your VPC.
- Parameters:
gatewayId- The ID of a gateway attached to your VPC.
-
getGatewayId
public String getGatewayId()
The ID of a gateway attached to your VPC.
- Returns:
- The ID of a gateway attached to your VPC.
-
withGatewayId
public Route withGatewayId(String gatewayId)
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
public void setInstanceId(String instanceId)
The ID of a NAT instance in your VPC.
- Parameters:
instanceId- The ID of a NAT instance in your VPC.
-
getInstanceId
public String getInstanceId()
The ID of a NAT instance in your VPC.
- Returns:
- The ID of a NAT instance in your VPC.
-
withInstanceId
public Route withInstanceId(String instanceId)
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
public void setInstanceOwnerId(String instanceOwnerId)
The AWS account ID of the owner of the instance.
- Parameters:
instanceOwnerId- The AWS account ID of the owner of the instance.
-
getInstanceOwnerId
public String getInstanceOwnerId()
The AWS account ID of the owner of the instance.
- Returns:
- The AWS account ID of the owner of the instance.
-
withInstanceOwnerId
public Route withInstanceOwnerId(String instanceOwnerId)
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
public void setNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
- Parameters:
networkInterfaceId- The ID of the network interface.
-
getNetworkInterfaceId
public String getNetworkInterfaceId()
The ID of the network interface.
- Returns:
- The ID of the network interface.
-
withNetworkInterfaceId
public Route withNetworkInterfaceId(String networkInterfaceId)
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
public void setVpcPeeringConnectionId(String vpcPeeringConnectionId)
The ID of the VPC peering connection.
- Parameters:
vpcPeeringConnectionId- The ID of the VPC peering connection.
-
getVpcPeeringConnectionId
public String getVpcPeeringConnectionId()
The ID of the VPC peering connection.
- Returns:
- The ID of the VPC peering connection.
-
withVpcPeeringConnectionId
public Route withVpcPeeringConnectionId(String vpcPeeringConnectionId)
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
public void setNatGatewayId(String natGatewayId)
The ID of a NAT gateway.
- Parameters:
natGatewayId- The ID of a NAT gateway.
-
getNatGatewayId
public String getNatGatewayId()
The ID of a NAT gateway.
- Returns:
- The ID of a NAT gateway.
-
withNatGatewayId
public Route withNatGatewayId(String natGatewayId)
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
public void setState(String state)
The state of the route. The
blackholestate 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. Theblackholestate 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:
RouteState
-
getState
public String getState()
The state of the route. The
blackholestate 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
blackholestate 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:
RouteState
-
withState
public Route withState(String state)
The state of the route. The
blackholestate 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. Theblackholestate 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:
RouteState
-
setState
public void setState(RouteState state)
The state of the route. The
blackholestate 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. Theblackholestate 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:
RouteState
-
withState
public Route withState(RouteState state)
The state of the route. The
blackholestate 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. Theblackholestate 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:
RouteState
-
setOrigin
public void setOrigin(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.
- 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:
RouteOrigin
-
-
getOrigin
public 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.
- 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:
RouteOrigin
-
-
withOrigin
public Route withOrigin(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.
- 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:
RouteOrigin
-
-
setOrigin
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.
- 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:
RouteOrigin
-
-
withOrigin
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.
- 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:
RouteOrigin
-
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-