|
Did this page help you?Yes No Tell us about it... |
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.opsworks.model.SetLoadBasedAutoScalingRequest
public class SetLoadBasedAutoScalingRequest
Container for the parameters to the SetLoadBasedAutoScaling operation.
Specify the load-based auto scaling configuration for a specified layer.
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.
AWSOpsWorks.setLoadBasedAutoScaling(SetLoadBasedAutoScalingRequest),
Serialized Form| Constructor Summary | |
|---|---|
SetLoadBasedAutoScalingRequest()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
|---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SetLoadBasedAutoScalingRequest()
| Method Detail |
|---|
public 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, OpsWorks stops a specified number of
instances.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||