@Generated(value="OracleSDKGenerator", comments="API Version: 20190101") public final class AutoScalingPolicy extends ScalingPolicy
The scaling policy to enable autoscaling on the model deployment.
Note: Objects should always be created or deserialized using the AutoScalingPolicy.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 the AutoScalingPolicy.Builder
, which maintain a
set of all explicitly set fields called AutoScalingPolicy.Builder.__explicitlySet__
. The hashCode()
and equals(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
).
Modifier and Type | Class and Description |
---|---|
static class |
AutoScalingPolicy.Builder |
ScalingPolicy.PolicyType
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
AutoScalingPolicy(Integer coolDownInSeconds,
Boolean isEnabled,
List<AutoScalingPolicyDetails> autoScalingPolicies)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static AutoScalingPolicy.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
List<AutoScalingPolicyDetails> |
getAutoScalingPolicies()
The list of autoscaling policy details.
|
Integer |
getCoolDownInSeconds()
For threshold-based autoscaling policies, this value is the minimum period of time to wait
between scaling actions.
|
Boolean |
getIsEnabled()
Whether the autoscaling policy is enabled.
|
int |
hashCode() |
AutoScalingPolicy.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated public AutoScalingPolicy(Integer coolDownInSeconds, Boolean isEnabled, List<AutoScalingPolicyDetails> autoScalingPolicies)
public static AutoScalingPolicy.Builder builder()
Create a new builder.
public AutoScalingPolicy.Builder toBuilder()
public Integer getCoolDownInSeconds()
For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. The cooldown period gives the system time to stabilize before rescaling. The minimum value is 600 seconds, which is also the default. The cooldown period starts when the model deployment becomes ACTIVE after the scaling operation.
public Boolean getIsEnabled()
Whether the autoscaling policy is enabled.
public List<AutoScalingPolicyDetails> getAutoScalingPolicies()
The list of autoscaling policy details.
public String toString()
toString
in class ScalingPolicy
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
toString
in class ScalingPolicy
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class ScalingPolicy
public int hashCode()
hashCode
in class ScalingPolicy
Copyright © 2016–2024. All rights reserved.