Package com.ibm.cloud.is.vpc.v1.model
Class LoadBalancerPoolMemberPatch
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.is.vpc.v1.model.LoadBalancerPoolMemberPatch
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class LoadBalancerPoolMemberPatch extends com.ibm.cloud.sdk.core.service.model.GenericModel
LoadBalancerPoolMemberPatch.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LoadBalancerPoolMemberPatch.Builder
Builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
asPatch()
Construct a JSON merge-patch from the LoadBalancerPoolMemberPatch.LoadBalancerPoolMemberPatch.Builder
newBuilder()
New builder.Long
port()
Gets the port.LoadBalancerPoolMemberTargetPrototype
target()
Gets the target.Long
weight()
Gets the weight.
-
-
-
Method Detail
-
newBuilder
public LoadBalancerPoolMemberPatch.Builder newBuilder()
New builder.- Returns:
- a LoadBalancerPoolMemberPatch builder
-
port
public Long port()
Gets the port. The port the member will receive load balancer traffic on. Applies only to load balancer traffic received on a listener with a single port. (If the traffic is received on a listener with a port range, the member will receive the traffic on the same port the listener received it on.) This port will also be used for health checks unless the `port` property of `health_monitor` property is specified. The port must be unique across all members for all pools associated with this pool's listener.- Returns:
- the port
-
target
public LoadBalancerPoolMemberTargetPrototype target()
Gets the target. The pool member target. Load balancers in the `network` family support virtual server instances. Load balancers in the `application` family support IP addresses. If the load balancer has route mode enabled, the member must be in a zone the load balancer has a subnet in.- Returns:
- the target
-
weight
public Long weight()
Gets the weight. The weight of the server member. If specified, the pool algorithm must be `weighted_round_robin`.- Returns:
- the weight
-
asPatch
public Map<String,Object> asPatch()
Construct a JSON merge-patch from the LoadBalancerPoolMemberPatch. Note that properties of the LoadBalancerPoolMemberPatch 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 LoadBalancerPoolMemberPatch
-
-