Class RoutingTablePatch
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.cloud.is.vpc.v1.model.RoutingTablePatch
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class RoutingTablePatch
extends com.ibm.cloud.sdk.core.service.model.GenericModel
RoutingTablePatch.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
An 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 class
Builder. -
Method Summary
Modifier and TypeMethodDescriptionGets the acceptRoutesFrom.Gets the advertiseRoutesTo.asPatch()
Construct a JSON merge-patch from the RoutingTablePatch.name()
Gets the name.New builder.Gets the routeDirectLinkIngress.Gets the routeInternetIngress.Gets the routeTransitGatewayIngress.Gets the routeVpcZoneIngress.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
newBuilder
-
acceptRoutesFrom
Gets the acceptRoutesFrom. The filters specifying the resources that may create routes in this routing table (replacing any existing filters). All routes created by resources that match a given filter will be removed when an existing filter is removed. Therefore, if an empty array is specified, all filters will be removed, resulting in all routes not directly created by the user being removed. If specified, `resource_type` must be `vpn_gateway` or `vpn_server`.- Returns:
- the acceptRoutesFrom
-
advertiseRoutesTo
-
name
Gets the name. The name for this routing table. The name must not be used by another routing table in the VPC.- Returns:
- the name
-
routeDirectLinkIngress
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. Updating to `true` selects this routing table, provided no other routing table in the VPC already has this property set to `true`, and no subnets are attached to this routing table. Updating to `false` deselects this routing table, provided `direct_link` is absent from `advertise_routes_to`. 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
-
routeInternetIngress
Gets the routeInternetIngress. Indicates whether this routing table is used to route traffic that originates from the internet. Updating to `true` selects this routing table, provided no other routing table in the VPC already has this property set to `true`. Updating to `false` deselects this routing table. 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
-
routeTransitGatewayIngress
Gets the routeTransitGatewayIngress. Indicates whether this routing table is used to route traffic that originates from [Transit Gateway](https://cloud.ibm.com/docs/transit-gateway) to this VPC. Updating to `true` selects this routing table, provided no other routing table in the VPC already has this property set to `true`, and no subnets are attached to this routing table. Updating to `false` deselects this routing table, provided `transit_gateway` is absent from `advertise_routes_to`. 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. If [Classic Access](https://cloud.ibm.com/docs/vpc?topic=vpc-setting-up-access-to-classic-infrastructure) is enabled for this VPC, and this property is set to `true`, its incoming traffic will also be routed according to this routing table.- Returns:
- the routeTransitGatewayIngress
-
routeVpcZoneIngress
Gets the routeVpcZoneIngress. Indicates whether this routing table is used to route traffic that originates from subnets in other zones in this VPC. Updating to `true` selects this routing table, provided no other routing table in the VPC already has this property set to `true`, and no subnets are attached to this routing table. Updating to `false` deselects this routing table. 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
-
asPatch
Construct a JSON merge-patch from the RoutingTablePatch. Note that properties of the RoutingTablePatch with null values are not represented in the constructed JSON merge-patch object, but can be explicitly set afterward to signify a property delete.- Returns:
- a JSON merge-patch for the RoutingTablePatch
-