Package com.ibm.cloud.is.vpc.v1.model
Class InstanceGroupManagerPolicyPatch
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.is.vpc.v1.model.InstanceGroupManagerPolicyPatch
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class InstanceGroupManagerPolicyPatch extends com.ibm.cloud.sdk.core.service.model.GenericModel
InstanceGroupManagerPolicyPatch.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InstanceGroupManagerPolicyPatch.Builder
Builder.static interface
InstanceGroupManagerPolicyPatch.MetricType
The type of metric to be evaluated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
asPatch()
Construct a JSON merge-patch from the InstanceGroupManagerPolicyPatch.String
metricType()
Gets the metricType.Long
metricValue()
Gets the metricValue.String
name()
Gets the name.InstanceGroupManagerPolicyPatch.Builder
newBuilder()
New builder.
-
-
-
Method Detail
-
newBuilder
public InstanceGroupManagerPolicyPatch.Builder newBuilder()
New builder.- Returns:
- a InstanceGroupManagerPolicyPatch builder
-
metricType
public String metricType()
Gets the metricType. The type of metric to be evaluated.- Returns:
- the metricType
-
metricValue
public Long metricValue()
Gets the metricValue. The metric value to be evaluated.- Returns:
- the metricValue
-
name
public String name()
Gets the name. The name for this instance group manager policy. The name must not be used by another policy for the instance group manager.- Returns:
- the name
-
asPatch
public Map<String,Object> asPatch()
Construct a JSON merge-patch from the InstanceGroupManagerPolicyPatch. Note that properties of the InstanceGroupManagerPolicyPatch 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 InstanceGroupManagerPolicyPatch
-
-