Package com.ibm.cloud.is.vpc.v1.model
Class LoadBalancerPoolFailsafePolicyPatch
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.is.vpc.v1.model.LoadBalancerPoolFailsafePolicyPatch
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class LoadBalancerPoolFailsafePolicyPatch extends com.ibm.cloud.sdk.core.service.model.GenericModel
The failsafe policy for this load balancer pool.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
LoadBalancerPoolFailsafePolicyPatch.Action
A load balancer failsafe policy action: - `bypass`: Bypasses the members and sends requests directly to their destination IPs.static class
LoadBalancerPoolFailsafePolicyPatch.Builder
Builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
action()
Gets the action.LoadBalancerPoolFailsafePolicyPatch.Builder
newBuilder()
New builder.LoadBalancerPoolFailsafePolicyTargetPatch
target()
Gets the target.
-
-
-
Method Detail
-
newBuilder
public LoadBalancerPoolFailsafePolicyPatch.Builder newBuilder()
New builder.- Returns:
- a LoadBalancerPoolFailsafePolicyPatch builder
-
action
public String action()
Gets the action. A load balancer failsafe policy action: - `bypass`: Bypasses the members and sends requests directly to their destination IPs. If specified, this load balancer must have `route_mode` enabled. - `drop`: Drops requests. If specified, the pool protocol must be `tcp`. - `fail`: Fails requests with an HTTP `503` status code. If specified, the pool protocol must be `http` or `https`. - `forward`: Forwards requests to the `target` pool. If specified, the pool protocol must be `http` or `https`. The specified value must be listed in the `failsafe_policy_actions` for this pool's load balancer.- Returns:
- the action
-
target
public LoadBalancerPoolFailsafePolicyTargetPatch target()
Gets the target. The failsafe target pool to forward to. The specified pool must: - Belong to this load balancer - Have the same `protocol` as this pool, or have a compatible protocol. At present, the compatible protocols are `http` and `https`. - Not have a `failsafe_policy.action` of `forward` or `bypass`. If specified, `action` must be `forward`. Specify `null` to remove an existing failsafe target pool.- Returns:
- the target
-
-