com.amazonaws.services.ec2.model
Class Route

java.lang.Object
  extended by com.amazonaws.services.ec2.model.Route
All Implemented Interfaces:
java.io.Serializable

public class Route
extends java.lang.Object
implements java.io.Serializable

Describes a route in a route table.

See Also:
Serialized Form

Constructor Summary
Route()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getDestinationCidrBlock()
          The CIDR block used for the destination match.
 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 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 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 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 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 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.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Route

public Route()
Method Detail

getDestinationCidrBlock

public java.lang.String getDestinationCidrBlock()
The CIDR block used for the destination match.

Returns:
The CIDR block used for the destination match.

setDestinationCidrBlock

public void setDestinationCidrBlock(java.lang.String destinationCidrBlock)
The CIDR block used for the destination match.

Parameters:
destinationCidrBlock - The CIDR block used for the destination match.

withDestinationCidrBlock

public Route withDestinationCidrBlock(java.lang.String destinationCidrBlock)
The CIDR block used for the destination match.

Returns a reference to this object so that method calls can be chained together.

Parameters:
destinationCidrBlock - The CIDR block used for the destination match.
Returns:
A reference to this updated object so that method calls can be chained together.

getGatewayId

public java.lang.String getGatewayId()
The ID of a gateway attached to your VPC.

Returns:
The ID of a gateway attached to your VPC.

setGatewayId

public void setGatewayId(java.lang.String gatewayId)
The ID of a gateway attached to your VPC.

Parameters:
gatewayId - The ID of a gateway attached to your VPC.

withGatewayId

public Route withGatewayId(java.lang.String gatewayId)
The ID of a gateway attached to your VPC.

Returns a reference to this object so that method calls can be chained together.

Parameters:
gatewayId - The ID of a gateway attached to your VPC.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceId

public java.lang.String getInstanceId()
The ID of a NAT instance in your VPC.

Returns:
The ID of a NAT instance in your VPC.

setInstanceId

public void setInstanceId(java.lang.String instanceId)
The ID of a NAT instance in your VPC.

Parameters:
instanceId - The ID of a NAT instance in your VPC.

withInstanceId

public Route withInstanceId(java.lang.String instanceId)
The ID of a NAT instance in your VPC.

Returns a reference to this object so that method calls can be chained together.

Parameters:
instanceId - The ID of a NAT instance in your VPC.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceOwnerId

public java.lang.String getInstanceOwnerId()
The AWS account ID of the owner of the instance.

Returns:
The AWS account ID of the owner of the instance.

setInstanceOwnerId

public void setInstanceOwnerId(java.lang.String instanceOwnerId)
The AWS account ID of the owner of the instance.

Parameters:
instanceOwnerId - The AWS account ID of the owner of the instance.

withInstanceOwnerId

public Route withInstanceOwnerId(java.lang.String instanceOwnerId)
The AWS account ID of the owner of the instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
instanceOwnerId - The AWS account ID of the owner of the instance.
Returns:
A reference to this updated object so that method calls can be chained together.

getNetworkInterfaceId

public java.lang.String getNetworkInterfaceId()
The ID of the network interface.

Returns:
The ID of the network interface.

setNetworkInterfaceId

public void setNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of the network interface.

Parameters:
networkInterfaceId - The ID of the network interface.

withNetworkInterfaceId

public Route withNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of the network interface.

Returns a reference to this object so that method calls can be chained together.

Parameters:
networkInterfaceId - The ID of the network interface.
Returns:
A reference to this updated object so that method calls can be chained together.

getVpcPeeringConnectionId

public java.lang.String getVpcPeeringConnectionId()
The ID of the VPC peering connection.

Returns:
The ID of the VPC peering connection.

setVpcPeeringConnectionId

public void setVpcPeeringConnectionId(java.lang.String vpcPeeringConnectionId)
The ID of the VPC peering connection.

Parameters:
vpcPeeringConnectionId - The ID of the VPC peering connection.

withVpcPeeringConnectionId

public Route withVpcPeeringConnectionId(java.lang.String vpcPeeringConnectionId)
The ID of the VPC peering connection.

Returns a reference to this object so that method calls can be chained together.

Parameters:
vpcPeeringConnectionId - The ID of the VPC peering connection.
Returns:
A reference to this updated object so that method calls can be chained together.

getState

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).

Constraints:
Allowed Values: active, blackhole

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:
RouteState

setState

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).

Constraints:
Allowed Values: active, blackhole

Parameters:
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).
See Also:
RouteState

withState

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).

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: active, blackhole

Parameters:
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).
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
RouteState

setState

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).

Constraints:
Allowed Values: active, blackhole

Parameters:
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).
See Also:
RouteState

withState

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).

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: active, blackhole

Parameters:
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).
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
RouteState

getOrigin

public java.lang.String getOrigin()
Describes how the route was created.

Constraints:
Allowed Values: CreateRouteTable, CreateRoute, EnableVgwRoutePropagation

Returns:
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.
See Also:
RouteOrigin

setOrigin

public void setOrigin(java.lang.String origin)
Describes how the route was created.

Constraints:
Allowed Values: CreateRouteTable, CreateRoute, EnableVgwRoutePropagation

Parameters:
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.
See Also:
RouteOrigin

withOrigin

public Route withOrigin(java.lang.String origin)
Describes how the route was created.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: CreateRouteTable, CreateRoute, EnableVgwRoutePropagation

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
RouteOrigin

setOrigin

public void setOrigin(RouteOrigin origin)
Describes how the route was created.

Constraints:
Allowed Values: CreateRouteTable, CreateRoute, EnableVgwRoutePropagation

Parameters:
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.
See Also:
RouteOrigin

withOrigin

public Route withOrigin(RouteOrigin origin)
Describes how the route was created.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: CreateRouteTable, CreateRoute, EnableVgwRoutePropagation

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
RouteOrigin

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.