public static class DrgRouteRule.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
DrgRouteRule.Builder |
attributes(Object attributes)
Additional properties for the route, computed by the service.
|
DrgRouteRule |
build() |
DrgRouteRule.Builder |
copy(DrgRouteRule model) |
DrgRouteRule.Builder |
destination(String destination)
Represents the range of IP addresses to match against when routing traffic.
|
DrgRouteRule.Builder |
destinationType(DrgRouteRule.DestinationType destinationType)
The type of destination for the rule.
|
DrgRouteRule.Builder |
id(String id)
The Oracle-assigned ID of the DRG route rule.
|
DrgRouteRule.Builder |
isBlackhole(Boolean isBlackhole)
Indicates that if the next hop attachment does not exist, so traffic for this route is
discarded without notification.
|
DrgRouteRule.Builder |
isConflict(Boolean isConflict)
Indicates that the route was not imported due to a conflict between route rules.
|
DrgRouteRule.Builder |
nextHopDrgAttachmentId(String nextHopDrgAttachmentId)
The OCID
of the next hop DRG attachment responsible for reaching the network destination.
|
DrgRouteRule.Builder |
routeProvenance(DrgRouteRule.RouteProvenance routeProvenance)
The earliest origin of a route.
|
DrgRouteRule.Builder |
routeType(DrgRouteRule.RouteType routeType)
You can specify static routes for the DRG route table using the API.
|
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
.
destination
- the value to setpublic 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).
destinationType
- the value to setpublic 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.
nextHopDrgAttachmentId
- the value to setpublic 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.
routeType
- the value to setpublic DrgRouteRule.Builder isConflict(Boolean isConflict)
Indicates that the route was not imported due to a conflict between route rules.
isConflict
- the value to setpublic DrgRouteRule.Builder isBlackhole(Boolean isBlackhole)
Indicates that if the next hop attachment does not exist, so traffic for this route is discarded without notification.
isBlackhole
- the value to setpublic DrgRouteRule.Builder id(String id)
The Oracle-assigned ID of the DRG route rule.
id
- the value to setpublic 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.
routeProvenance
- the value to setpublic DrgRouteRule.Builder attributes(Object attributes)
Additional properties for the route, computed by the service.
attributes
- the value to setpublic DrgRouteRule build()
public DrgRouteRule.Builder copy(DrgRouteRule model)
Copyright © 2016–2024. All rights reserved.