Package com.ibm.cloud.is.vpc.v1.model
Class LoadBalancerPoolFailsafePolicyPrototype
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.is.vpc.v1.model.LoadBalancerPoolFailsafePolicyPrototype
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class LoadBalancerPoolFailsafePolicyPrototype extends com.ibm.cloud.sdk.core.service.model.GenericModel
LoadBalancerPoolFailsafePolicyPrototype.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
LoadBalancerPoolFailsafePolicyPrototype.Action
A load balancer failsafe policy action: - `bypass`: Bypasses the members and sends requests directly to their destination IPs.static class
LoadBalancerPoolFailsafePolicyPrototype.Builder
Builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
action()
Gets the action.LoadBalancerPoolFailsafePolicyPrototype.Builder
newBuilder()
New builder.LoadBalancerPoolIdentity
target()
Gets the target.
-
-
-
Method Detail
-
newBuilder
public LoadBalancerPoolFailsafePolicyPrototype.Builder newBuilder()
New builder.- Returns:
- a LoadBalancerPoolFailsafePolicyPrototype 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 LoadBalancerPoolIdentity 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`. - Have a `failsafe_policy.action` of `fail` or `drop` If specified, `action` must be `forward`.- Returns:
- the target
-
-