@Generated(value="software.amazon.awssdk:codegen") public class Route extends Object implements ToCopyableBuilder<Route.Builder,Route>
Describes a route in a route table.
Modifier and Type | Class and Description |
---|---|
static interface |
Route.Builder |
Modifier and Type | Method and Description |
---|---|
static Route.Builder |
builder() |
String |
destinationCidrBlock()
The IPv4 CIDR block used for the destination match.
|
String |
destinationIpv6CidrBlock()
The IPv6 CIDR block used for the destination match.
|
String |
destinationPrefixListId()
The prefix of the AWS service.
|
String |
egressOnlyInternetGatewayId()
The ID of the egress-only Internet gateway.
|
boolean |
equals(Object obj) |
String |
gatewayId()
The ID of a gateway attached to your VPC.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
instanceId()
The ID of a NAT instance in your VPC.
|
String |
instanceOwnerId()
The AWS account ID of the owner of the instance.
|
String |
natGatewayId()
The ID of a NAT gateway.
|
String |
networkInterfaceId()
The ID of the network interface.
|
RouteOrigin |
origin()
Describes how the route was created.
|
String |
originString()
Describes how the route was created.
|
static Class<? extends Route.Builder> |
serializableBuilderClass() |
RouteState |
state()
The state of the route.
|
String |
stateString()
The state of the route.
|
Route.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
vpcPeeringConnectionId()
The ID of the VPC peering connection.
|
copy
public String destinationCidrBlock()
The IPv4 CIDR block used for the destination match.
public String destinationIpv6CidrBlock()
The IPv6 CIDR block used for the destination match.
public String destinationPrefixListId()
The prefix of the AWS service.
public String egressOnlyInternetGatewayId()
The ID of the egress-only Internet gateway.
public String gatewayId()
The ID of a gateway attached to your VPC.
public String instanceId()
The ID of a NAT instance in your VPC.
public String instanceOwnerId()
The AWS account ID of the owner of the instance.
public String natGatewayId()
The ID of a NAT gateway.
public String networkInterfaceId()
The ID of the network interface.
public 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.
If the service returns an enum value that is not available in the current SDK version, origin
will
return RouteOrigin.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
originString()
.
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 originString()
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.
If the service returns an enum value that is not available in the current SDK version, origin
will
return RouteOrigin.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
originString()
.
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 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).
If the service returns an enum value that is not available in the current SDK version, state
will return
RouteState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
stateString()
.
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 stateString()
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).
If the service returns an enum value that is not available in the current SDK version, state
will return
RouteState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
stateString()
.
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 vpcPeeringConnectionId()
The ID of the VPC peering connection.
public Route.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Route.Builder,Route>
public static Route.Builder builder()
public static Class<? extends Route.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.