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 Listenerbuild()Listener.BuilderconnectionConfiguration(ConnectionConfiguration connectionConfiguration)Listener.Buildercopy(Listener model)Listener.BuilderdefaultBackendSetName(String defaultBackendSetName)The name of the associated backend set.Listener.BuilderhostnameNames(List<String> hostnameNames)An array of hostname resource names.Listener.Buildername(String name)A friendly name for the listener.Listener.BuilderpathRouteSetName(String pathRouteSetName)Deprecated.Listener.Builderport(Integer port)The communication port for the listener.Listener.Builderprotocol(String protocol)The protocol on which the listener accepts connection requests.Listener.BuilderroutingPolicyName(String routingPolicyName)The name of the routing policy applied to this listener’s traffic.Listener.BuilderruleSetNames(List<String> ruleSetNames)The names of theRuleSetto apply to the listener.Listener.BuildersslConfiguration(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.To get a list of valid protocols, use the
listProtocolsoperation.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 theRuleSetto 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)
-
-