Class CreateListenerDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.loadbalancer.model.CreateListenerDetails.Builder
-
- Enclosing class:
- CreateListenerDetails
public static class CreateListenerDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
defaultBackendSetName
public CreateListenerDetails.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 CreateListenerDetails.Builder port(Integer port)
The communication port for the listener.Example: 80
- Parameters:
port
- the value to set- Returns:
- this builder
-
protocol
public CreateListenerDetails.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 CreateListenerDetails.Builder hostnameNames(List<String> hostnameNames)
An array of hostname resource names.- Parameters:
hostnameNames
- the value to set- Returns:
- this builder
-
pathRouteSetName
public CreateListenerDetails.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 CreateListenerDetails.Builder sslConfiguration(SSLConfigurationDetails sslConfiguration)
-
connectionConfiguration
public CreateListenerDetails.Builder connectionConfiguration(ConnectionConfiguration connectionConfiguration)
-
name
public CreateListenerDetails.Builder name(String name)
A friendly name for the listener.It must be unique and it cannot be changed. Avoid entering confidential information.
Example: example_listener
- Parameters:
name
- the value to set- Returns:
- this builder
-
routingPolicyName
public CreateListenerDetails.Builder routingPolicyName(String routingPolicyName)
The name of the routing policy applied to this listener’s traffic.Example: example_routing_policy
- Parameters:
routingPolicyName
- the value to set- Returns:
- this builder
-
ruleSetNames
public CreateListenerDetails.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
-
build
public CreateListenerDetails build()
-
copy
public CreateListenerDetails.Builder copy(CreateListenerDetails model)
-
-