Class Route
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Route.Builder,Route>
Describes a route in a route table.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Route.Builderbuilder()final StringThe ID of the carrier gateway.final StringThe Amazon Resource Name (ARN) of the core network.final StringThe IPv4 CIDR block used for the destination match.final StringThe IPv6 CIDR block used for the destination match.final StringThe prefix of the Amazon Web Services service.final StringThe ID of the egress-only internet gateway.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final StringThe ID of a gateway attached to your VPC.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringThe ID of a NAT instance in your VPC.final StringThe ID of Amazon Web Services account that owns the instance.final StringThe next hop IP address for routes propagated by VPC Route Server into VPC route tables.final StringThe ID of the local gateway.final StringThe ID of a NAT gateway.final StringThe ID of the network interface.final StringThe Amazon Resource Name (ARN) of the ODB network.final RouteOriginorigin()Describes how the route was created.final StringDescribes how the route was created.static Class<? extends Route.Builder> final RouteStatestate()The state of the route.final StringThe state of the route.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final StringThe ID of a transit gateway.final StringThe ID of a VPC peering connection.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
destinationCidrBlock
The IPv4 CIDR block used for the destination match.
- Returns:
- The IPv4 CIDR block used for the destination match.
-
destinationIpv6CidrBlock
The IPv6 CIDR block used for the destination match.
- Returns:
- The IPv6 CIDR block used for the destination match.
-
destinationPrefixListId
The prefix of the Amazon Web Services service.
- Returns:
- The prefix of the Amazon Web Services service.
-
egressOnlyInternetGatewayId
The ID of the egress-only internet gateway.
- Returns:
- The ID of the egress-only internet gateway.
-
gatewayId
The ID of a gateway attached to your VPC.
- Returns:
- The ID of a gateway attached to your VPC.
-
instanceId
The ID of a NAT instance in your VPC.
- Returns:
- The ID of a NAT instance in your VPC.
-
instanceOwnerId
The ID of Amazon Web Services account that owns the instance.
- Returns:
- The ID of Amazon Web Services account that owns the instance.
-
natGatewayId
-
transitGatewayId
The ID of a transit gateway.
- Returns:
- The ID of a transit gateway.
-
localGatewayId
The ID of the local gateway.
- Returns:
- The ID of the local gateway.
-
carrierGatewayId
The ID of the carrier gateway.
- Returns:
- The ID of the carrier gateway.
-
networkInterfaceId
The ID of the network interface.
- Returns:
- The ID of the network interface.
-
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. -
Advertisement- The route was created dynamically by Amazon VPC Route Server.
If the service returns an enum value that is not available in the current SDK version,
originwill returnRouteOrigin.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromoriginAsString().- 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. -
Advertisement- The route was created dynamically by Amazon VPC Route Server.
-
- See Also:
-
-
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. -
Advertisement- The route was created dynamically by Amazon VPC Route Server.
If the service returns an enum value that is not available in the current SDK version,
originwill returnRouteOrigin.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromoriginAsString().- 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. -
Advertisement- The route was created dynamically by Amazon VPC Route Server.
-
- See Also:
-
-
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).If the service returns an enum value that is not available in the current SDK version,
statewill returnRouteState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- 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:
-
stateAsString
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).If the service returns an enum value that is not available in the current SDK version,
statewill returnRouteState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- 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:
-
vpcPeeringConnectionId
The ID of a VPC peering connection.
- Returns:
- The ID of a VPC peering connection.
-
coreNetworkArn
The Amazon Resource Name (ARN) of the core network.
- Returns:
- The Amazon Resource Name (ARN) of the core network.
-
odbNetworkArn
The Amazon Resource Name (ARN) of the ODB network.
- Returns:
- The Amazon Resource Name (ARN) of the ODB network.
-
ipAddress
The next hop IP address for routes propagated by VPC Route Server into VPC route tables.
- Returns:
- The next hop IP address for routes propagated by VPC Route Server into VPC route tables.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<Route.Builder,Route> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-