Class Route
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.cloud.is.vpc.v1.model.Route
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class Route
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Route.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
The action to perform with a packet matching the route: - `delegate`: delegate to system-provided routes - `delegate_vpc`: delegate to system-provided routes, ignoring Internet-bound routes - `deliver`: deliver the packet to the specified `next_hop` - `drop`: drop the packet The enumerated values for this property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future.static interface
The lifecycle state of the route.static interface
The origin of this route: - `service`: route was directly created by a service - `user`: route was directly created by a user The enumerated values for this property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future. -
Method Summary
Modifier and TypeMethodDescriptionGets the action.Gets the createdAt.Gets the creator.Gets the destination.getHref()
Gets the href.getId()
Gets the id.Gets the lifecycleState.getName()
Gets the name.Gets the nextHop.Gets the origin.Gets the priority.getZone()
Gets the zone.Gets the advertise.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
getAction
Gets the action. The action to perform with a packet matching the route: - `delegate`: delegate to system-provided routes - `delegate_vpc`: delegate to system-provided routes, ignoring Internet-bound routes - `deliver`: deliver the packet to the specified `next_hop` - `drop`: drop the packet The enumerated values for this property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future.- Returns:
- the action
-
isAdvertise
Gets the advertise. Indicates whether this route will be advertised to the ingress sources specified by the `advertise_routes_to` routing table property.- Returns:
- the advertise
-
getCreatedAt
Gets the createdAt. The date and time that the route was created.- Returns:
- the createdAt
-
getCreator
Gets the creator. If present, the resource that created the route. Routes with this property present cannot be directly deleted. All routes with an `origin` of `service` will have this property set, and future `origin` values may also have this property set.- Returns:
- the creator
-
getDestination
Gets the destination. The destination CIDR of the route.- Returns:
- the destination
-
getHref
-
getId
-
getLifecycleState
Gets the lifecycleState. The lifecycle state of the route.- Returns:
- the lifecycleState
-
getName
Gets the name. The name for this route. The name is unique across all routes in the routing table.- Returns:
- the name
-
getNextHop
Gets the nextHop. If `action` is `deliver`, the next hop that packets will be delivered to. For other `action` values, its `address` will be `0.0.0.0`.- Returns:
- the nextHop
-
getOrigin
Gets the origin. The origin of this route: - `service`: route was directly created by a service - `user`: route was directly created by a user The enumerated values for this property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future.- Returns:
- the origin
-
getPriority
Gets the priority. The priority of this route. Smaller values have higher priority. If a routing table contains multiple routes with the same `zone` and `destination`, the route with the highest priority (smallest value) is selected. If two routes have the same `destination` and `priority`, traffic is distributed between them.- Returns:
- the priority
-
getZone
Gets the zone. The zone the route applies to. If subnets are attached to the route's routing table, egress traffic from those subnets in this zone will be subject to this route. If this route's routing table has any of `route_direct_link_ingress`, `route_internet_ingress`, `route_transit_gateway_ingress` or `route_vpc_zone_ingress` set to`true`, traffic from those ingress sources arriving in this zone will be subject to this route.- Returns:
- the zone
-