public static class ListenerDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ListenerDetails |
build() |
ListenerDetails.Builder |
copy(ListenerDetails model) |
ListenerDetails.Builder |
defaultBackendSetName(String defaultBackendSetName)
The name of the associated backend set.
|
ListenerDetails.Builder |
ipVersion(IpVersion ipVersion)
IP version associated with the listener.
|
ListenerDetails.Builder |
isPpv2Enabled(Boolean isPpv2Enabled)
Property to enable/disable PPv2 feature for this listener.
|
ListenerDetails.Builder |
l3IpIdleTimeout(Integer l3IpIdleTimeout)
The duration for L3IP idle timeout in seconds.
|
ListenerDetails.Builder |
name(String name)
A friendly name for the listener.
|
ListenerDetails.Builder |
port(Integer port)
The communication port for the listener.
|
ListenerDetails.Builder |
protocol(ListenerProtocols protocol)
The protocol on which the listener accepts connection requests.
|
ListenerDetails.Builder |
tcpIdleTimeout(Integer tcpIdleTimeout)
The duration for TCP idle timeout in seconds.
|
ListenerDetails.Builder |
udpIdleTimeout(Integer udpIdleTimeout)
The duration for UDP idle timeout in seconds.
|
public ListenerDetails.Builder name(String name)
A friendly name for the listener. It must be unique and it cannot be changed.
Example: example_listener
name
- the value to setpublic ListenerDetails.Builder defaultBackendSetName(String defaultBackendSetName)
The name of the associated backend set.
Example: example_backend_set
defaultBackendSetName
- the value to setpublic ListenerDetails.Builder ipVersion(IpVersion ipVersion)
IP version associated with the listener.
ipVersion
- the value to setpublic ListenerDetails.Builder port(Integer port)
The communication port for the listener.
Example: 80
port
- the value to setpublic ListenerDetails.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
protocol
- the value to setpublic ListenerDetails.Builder isPpv2Enabled(Boolean isPpv2Enabled)
Property to enable/disable PPv2 feature for this listener.
isPpv2Enabled
- the value to setpublic ListenerDetails.Builder tcpIdleTimeout(Integer tcpIdleTimeout)
The duration for TCP idle timeout in seconds. Example: 300
tcpIdleTimeout
- the value to setpublic ListenerDetails.Builder udpIdleTimeout(Integer udpIdleTimeout)
The duration for UDP idle timeout in seconds. Example: 120
udpIdleTimeout
- the value to setpublic ListenerDetails.Builder l3IpIdleTimeout(Integer l3IpIdleTimeout)
The duration for L3IP idle timeout in seconds. Example: 200
l3IpIdleTimeout
- the value to setpublic ListenerDetails build()
public ListenerDetails.Builder copy(ListenerDetails model)
Copyright © 2016–2024. All rights reserved.