Class Listener.Builder
- java.lang.Object
-
- com.oracle.bmc.loadbalancer.model.Listener.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Listener
build()
Listener.Builder
connectionConfiguration(ConnectionConfiguration connectionConfiguration)
Listener.Builder
copy(Listener model)
Listener.Builder
defaultBackendSetName(String defaultBackendSetName)
The name of the associated backend set.Listener.Builder
hostnameNames(List<String> hostnameNames)
An array of hostname resource names.Listener.Builder
name(String name)
A friendly name for the listener.Listener.Builder
pathRouteSetName(String pathRouteSetName)
Deprecated.Listener.Builder
port(Integer port)
The communication port for the listener.Listener.Builder
protocol(String protocol)
The protocol on which the listener accepts connection requests.Listener.Builder
routingPolicyName(String routingPolicyName)
The name of the routing policy applied to this listener’s traffic.Listener.Builder
ruleSetNames(List<String> ruleSetNames)
The names of theRuleSet
to apply to the listener.Listener.Builder
sslConfiguration(SSLConfiguration sslConfiguration)
-
-
-
Method Detail
-
name
public Listener.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 Listener.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 Listener.Builder port(Integer port)
The communication port for the listener.Example: 80
- Parameters:
port
- the value to set- Returns:
- this builder
-
protocol
public Listener.Builder protocol(String protocol)
The protocol on which the listener accepts connection requests.The supported protocols are HTTP, HTTP2, TCP, and GRPC. You can also use the
listProtocols
operation to get a list of valid protocols.Example: HTTP
- Parameters:
protocol
- the value to set- Returns:
- this builder
-
hostnameNames
public Listener.Builder hostnameNames(List<String> hostnameNames)
An array of hostname resource names.- Parameters:
hostnameNames
- the value to set- Returns:
- this builder
-
pathRouteSetName
public Listener.Builder pathRouteSetName(String pathRouteSetName)
Deprecated.Please use routingPolicies instead.
The name of the set of path-based routing rules,
PathRouteSet
, applied to this listener's traffic.Example: example_path_route_set
- Parameters:
pathRouteSetName
- the value to set- Returns:
- this builder
-
sslConfiguration
public Listener.Builder sslConfiguration(SSLConfiguration sslConfiguration)
-
connectionConfiguration
public Listener.Builder connectionConfiguration(ConnectionConfiguration connectionConfiguration)
-
ruleSetNames
public Listener.Builder ruleSetNames(List<String> ruleSetNames)
The names of theRuleSet
to apply to the listener.Example: ["example_rule_set"]
- Parameters:
ruleSetNames
- the value to set- Returns:
- this builder
-
routingPolicyName
public Listener.Builder routingPolicyName(String routingPolicyName)
The name of the routing policy applied to this listener’s traffic.Example: example_routing_policy_name
- Parameters:
routingPolicyName
- the value to set- Returns:
- this builder
-
build
public Listener build()
-
copy
public Listener.Builder copy(Listener model)
-
-