public class SetLoadBasedAutoScalingRequest extends AmazonWebServiceRequest implements 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.
Required Permissions : To use this action, an IAM user must have a Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions .
NOOP
Constructor and Description |
---|
SetLoadBasedAutoScalingRequest() |
Modifier and Type | Method and Description |
---|---|
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. |
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
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, 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 String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.