|
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. 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.
AWSOpsWorks.setLoadBasedAutoScaling(SetLoadBasedAutoScalingRequest)
,
Serialized FormConstructor Summary | |
---|---|
SetLoadBasedAutoScalingRequest()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
AutoScalingThresholds |
getDownScaling()
An AutoScalingThresholds object with the downscaling
threshold configuration. |
Boolean |
getEnable()
Enables load-based auto scaling for the layer. |
String |
getLayerId()
The layer ID. |
AutoScalingThresholds |
getUpScaling()
An AutoScalingThresholds object with the upscaling
threshold configuration. |
int |
hashCode()
|
Boolean |
isEnable()
Enables load-based auto scaling for the layer. |
void |
setDownScaling(AutoScalingThresholds downScaling)
An AutoScalingThresholds object with the downscaling
threshold configuration. |
void |
setEnable(Boolean enable)
Enables load-based auto scaling for the layer. |
void |
setLayerId(String layerId)
The layer ID. |
void |
setUpScaling(AutoScalingThresholds upScaling)
An AutoScalingThresholds object with the upscaling
threshold configuration. |
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(Boolean enable)
Enables load-based auto scaling for the layer. |
SetLoadBasedAutoScalingRequest |
withLayerId(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 String getLayerId()
public void setLayerId(String layerId)
layerId
- The layer ID.public SetLoadBasedAutoScalingRequest withLayerId(String layerId)
Returns a reference to this object so that method calls can be chained together.
layerId
- The layer ID.
public Boolean isEnable()
public void setEnable(Boolean enable)
enable
- Enables load-based auto scaling for the layer.public SetLoadBasedAutoScalingRequest withEnable(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 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 String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |