Class ListenerDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.loadbalancer.model.ListenerDetails.Builder
-
- Enclosing class:
- ListenerDetails
public static class ListenerDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListenerDetails
build()
ListenerDetails.Builder
connectionConfiguration(ConnectionConfiguration connectionConfiguration)
ListenerDetails.Builder
copy(ListenerDetails model)
ListenerDetails.Builder
defaultBackendSetName(String defaultBackendSetName)
The name of the associated backend set.ListenerDetails.Builder
hostnameNames(List<String> hostnameNames)
An array of hostname resource names.ListenerDetails.Builder
pathRouteSetName(String pathRouteSetName)
Deprecated.ListenerDetails.Builder
port(Integer port)
The communication port for the listener.ListenerDetails.Builder
protocol(String protocol)
The protocol on which the listener accepts connection requests.ListenerDetails.Builder
routingPolicyName(String routingPolicyName)
The name of the routing policy applied to this listener’s traffic.ListenerDetails.Builder
ruleSetNames(List<String> ruleSetNames)
The names of theRuleSet
to apply to the listener.ListenerDetails.Builder
sslConfiguration(SSLConfigurationDetails sslConfiguration)
-
-
-
Method Detail
-
defaultBackendSetName
public ListenerDetails.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 ListenerDetails.Builder port(Integer port)
The communication port for the listener.Example: 80
- Parameters:
port
- the value to set- Returns:
- this builder
-
protocol
public ListenerDetails.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 ListenerDetails.Builder hostnameNames(List<String> hostnameNames)
An array of hostname resource names.- Parameters:
hostnameNames
- the value to set- Returns:
- this builder
-
pathRouteSetName
public ListenerDetails.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 ListenerDetails.Builder sslConfiguration(SSLConfigurationDetails sslConfiguration)
-
connectionConfiguration
public ListenerDetails.Builder connectionConfiguration(ConnectionConfiguration connectionConfiguration)
-
routingPolicyName
public ListenerDetails.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 ListenerDetails.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 ListenerDetails build()
-
copy
public ListenerDetails.Builder copy(ListenerDetails model)
-
-