public static class CreateListenerDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CreateListenerDetails |
build() |
CreateListenerDetails.Builder |
copy(CreateListenerDetails model) |
CreateListenerDetails.Builder |
defaultBackendSetName(String defaultBackendSetName)
The name of the associated backend set.
|
CreateListenerDetails.Builder |
ipVersion(IpVersion ipVersion)
IP version associated with the listener.
|
CreateListenerDetails.Builder |
name(String name)
A friendly name for the listener.
|
CreateListenerDetails.Builder |
port(Integer port)
The communication port for the listener.
|
CreateListenerDetails.Builder |
protocol(ListenerProtocols protocol)
The protocol on which the listener accepts connection requests.
|
public CreateListenerDetails.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 CreateListenerDetails.Builder defaultBackendSetName(String defaultBackendSetName)
The name of the associated backend set.
Example: example_backend_set
defaultBackendSetName
- the value to setpublic CreateListenerDetails.Builder port(Integer port)
The communication port for the listener.
Example: 80
port
- the value to setpublic CreateListenerDetails.Builder protocol(ListenerProtocols protocol)
The protocol on which the listener accepts connection requests. For public network load
balancers, ANY protocol refers to TCP/UDP. For private network load balancers, ANY
protocol refers to TCP/UDP/ICMP (note that ICMP requires isPreserveSourceDestination to
be set to true). To get a list of valid protocols, use the listNetworkLoadBalancersProtocols
operation.
Example: TCP
protocol
- the value to setpublic CreateListenerDetails.Builder ipVersion(IpVersion ipVersion)
IP version associated with the listener.
ipVersion
- the value to setpublic CreateListenerDetails build()
public CreateListenerDetails.Builder copy(CreateListenerDetails model)
Copyright © 2016–2023. All rights reserved.