Class AutoScalePolicy
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.bds.model.AutoScalePolicy
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20190531") public final class AutoScalePolicy extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelThis model for autoscaling policy is deprecated and not supported for ODH clusters.Use the AutoScalePolicyDetails model to manage autoscale policy details for ODH clusters. 
 Note: Objects should always be created or deserialized using theAutoScalePolicy.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theAutoScalePolicy.Builder, which maintain a set of all explicitly set fields calledAutoScalePolicy.Builder.__explicitlySet__. ThehashCode()andequals(Object)methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classAutoScalePolicy.Builderstatic classAutoScalePolicy.PolicyTypeTypes of autoscale policies.
 - 
Constructor SummaryConstructors Constructor Description AutoScalePolicy(AutoScalePolicy.PolicyType policyType, List<AutoScalePolicyRule> rules)Deprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AutoScalePolicy.Builderbuilder()Create a new builder.booleanequals(Object o)AutoScalePolicy.PolicyTypegetPolicyType()Types of autoscale policies.List<AutoScalePolicyRule>getRules()The list of rules for autoscaling.inthashCode()AutoScalePolicy.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
 
- 
- 
- 
Constructor Detail- 
AutoScalePolicy@Deprecated @ConstructorProperties({"policyType","rules"}) public AutoScalePolicy(AutoScalePolicy.PolicyType policyType, List<AutoScalePolicyRule> rules) Deprecated.
 
- 
 - 
Method Detail- 
builderpublic static AutoScalePolicy.Builder builder() Create a new builder.
 - 
toBuilderpublic AutoScalePolicy.Builder toBuilder() 
 - 
getPolicyTypepublic AutoScalePolicy.PolicyType getPolicyType() Types of autoscale policies.Options are SCHEDULE-BASED or THRESHOLD-BASED. (Only THRESHOLD-BASED is supported in this release.) - Returns:
- the value
 
 - 
getRulespublic List<AutoScalePolicyRule> getRules() The list of rules for autoscaling.If an action has multiple rules, the last rule in the array will be applied. - Returns:
- the value
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
toStringpublic String toString(boolean includeByteArrayContents) Return a string representation of the object.- Parameters:
- includeByteArrayContents- true to include the full contents of byte arrays
- Returns:
- string representation
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 
- 
 
-