Package com.ibm.cloud.is.vpc.v1.model
Class RoutingTable
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.is.vpc.v1.model.RoutingTable
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class RoutingTable extends com.ibm.cloud.sdk.core.service.model.GenericModelRoutingTable.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRoutingTable.AdvertiseRoutesToAn ingress source that routes can be advertised to: - `direct_link` (requires `route_direct_link_ingress` be set to `true`) - `transit_gateway` (requires `route_transit_gateway_ingress` be set to `true`).static interfaceRoutingTable.LifecycleStateThe lifecycle state of the routing table.static interfaceRoutingTable.ResourceTypeThe resource type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ResourceFilter>getAcceptRoutesFrom()Gets the acceptRoutesFrom.List<String>getAdvertiseRoutesTo()Gets the advertiseRoutesTo.DategetCreatedAt()Gets the createdAt.StringgetHref()Gets the href.StringgetId()Gets the id.StringgetLifecycleState()Gets the lifecycleState.StringgetName()Gets the name.StringgetResourceType()Gets the resourceType.List<RouteReference>getRoutes()Gets the routes.List<SubnetReference>getSubnets()Gets the subnets.BooleanisIsDefault()Gets the isDefault.BooleanisRouteDirectLinkIngress()Gets the routeDirectLinkIngress.BooleanisRouteInternetIngress()Gets the routeInternetIngress.BooleanisRouteTransitGatewayIngress()Gets the routeTransitGatewayIngress.BooleanisRouteVpcZoneIngress()Gets the routeVpcZoneIngress.
-
-
-
Method Detail
-
getAcceptRoutesFrom
public List<ResourceFilter> getAcceptRoutesFrom()
Gets the acceptRoutesFrom. The filters specifying the resources that may create routes in this routing table. At present, only the `resource_type` filter is permitted, and only the `vpn_server` value is supported, but filter support is expected to expand in the future.- Returns:
- the acceptRoutesFrom
-
getAdvertiseRoutesTo
public List<String> getAdvertiseRoutesTo()
Gets the advertiseRoutesTo. The ingress sources to advertise routes to. Routes in the table with `advertise` enabled will be advertised to these sources. The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered.- Returns:
- the advertiseRoutesTo
-
getCreatedAt
public Date getCreatedAt()
Gets the createdAt. The date and time that this routing table was created.- Returns:
- the createdAt
-
getHref
public String getHref()
Gets the href. The URL for this routing table.- Returns:
- the href
-
getId
public String getId()
Gets the id. The unique identifier for this routing table.- Returns:
- the id
-
isIsDefault
public Boolean isIsDefault()
Gets the isDefault. Indicates whether this is the default routing table for this VPC.- Returns:
- the isDefault
-
getLifecycleState
public String getLifecycleState()
Gets the lifecycleState. The lifecycle state of the routing table.- Returns:
- the lifecycleState
-
getName
public String getName()
Gets the name. The name for this routing table. The name is unique across all routing tables for the VPC.- Returns:
- the name
-
getResourceType
public String getResourceType()
Gets the resourceType. The resource type.- Returns:
- the resourceType
-
isRouteDirectLinkIngress
public Boolean isRouteDirectLinkIngress()
Gets the routeDirectLinkIngress. Indicates whether this routing table is used to route traffic that originates from [Direct Link](https://cloud.ibm.com/docs/dl) to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an `action` of `deliver` are treated as `drop` unless the `next_hop` is an IP address in a subnet in the route's `zone` that is able to accept traffic. Therefore, if an incoming packet matches a route with a `next_hop` of a VPN gateway connection, the packet will be dropped.- Returns:
- the routeDirectLinkIngress
-
isRouteInternetIngress
public Boolean isRouteInternetIngress()
Gets the routeInternetIngress. Indicates whether this routing table is used to route traffic that originates from the internet. Incoming traffic will be routed according to the routing table with two exceptions: - Traffic destined for IP addresses associated with public gateways will not be subject to routes in this routing table. - Routes with an `action` of `deliver` are treated as `drop` unless the `next_hop` is an IP address in a subnet in the route's `zone` that is able to accept traffic. Therefore, if an incoming packet matches a route with a `next_hop` of a VPN gateway connection, the packet will be dropped.- Returns:
- the routeInternetIngress
-
isRouteTransitGatewayIngress
public Boolean isRouteTransitGatewayIngress()
Gets the routeTransitGatewayIngress. Indicates whether this routing table is used to route traffic that originates from from [Transit Gateway](https://cloud.ibm.com/docs/transit-gateway) to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an `action` of `deliver` are treated as `drop` unless the `next_hop` is an IP address in a subnet in the route's `zone` that is able to accept traffic. Therefore, if an incoming packet matches a route with a `next_hop` of a VPN gateway connection, the packet will be dropped.- Returns:
- the routeTransitGatewayIngress
-
isRouteVpcZoneIngress
public Boolean isRouteVpcZoneIngress()
Gets the routeVpcZoneIngress. Indicates whether this routing table is used to route traffic that originates from subnets in other zones in this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an `action` of `deliver` are treated as `drop` unless the `next_hop` is an IP address in a subnet in the route's `zone` that is able to accept traffic. Therefore, if an incoming packet matches a route with a `next_hop` of a VPN gateway connection, the packet will be dropped.- Returns:
- the routeVpcZoneIngress
-
getRoutes
public List<RouteReference> getRoutes()
Gets the routes. The routes for this routing table.- Returns:
- the routes
-
getSubnets
public List<SubnetReference> getSubnets()
Gets the subnets. The subnets to which this routing table is attached.- Returns:
- the subnets
-
-