@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Route extends Object implements Serializable, Cloneable
Describes a route in a route table.
Constructor and Description |
---|
Route() |
Modifier and Type | Method and Description |
---|---|
Route |
clone() |
boolean |
equals(Object obj) |
String |
getCarrierGatewayId()
The ID of the carrier gateway.
|
String |
getCoreNetworkArn()
The Amazon Resource Name (ARN) of the core network.
|
String |
getDestinationCidrBlock()
The IPv4 CIDR block used for the destination match.
|
String |
getDestinationIpv6CidrBlock()
The IPv6 CIDR block used for the destination match.
|
String |
getDestinationPrefixListId()
The prefix of the Amazon Web Service.
|
String |
getEgressOnlyInternetGatewayId()
The ID of the egress-only internet gateway.
|
String |
getGatewayId()
The ID of a gateway attached to your VPC.
|
String |
getInstanceId()
The ID of a NAT instance in your VPC.
|
String |
getInstanceOwnerId()
The ID of Amazon Web Services account that owns the instance.
|
String |
getLocalGatewayId()
The ID of the local gateway.
|
String |
getNatGatewayId()
The ID of a NAT gateway.
|
String |
getNetworkInterfaceId()
The ID of the network interface.
|
String |
getOrigin()
Describes how the route was created.
|
String |
getState()
The state of the route.
|
String |
getTransitGatewayId()
The ID of a transit gateway.
|
String |
getVpcPeeringConnectionId()
The ID of a VPC peering connection.
|
int |
hashCode() |
void |
setCarrierGatewayId(String carrierGatewayId)
The ID of the carrier gateway.
|
void |
setCoreNetworkArn(String coreNetworkArn)
The Amazon Resource Name (ARN) of the core network.
|
void |
setDestinationCidrBlock(String destinationCidrBlock)
The IPv4 CIDR block used for the destination match.
|
void |
setDestinationIpv6CidrBlock(String destinationIpv6CidrBlock)
The IPv6 CIDR block used for the destination match.
|
void |
setDestinationPrefixListId(String destinationPrefixListId)
The prefix of the Amazon Web Service.
|
void |
setEgressOnlyInternetGatewayId(String egressOnlyInternetGatewayId)
The ID of the egress-only internet gateway.
|
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 ID of Amazon Web Services account that owns the instance.
|
void |
setLocalGatewayId(String localGatewayId)
The ID of the local gateway.
|
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 |
setOrigin(String origin)
Describes how the route was created.
|
void |
setState(RouteState state)
The state of the route.
|
void |
setState(String state)
The state of the route.
|
void |
setTransitGatewayId(String transitGatewayId)
The ID of a transit gateway.
|
void |
setVpcPeeringConnectionId(String vpcPeeringConnectionId)
The ID of a VPC peering connection.
|
String |
toString()
Returns a string representation of this object.
|
Route |
withCarrierGatewayId(String carrierGatewayId)
The ID of the carrier gateway.
|
Route |
withCoreNetworkArn(String coreNetworkArn)
The Amazon Resource Name (ARN) of the core network.
|
Route |
withDestinationCidrBlock(String destinationCidrBlock)
The IPv4 CIDR block used for the destination match.
|
Route |
withDestinationIpv6CidrBlock(String destinationIpv6CidrBlock)
The IPv6 CIDR block used for the destination match.
|
Route |
withDestinationPrefixListId(String destinationPrefixListId)
The prefix of the Amazon Web Service.
|
Route |
withEgressOnlyInternetGatewayId(String egressOnlyInternetGatewayId)
The ID of the egress-only internet gateway.
|
Route |
withGatewayId(String gatewayId)
The ID of a gateway attached to your VPC.
|
Route |
withInstanceId(String instanceId)
The ID of a NAT instance in your VPC.
|
Route |
withInstanceOwnerId(String instanceOwnerId)
The ID of Amazon Web Services account that owns the instance.
|
Route |
withLocalGatewayId(String localGatewayId)
The ID of the local gateway.
|
Route |
withNatGatewayId(String natGatewayId)
The ID of a NAT gateway.
|
Route |
withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
|
Route |
withOrigin(RouteOrigin origin)
Describes how the route was created.
|
Route |
withOrigin(String origin)
Describes how the route was created.
|
Route |
withState(RouteState state)
The state of the route.
|
Route |
withState(String state)
The state of the route.
|
Route |
withTransitGatewayId(String transitGatewayId)
The ID of a transit gateway.
|
Route |
withVpcPeeringConnectionId(String vpcPeeringConnectionId)
The ID of a VPC peering connection.
|
public void setDestinationCidrBlock(String destinationCidrBlock)
The IPv4 CIDR block used for the destination match.
destinationCidrBlock
- The IPv4 CIDR block used for the destination match.public String getDestinationCidrBlock()
The IPv4 CIDR block used for the destination match.
public Route withDestinationCidrBlock(String destinationCidrBlock)
The IPv4 CIDR block used for the destination match.
destinationCidrBlock
- The IPv4 CIDR block used for the destination match.public void setDestinationIpv6CidrBlock(String destinationIpv6CidrBlock)
The IPv6 CIDR block used for the destination match.
destinationIpv6CidrBlock
- The IPv6 CIDR block used for the destination match.public String getDestinationIpv6CidrBlock()
The IPv6 CIDR block used for the destination match.
public Route withDestinationIpv6CidrBlock(String destinationIpv6CidrBlock)
The IPv6 CIDR block used for the destination match.
destinationIpv6CidrBlock
- The IPv6 CIDR block used for the destination match.public void setDestinationPrefixListId(String destinationPrefixListId)
The prefix of the Amazon Web Service.
destinationPrefixListId
- The prefix of the Amazon Web Service.public String getDestinationPrefixListId()
The prefix of the Amazon Web Service.
public Route withDestinationPrefixListId(String destinationPrefixListId)
The prefix of the Amazon Web Service.
destinationPrefixListId
- The prefix of the Amazon Web Service.public void setEgressOnlyInternetGatewayId(String egressOnlyInternetGatewayId)
The ID of the egress-only internet gateway.
egressOnlyInternetGatewayId
- The ID of the egress-only internet gateway.public String getEgressOnlyInternetGatewayId()
The ID of the egress-only internet gateway.
public Route withEgressOnlyInternetGatewayId(String egressOnlyInternetGatewayId)
The ID of the egress-only internet gateway.
egressOnlyInternetGatewayId
- The ID of the egress-only internet gateway.public void setGatewayId(String gatewayId)
The ID of a gateway attached to your VPC.
gatewayId
- The ID of a gateway attached to your VPC.public String getGatewayId()
The ID of a gateway attached to your VPC.
public Route withGatewayId(String gatewayId)
The ID of a gateway attached to your VPC.
gatewayId
- The ID of a gateway attached to your VPC.public void setInstanceId(String instanceId)
The ID of a NAT instance in your VPC.
instanceId
- The ID of a NAT instance in your VPC.public String getInstanceId()
The ID of a NAT instance in your VPC.
public Route withInstanceId(String instanceId)
The ID of a NAT instance in your VPC.
instanceId
- The ID of a NAT instance in your VPC.public void setInstanceOwnerId(String instanceOwnerId)
The ID of Amazon Web Services account that owns the instance.
instanceOwnerId
- The ID of Amazon Web Services account that owns the instance.public String getInstanceOwnerId()
The ID of Amazon Web Services account that owns the instance.
public Route withInstanceOwnerId(String instanceOwnerId)
The ID of Amazon Web Services account that owns the instance.
instanceOwnerId
- The ID of Amazon Web Services account that owns the instance.public void setNatGatewayId(String natGatewayId)
The ID of a NAT gateway.
natGatewayId
- The ID of a NAT gateway.public String getNatGatewayId()
The ID of a NAT gateway.
public Route withNatGatewayId(String natGatewayId)
The ID of a NAT gateway.
natGatewayId
- The ID of a NAT gateway.public void setTransitGatewayId(String transitGatewayId)
The ID of a transit gateway.
transitGatewayId
- The ID of a transit gateway.public String getTransitGatewayId()
The ID of a transit gateway.
public Route withTransitGatewayId(String transitGatewayId)
The ID of a transit gateway.
transitGatewayId
- The ID of a transit gateway.public void setLocalGatewayId(String localGatewayId)
The ID of the local gateway.
localGatewayId
- The ID of the local gateway.public String getLocalGatewayId()
The ID of the local gateway.
public Route withLocalGatewayId(String localGatewayId)
The ID of the local gateway.
localGatewayId
- The ID of the local gateway.public void setCarrierGatewayId(String carrierGatewayId)
The ID of the carrier gateway.
carrierGatewayId
- The ID of the carrier gateway.public String getCarrierGatewayId()
The ID of the carrier gateway.
public Route withCarrierGatewayId(String carrierGatewayId)
The ID of the carrier gateway.
carrierGatewayId
- The ID of the carrier gateway.public void setNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
networkInterfaceId
- The ID of the network interface.public String getNetworkInterfaceId()
The ID of the network interface.
public Route withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
networkInterfaceId
- The ID of the network interface.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.
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 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(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 void setState(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 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(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 setVpcPeeringConnectionId(String vpcPeeringConnectionId)
The ID of a VPC peering connection.
vpcPeeringConnectionId
- The ID of a VPC peering connection.public String getVpcPeeringConnectionId()
The ID of a VPC peering connection.
public Route withVpcPeeringConnectionId(String vpcPeeringConnectionId)
The ID of a VPC peering connection.
vpcPeeringConnectionId
- The ID of a VPC peering connection.public void setCoreNetworkArn(String coreNetworkArn)
The Amazon Resource Name (ARN) of the core network.
coreNetworkArn
- The Amazon Resource Name (ARN) of the core network.public String getCoreNetworkArn()
The Amazon Resource Name (ARN) of the core network.
public Route withCoreNetworkArn(String coreNetworkArn)
The Amazon Resource Name (ARN) of the core network.
coreNetworkArn
- The Amazon Resource Name (ARN) of the core network.public String toString()
toString
in class Object
Object.toString()