Class DrgRouteRule.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • destination

        public DrgRouteRule.Builder destination​(String destination)
        Represents the range of IP addresses to match against when routing traffic.

        Potential values: * An IP address range (IPv4 or IPv6) in CIDR notation. For example: 192.168.1.0/24 or 2001:0db8:0123:45::/56. * When you're setting up a security rule for traffic destined for a particular Service through a service gateway, this is the cidrBlock value associated with that Service. For example: oci-phx-objectstorage.

        Parameters:
        destination - the value to set
        Returns:
        this builder
      • destinationType

        public DrgRouteRule.Builder destinationType​(DrgRouteRule.DestinationType destinationType)
        The type of destination for the rule.

        Allowed values:

        CIDR_BLOCK: If the rule's destination is an IP address range in CIDR notation. * SERVICE_CIDR_BLOCK: If the rule's destination is the cidrBlock value for a Service (the rule is for traffic destined for a particular Service through a service gateway).

        Parameters:
        destinationType - the value to set
        Returns:
        this builder
      • nextHopDrgAttachmentId

        public DrgRouteRule.Builder nextHopDrgAttachmentId​(String nextHopDrgAttachmentId)
        The OCID of the next hop DRG attachment responsible for reaching the network destination.

        A value of BLACKHOLE means traffic for this route is discarded without notification.

        Parameters:
        nextHopDrgAttachmentId - the value to set
        Returns:
        this builder
      • routeType

        public DrgRouteRule.Builder routeType​(DrgRouteRule.RouteType routeType)
        You can specify static routes for the DRG route table using the API.

        The DRG learns dynamic routes from the DRG attachments using various routing protocols.

        Parameters:
        routeType - the value to set
        Returns:
        this builder
      • isConflict

        public DrgRouteRule.Builder isConflict​(Boolean isConflict)
        Indicates that the route was not imported due to a conflict between route rules.
        Parameters:
        isConflict - the value to set
        Returns:
        this builder
      • isBlackhole

        public DrgRouteRule.Builder isBlackhole​(Boolean isBlackhole)
        Indicates that if the next hop attachment does not exist, so traffic for this route is discarded without notification.
        Parameters:
        isBlackhole - the value to set
        Returns:
        this builder
      • id

        public DrgRouteRule.Builder id​(String id)
        The Oracle-assigned ID of the DRG route rule.
        Parameters:
        id - the value to set
        Returns:
        this builder
      • routeProvenance

        public DrgRouteRule.Builder routeProvenance​(DrgRouteRule.RouteProvenance routeProvenance)
        The earliest origin of a route.

        If a route is advertised to a DRG through an IPsec tunnel attachment, and is propagated to peered DRGs via RPC attachments, the route’s provenance in the peered DRGs remains IPSEC_TUNNEL, because that is the earliest origin.

        No routes with a provenance IPSEC_TUNNEL or VIRTUAL_CIRCUIT will be exported to IPsec tunnel or virtual circuit attachments, regardless of the attachment's export distribution.

        Parameters:
        routeProvenance - the value to set
        Returns:
        this builder
      • attributes

        public DrgRouteRule.Builder attributes​(Object attributes)
        Additional properties for the route, computed by the service.
        Parameters:
        attributes - the value to set
        Returns:
        this builder