Class InstanceGroupPatch
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.cloud.is.vpc.v1.model.InstanceGroupPatch
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class InstanceGroupPatch
extends com.ibm.cloud.sdk.core.service.model.GenericModel
To add or update load balancer specification for an instance group the `membership_count` must first be set to 0.
-
Nested Class Summary
Nested Classes -
Method Summary
Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
newBuilder
-
applicationPort
Gets the applicationPort. The port to use for new load balancer pool members created by this instance group. This property must be set if and only if `load_balancer_pool` has been set.- Returns:
- the applicationPort
-
instanceTemplate
Gets the instanceTemplate. Instance template to use when creating new instances. Instance groups are not compatible with instance templates that specify `true` for `default_trusted_profile.auto_link`.- Returns:
- the instanceTemplate
-
loadBalancer
Gets the loadBalancer. The load balancer associated with `load_balancer_pool`. The load balancer must have `instance_groups_supported` set to `true`. This property must be set if and only if `load_balancer_pool` has been set.- Returns:
- the loadBalancer
-
loadBalancerPool
Gets the loadBalancerPool. If specified, this instance group will manage the load balancer pool. A pool member will be created for each instance created by this group. The specified load balancer pool must not be used by another instance group in the VPC. If set, `load_balancer` and `application_port` must also be set.- Returns:
- the loadBalancerPool
-
membershipCount
Gets the membershipCount. The number of instances in the instance group.- Returns:
- the membershipCount
-
name
Gets the name. The name for this instance group. The name must not be used by another instance group in the region.- Returns:
- the name
-
subnets
Gets the subnets. The subnets to use when creating new instances.- Returns:
- the subnets
-
asPatch
Construct a JSON merge-patch from the InstanceGroupPatch. Note that properties of the InstanceGroupPatch 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 InstanceGroupPatch
-