Class 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.
    • Method Detail

      • acceptRoutesFrom

        public List<ResourceFilter> 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

        public List<String> advertiseRoutesTo()
        Gets the advertiseRoutesTo. The ingress sources to advertise routes to, replacing any existing sources to advertise to. Routes in the table with `advertise` enabled will be advertised to these sources.
        Returns:
        the advertiseRoutesTo
      • name

        public String 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

        public Boolean 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

        public Boolean 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

        public Boolean 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

        public Boolean 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

        public Map<String,​Object> 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