Class ListenerSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.networkloadbalancer.model.ListenerSummary.Builder
-
- Enclosing class:
- ListenerSummary
public static class ListenerSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListenerSummarybuild()ListenerSummary.Buildercopy(ListenerSummary model)ListenerSummary.BuilderdefaultBackendSetName(String defaultBackendSetName)The name of the associated backend set.ListenerSummary.BuilderipVersion(IpVersion ipVersion)IP version associated with the listener.ListenerSummary.BuilderisPpv2Enabled(Boolean isPpv2Enabled)Property to enable/disable PPv2 feature for this listener.ListenerSummary.Builderl3IpIdleTimeout(Integer l3IpIdleTimeout)The duration for L3IP idle timeout in seconds.ListenerSummary.Buildername(String name)A friendly name for the listener.ListenerSummary.Builderport(Integer port)The communication port for the listener.ListenerSummary.Builderprotocol(ListenerProtocols protocol)The protocol on which the listener accepts connection requests.ListenerSummary.BuildertcpIdleTimeout(Integer tcpIdleTimeout)The duration for TCP idle timeout in seconds.ListenerSummary.BuilderudpIdleTimeout(Integer udpIdleTimeout)The duration for UDP idle timeout in seconds.
-
-
-
Method Detail
-
name
public ListenerSummary.Builder name(String name)
A friendly name for the listener.It must be unique and it cannot be changed.
Example: example_listener
- Parameters:
name- the value to set- Returns:
- this builder
-
defaultBackendSetName
public ListenerSummary.Builder defaultBackendSetName(String defaultBackendSetName)
The name of the associated backend set.Example: example_backend_set
- Parameters:
defaultBackendSetName- the value to set- Returns:
- this builder
-
port
public ListenerSummary.Builder port(Integer port)
The communication port for the listener.Example: 80
- Parameters:
port- the value to set- Returns:
- this builder
-
protocol
public ListenerSummary.Builder protocol(ListenerProtocols protocol)
The protocol on which the listener accepts connection requests.For public network load balancers, ANY protocol refers to TCP/UDP with the wildcard port. For private network load balancers, ANY protocol refers to TCP/UDP/ICMP (note that ICMP requires isPreserveSourceDestination to be set to true). “ListNetworkLoadBalancersProtocols” API is deprecated and it will not return the updated values. Use the allowed values for the protocol instead.
Example: TCP
- Parameters:
protocol- the value to set- Returns:
- this builder
-
ipVersion
public ListenerSummary.Builder ipVersion(IpVersion ipVersion)
IP version associated with the listener.- Parameters:
ipVersion- the value to set- Returns:
- this builder
-
isPpv2Enabled
public ListenerSummary.Builder isPpv2Enabled(Boolean isPpv2Enabled)
Property to enable/disable PPv2 feature for this listener.- Parameters:
isPpv2Enabled- the value to set- Returns:
- this builder
-
tcpIdleTimeout
public ListenerSummary.Builder tcpIdleTimeout(Integer tcpIdleTimeout)
The duration for TCP idle timeout in seconds.Example: 300
- Parameters:
tcpIdleTimeout- the value to set- Returns:
- this builder
-
udpIdleTimeout
public ListenerSummary.Builder udpIdleTimeout(Integer udpIdleTimeout)
The duration for UDP idle timeout in seconds.Example: 120
- Parameters:
udpIdleTimeout- the value to set- Returns:
- this builder
-
l3IpIdleTimeout
public ListenerSummary.Builder l3IpIdleTimeout(Integer l3IpIdleTimeout)
The duration for L3IP idle timeout in seconds.Example: 200
- Parameters:
l3IpIdleTimeout- the value to set- Returns:
- this builder
-
build
public ListenerSummary build()
-
copy
public ListenerSummary.Builder copy(ListenerSummary model)
-
-