public static class NetworkLoadBalancer.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
NetworkLoadBalancer.Builder |
backendSets(Map<String,BackendSet> backendSets)
Backend sets associated with the network load balancer.
|
NetworkLoadBalancer |
build() |
NetworkLoadBalancer.Builder |
compartmentId(String compartmentId)
The OCID of the
compartment containing the network load balancer.
|
NetworkLoadBalancer.Builder |
copy(NetworkLoadBalancer model) |
NetworkLoadBalancer.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
NetworkLoadBalancer.Builder |
displayName(String displayName)
A user-friendly name, which does not have to be unique, and can be changed.
|
NetworkLoadBalancer.Builder |
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.
|
NetworkLoadBalancer.Builder |
id(String id)
The OCID of the
network load balancer.
|
NetworkLoadBalancer.Builder |
ipAddresses(List<IpAddress> ipAddresses)
An array of IP addresses.
|
NetworkLoadBalancer.Builder |
isPreserveSourceDestination(Boolean isPreserveSourceDestination)
When enabled, the skipSourceDestinationCheck parameter is automatically enabled on the
load balancer VNIC.
|
NetworkLoadBalancer.Builder |
isPrivate(Boolean isPrivate)
Whether the network load balancer has a virtual cloud network-local (private) IP address.
|
NetworkLoadBalancer.Builder |
isSymmetricHashEnabled(Boolean isSymmetricHashEnabled)
This can only be enabled when NLB is working in transparent mode with source destination
header preservation enabled.
|
NetworkLoadBalancer.Builder |
lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.
|
NetworkLoadBalancer.Builder |
lifecycleState(LifecycleState lifecycleState)
The current state of the network load balancer.
|
NetworkLoadBalancer.Builder |
listeners(Map<String,Listener> listeners)
Listeners associated with the network load balancer.
|
NetworkLoadBalancer.Builder |
networkSecurityGroupIds(List<String> networkSecurityGroupIds)
An array of network security groups
OCIDs
associated with the network load balancer.
|
NetworkLoadBalancer.Builder |
nlbIpVersion(NlbIpVersion nlbIpVersion)
IP version associated with the NLB.
|
NetworkLoadBalancer.Builder |
securityAttributes(Map<String,Map<String,Object>> securityAttributes)
ZPR tags for this resource.
|
NetworkLoadBalancer.Builder |
subnetId(String subnetId)
The subnet in which the network load balancer is spawned
OCIDs.
|
NetworkLoadBalancer.Builder |
systemTags(Map<String,Map<String,Object>> systemTags)
Key-value pair representing system tags’ keys and values scoped to a namespace.
|
NetworkLoadBalancer.Builder |
timeCreated(Date timeCreated)
The date and time the network load balancer was created, in the format defined by
RFC3339.
|
NetworkLoadBalancer.Builder |
timeUpdated(Date timeUpdated)
The time the network load balancer was updated.
|
public NetworkLoadBalancer.Builder id(String id)
The OCID of the network load balancer.
id
- the value to setpublic NetworkLoadBalancer.Builder compartmentId(String compartmentId)
The OCID of the compartment containing the network load balancer.
compartmentId
- the value to setpublic NetworkLoadBalancer.Builder displayName(String displayName)
A user-friendly name, which does not have to be unique, and can be changed.
Example: example_load_balancer
displayName
- the value to setpublic NetworkLoadBalancer.Builder lifecycleState(LifecycleState lifecycleState)
The current state of the network load balancer.
lifecycleState
- the value to setpublic NetworkLoadBalancer.Builder lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
lifecycleDetails
- the value to setpublic NetworkLoadBalancer.Builder nlbIpVersion(NlbIpVersion nlbIpVersion)
IP version associated with the NLB.
nlbIpVersion
- the value to setpublic NetworkLoadBalancer.Builder timeCreated(Date timeCreated)
The date and time the network load balancer was created, in the format defined by RFC3339.
Example: 2020-05-01T21:10:29.600Z
timeCreated
- the value to setpublic NetworkLoadBalancer.Builder timeUpdated(Date timeUpdated)
The time the network load balancer was updated. An RFC3339 formatted date-time string.
Example: 2020-05-01T22:10:29.600Z
timeUpdated
- the value to setpublic NetworkLoadBalancer.Builder ipAddresses(List<IpAddress> ipAddresses)
An array of IP addresses.
ipAddresses
- the value to setpublic NetworkLoadBalancer.Builder isPrivate(Boolean isPrivate)
Whether the network load balancer has a virtual cloud network-local (private) IP address.
If "true", then the service assigns a private IP address to the network load balancer.
If "false", then the service assigns a public IP address to the network load balancer.
A public network load balancer is accessible from the internet, depending the [security list rules](https://docs.cloud.oracle.com/Content/network/Concepts/securitylists.htm) for your virtual cloudn network. For more information about public and private network load balancers, see [How Network Load Balancing Works](https://docs.cloud.oracle.com/Content/Balance/Concepts/balanceoverview.htm#how-network-load-balancing-works). This value is true by default.
Example: true
isPrivate
- the value to setpublic NetworkLoadBalancer.Builder isPreserveSourceDestination(Boolean isPreserveSourceDestination)
When enabled, the skipSourceDestinationCheck parameter is automatically enabled on the load balancer VNIC. Packets are sent to the backend set without any changes to the source and destination IP.
isPreserveSourceDestination
- the value to setpublic NetworkLoadBalancer.Builder isSymmetricHashEnabled(Boolean isSymmetricHashEnabled)
This can only be enabled when NLB is working in transparent mode with source destination header preservation enabled. This removes the additional dependency from NLB backends(like Firewalls) to perform SNAT.
isSymmetricHashEnabled
- the value to setpublic NetworkLoadBalancer.Builder subnetId(String subnetId)
The subnet in which the network load balancer is spawned OCIDs.
subnetId
- the value to setpublic NetworkLoadBalancer.Builder networkSecurityGroupIds(List<String> networkSecurityGroupIds)
An array of network security groups OCIDs associated with the network load balancer.
During the creation of the network load balancer, the service adds the new load balancer to the specified network security groups.
The benefits of associating the network load balancer with network security groups include:
Network security groups define network security rules to govern ingress and egress traffic for the network load balancer.
The network security rules of other resources can reference the network security groups associated with the network load balancer to ensure access.
Example: ["ocid1.nsg.oc1.phx.unique_ID"]
networkSecurityGroupIds
- the value to setpublic NetworkLoadBalancer.Builder listeners(Map<String,Listener> listeners)
Listeners associated with the network load balancer.
listeners
- the value to setpublic NetworkLoadBalancer.Builder backendSets(Map<String,BackendSet> backendSets)
Backend sets associated with the network load balancer.
backendSets
- the value to setpublic NetworkLoadBalancer.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {"Department": "Finance"}
freeformTags
- the value to setpublic NetworkLoadBalancer.Builder securityAttributes(Map<String,Map<String,Object>> securityAttributes)
ZPR tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: { "oracle-zpr": { "td": { "value": "42", "mode": "audit" } } }
securityAttributes
- the value to setpublic NetworkLoadBalancer.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {"Operations": {"CostCenter": "42"}}
definedTags
- the value to setpublic NetworkLoadBalancer.Builder systemTags(Map<String,Map<String,Object>> systemTags)
Key-value pair representing system tags’ keys and values scoped to a namespace. Example:
{"bar-key": "value"}
systemTags
- the value to setpublic NetworkLoadBalancer build()
public NetworkLoadBalancer.Builder copy(NetworkLoadBalancer model)
Copyright © 2016–2024. All rights reserved.