Class AddDrgRouteRuleDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.vnmonitoring.model.AddDrgRouteRuleDetails.Builder
-
- Enclosing class:
- AddDrgRouteRuleDetails
public static class AddDrgRouteRuleDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddDrgRouteRuleDetails
build()
AddDrgRouteRuleDetails.Builder
copy(AddDrgRouteRuleDetails model)
AddDrgRouteRuleDetails.Builder
destination(String destination)
This is the range of IP addresses used for matching when routing traffic.AddDrgRouteRuleDetails.Builder
destinationType(AddDrgRouteRuleDetails.DestinationType destinationType)
Type of destination for the rule.AddDrgRouteRuleDetails.Builder
nextHopDrgAttachmentId(String nextHopDrgAttachmentId)
The OCID of the next hop DRG attachment.
-
-
-
Method Detail
-
destinationType
public AddDrgRouteRuleDetails.Builder destinationType(AddDrgRouteRuleDetails.DestinationType destinationType)
Type of destination for the rule.Allowed values: * CIDR_BLOCK: If the rule’s destination is an IP address range in CIDR notation.
- Parameters:
destinationType
- the value to set- Returns:
- this builder
-
destination
public AddDrgRouteRuleDetails.Builder destination(String destination)
This is the range of IP addresses used for matching when routing traffic.Only CIDR_BLOCK values are allowed.
Potential values: * IP address range in CIDR notation. This can be an IPv4 or IPv6 CIDR. For example: 192.168.1.0/24 or 2001:0db8:0123:45::/56.
- Parameters:
destination
- the value to set- Returns:
- this builder
-
nextHopDrgAttachmentId
public AddDrgRouteRuleDetails.Builder nextHopDrgAttachmentId(String nextHopDrgAttachmentId)
The OCID of the next hop DRG attachment.The next hop DRG attachment is responsible for reaching the network destination.
- Parameters:
nextHopDrgAttachmentId
- the value to set- Returns:
- this builder
-
build
public AddDrgRouteRuleDetails build()
-
copy
public AddDrgRouteRuleDetails.Builder copy(AddDrgRouteRuleDetails model)
-
-