@Generated(value="software.amazon.awssdk:codegen") public final class Route extends Object implements SdkPojo, Serializable, 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 |
carrierGatewayId()
The ID of the carrier gateway.
|
String |
coreNetworkArn()
The Amazon Resource Name (ARN) of the core network.
|
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 Amazon Web Service.
|
String |
egressOnlyInternetGatewayId()
The ID of the egress-only internet gateway.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(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 ID of Amazon Web Services account that owns the instance.
|
String |
localGatewayId()
The ID of the local gateway.
|
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 |
originAsString()
Describes how the route was created.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Route.Builder> |
serializableBuilderClass() |
RouteState |
state()
The state of the route.
|
String |
stateAsString()
The state of the route.
|
Route.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
transitGatewayId()
The ID of a transit gateway.
|
String |
vpcPeeringConnectionId()
The ID of a VPC peering connection.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final String destinationCidrBlock()
The IPv4 CIDR block used for the destination match.
public final String destinationIpv6CidrBlock()
The IPv6 CIDR block used for the destination match.
public final String destinationPrefixListId()
The prefix of the Amazon Web Service.
public final String egressOnlyInternetGatewayId()
The ID of the egress-only internet gateway.
public final String gatewayId()
The ID of a gateway attached to your VPC.
public final String instanceId()
The ID of a NAT instance in your VPC.
public final String instanceOwnerId()
The ID of Amazon Web Services account that owns the instance.
public final String natGatewayId()
The ID of a NAT gateway.
public final String transitGatewayId()
The ID of a transit gateway.
public final String localGatewayId()
The ID of the local gateway.
public final String carrierGatewayId()
The ID of the carrier gateway.
public final String networkInterfaceId()
The ID of the network interface.
public final 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
originAsString()
.
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 final String originAsString()
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
originAsString()
.
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 final 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
stateAsString()
.
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 final String stateAsString()
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
stateAsString()
.
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 final String vpcPeeringConnectionId()
The ID of a VPC peering connection.
public final String coreNetworkArn()
The Amazon Resource Name (ARN) of the core network.
public Route.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<Route.Builder,Route>
public static Route.Builder builder()
public static Class<? extends Route.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2021. All rights reserved.