Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
RouteRule |
build() |
RouteRule.Builder |
cidrBlock(String cidrBlock)
Deprecated.
|
RouteRule.Builder |
copy(RouteRule model) |
RouteRule.Builder |
destination(String destination)
Conceptually, this is the range of IP addresses used for matching when routing
traffic.
|
RouteRule.Builder |
destinationType(RouteRule.DestinationType destinationType)
Type of destination for the rule.
|
RouteRule.Builder |
networkEntityId(String networkEntityId)
The OCID for the route rule’s target.
|
public RouteRule.Builder cidrBlock(String cidrBlock)
Deprecated. Instead use destination
and destinationType
. Requests that include both
cidrBlock
and destination
will be rejected.
A destination IP address range in CIDR notation. Matching packets will be routed to the indicated network entity (the target).
Cannot be an IPv6 CIDR.
Example: 0.0.0.0/0
cidrBlock
- the value to setpublic RouteRule.Builder destination(String destination)
Conceptually, this is the range of IP addresses used for matching when routing
traffic. Required if you provide a destinationType
.
Allowed values:
IP address range in CIDR notation. Can be an IPv4 or IPv6 CIDR. For example: 192.168.1.0/24
or 2001:0db8:0123:45::/56
. If you set this to an IPv6 CIDR, the route rule's target
can only be a DRG or internet gateway.
IPv6 addressing is supported for all commercial and government regions.
See [IPv6 Addresses](https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm).
The cidrBlock
value for a Service
, if you're
setting up a route rule for traffic destined for a particular Service
through
a service gateway. For example: oci-phx-objectstorage
.
destination
- the value to setpublic RouteRule.Builder destinationType(RouteRule.DestinationType destinationType)
Type of destination for the rule. Required if you provide a destination
.
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).
destinationType
- the value to setpublic RouteRule.Builder networkEntityId(String networkEntityId)
The OCID for the route rule’s target. For information about the type of targets you can specify, see Route Tables.
networkEntityId
- the value to setpublic RouteRule build()
public RouteRule.Builder copy(RouteRule model)
Copyright © 2016–2023. All rights reserved.