public class SetLoadBasedAutoScalingRequest extends AmazonWebServiceRequest implements java.io.Serializable
SetLoadBasedAutoScaling operation.
Specify the load-based auto scaling configuration for a specified layer. For more information, see Managing Load with Time-based and Load-based Instances .
NOTE:To use load-based auto scaling, you must create a set of load-based auto scaling instances. Load-based auto scaling operates only on the instances from that set, so you must ensure that you have created enough instances to handle the maximum anticipated load.
| コンストラクタと説明 |
|---|
SetLoadBasedAutoScalingRequest() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
AutoScalingThresholds |
getDownScaling()
An
AutoScalingThresholds object with the downscaling
threshold configuration. |
java.lang.Boolean |
getEnable()
Enables load-based auto scaling for the layer.
|
java.lang.String |
getLayerId()
The layer ID.
|
AutoScalingThresholds |
getUpScaling()
An
AutoScalingThresholds object with the upscaling
threshold configuration. |
int |
hashCode() |
java.lang.Boolean |
isEnable()
Enables load-based auto scaling for the layer.
|
void |
setDownScaling(AutoScalingThresholds downScaling)
An
AutoScalingThresholds object with the downscaling
threshold configuration. |
void |
setEnable(java.lang.Boolean enable)
Enables load-based auto scaling for the layer.
|
void |
setLayerId(java.lang.String layerId)
The layer ID.
|
void |
setUpScaling(AutoScalingThresholds upScaling)
An
AutoScalingThresholds object with the upscaling
threshold configuration. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SetLoadBasedAutoScalingRequest |
withDownScaling(AutoScalingThresholds downScaling)
An
AutoScalingThresholds object with the downscaling
threshold configuration. |
SetLoadBasedAutoScalingRequest |
withEnable(java.lang.Boolean enable)
Enables load-based auto scaling for the layer.
|
SetLoadBasedAutoScalingRequest |
withLayerId(java.lang.String layerId)
The layer ID.
|
SetLoadBasedAutoScalingRequest |
withUpScaling(AutoScalingThresholds upScaling)
An
AutoScalingThresholds object with the upscaling
threshold configuration. |
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic java.lang.String getLayerId()
public void setLayerId(java.lang.String layerId)
layerId - The layer ID.public SetLoadBasedAutoScalingRequest withLayerId(java.lang.String layerId)
Returns a reference to this object so that method calls can be chained together.
layerId - The layer ID.public java.lang.Boolean isEnable()
public void setEnable(java.lang.Boolean enable)
enable - Enables load-based auto scaling for the layer.public SetLoadBasedAutoScalingRequest withEnable(java.lang.Boolean enable)
Returns a reference to this object so that method calls can be chained together.
enable - Enables load-based auto scaling for the layer.public java.lang.Boolean getEnable()
public AutoScalingThresholds getUpScaling()
AutoScalingThresholds object with the upscaling
threshold configuration. If the load exceeds these thresholds for a
specified amount of time, AWS OpsWorks starts a specified number of
instances.AutoScalingThresholds object with the upscaling
threshold configuration. If the load exceeds these thresholds for a
specified amount of time, AWS OpsWorks starts a specified number of
instances.public void setUpScaling(AutoScalingThresholds upScaling)
AutoScalingThresholds object with the upscaling
threshold configuration. If the load exceeds these thresholds for a
specified amount of time, AWS OpsWorks starts a specified number of
instances.upScaling - An AutoScalingThresholds object with the upscaling
threshold configuration. If the load exceeds these thresholds for a
specified amount of time, AWS OpsWorks starts a specified number of
instances.public SetLoadBasedAutoScalingRequest withUpScaling(AutoScalingThresholds upScaling)
AutoScalingThresholds object with the upscaling
threshold configuration. If the load exceeds these thresholds for a
specified amount of time, AWS OpsWorks starts a specified number of
instances.
Returns a reference to this object so that method calls can be chained together.
upScaling - An AutoScalingThresholds object with the upscaling
threshold configuration. If the load exceeds these thresholds for a
specified amount of time, AWS OpsWorks starts a specified number of
instances.public AutoScalingThresholds getDownScaling()
AutoScalingThresholds object with the downscaling
threshold configuration. If the load falls below these thresholds for
a specified amount of time, AWS OpsWorks stops a specified number of
instances.AutoScalingThresholds object with the downscaling
threshold configuration. If the load falls below these thresholds for
a specified amount of time, AWS OpsWorks stops a specified number of
instances.public void setDownScaling(AutoScalingThresholds downScaling)
AutoScalingThresholds object with the downscaling
threshold configuration. If the load falls below these thresholds for
a specified amount of time, AWS OpsWorks stops a specified number of
instances.downScaling - An AutoScalingThresholds object with the downscaling
threshold configuration. If the load falls below these thresholds for
a specified amount of time, AWS OpsWorks stops a specified number of
instances.public SetLoadBasedAutoScalingRequest withDownScaling(AutoScalingThresholds downScaling)
AutoScalingThresholds object with the downscaling
threshold configuration. If the load falls below these thresholds for
a specified amount of time, AWS OpsWorks stops a specified number of
instances.
Returns a reference to this object so that method calls can be chained together.
downScaling - An AutoScalingThresholds object with the downscaling
threshold configuration. If the load falls below these thresholds for
a specified amount of time, AWS OpsWorks stops a specified number of
instances.public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object