Package com.ibm.cloud.is.vpc.v1.model
Class LoadBalancerPoolPatch
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.is.vpc.v1.model.LoadBalancerPoolPatch
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class LoadBalancerPoolPatch extends com.ibm.cloud.sdk.core.service.model.GenericModel
LoadBalancerPoolPatch.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
LoadBalancerPoolPatch.Algorithm
The load balancing algorithm.static class
LoadBalancerPoolPatch.Builder
Builder.static interface
LoadBalancerPoolPatch.Protocol
The protocol for this load balancer pool.static interface
LoadBalancerPoolPatch.ProxyProtocol
The PROXY protocol setting for this pool: - `v1`: Enabled with version 1 (human-readable header format) - `v2`: Enabled with version 2 (binary header format) - `disabled`: Disabled For load balancers in the `network` family, this property must be `disabled`.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
algorithm()
Gets the algorithm.Map<String,Object>
asPatch()
Construct a JSON merge-patch from the LoadBalancerPoolPatch.LoadBalancerPoolHealthMonitorPatch
healthMonitor()
Gets the healthMonitor.String
name()
Gets the name.LoadBalancerPoolPatch.Builder
newBuilder()
New builder.String
protocol()
Gets the protocol.String
proxyProtocol()
Gets the proxyProtocol.LoadBalancerPoolSessionPersistencePatch
sessionPersistence()
Gets the sessionPersistence.
-
-
-
Method Detail
-
newBuilder
public LoadBalancerPoolPatch.Builder newBuilder()
New builder.- Returns:
- a LoadBalancerPoolPatch builder
-
algorithm
public String algorithm()
Gets the algorithm. The load balancing algorithm. The `least_connections` algorithm is only supported for load balancers that have `availability` with value `subnet` in the profile.- Returns:
- the algorithm
-
healthMonitor
public LoadBalancerPoolHealthMonitorPatch healthMonitor()
Gets the healthMonitor. The health monitor of this pool.- Returns:
- the healthMonitor
-
name
public String name()
Gets the name. The name for this load balancer pool. The name must not be used by another pool for the load balancer.- Returns:
- the name
-
protocol
public String protocol()
Gets the protocol. The protocol for this load balancer pool. Load balancers in the `network` family support `tcp` and `udp` (if `udp_supported` is `true`). Load balancers in the `application` family support `tcp`, `http` and `https`. If this pool is associated with a load balancer listener, the specified protocol must match, or be compatible with the listener's protocol. At present, the compatible protocols are `http` and `https`.- Returns:
- the protocol
-
proxyProtocol
public String proxyProtocol()
Gets the proxyProtocol. The PROXY protocol setting for this pool: - `v1`: Enabled with version 1 (human-readable header format) - `v2`: Enabled with version 2 (binary header format) - `disabled`: Disabled For load balancers in the `network` family, this property must be `disabled`.- Returns:
- the proxyProtocol
-
sessionPersistence
public LoadBalancerPoolSessionPersistencePatch sessionPersistence()
Gets the sessionPersistence. The session persistence of this pool.- Returns:
- the sessionPersistence
-
asPatch
public Map<String,Object> asPatch()
Construct a JSON merge-patch from the LoadBalancerPoolPatch. Note that properties of the LoadBalancerPoolPatch with null values are not represented in the constructed JSON merge-patch object, but can be explicitly set afterward to signify a property delete.- Returns:
- a JSON merge-patch for the LoadBalancerPoolPatch
-
-