public class LoadBasedAutoScalingConfiguration extends Object implements Serializable, Cloneable
Describes a layer's load-based auto scaling configuration.
Constructor and Description |
---|
LoadBasedAutoScalingConfiguration() |
Modifier and Type | Method and Description |
---|---|
LoadBasedAutoScalingConfiguration |
clone() |
boolean |
equals(Object obj) |
AutoScalingThresholds |
getDownScaling()
An
AutoScalingThresholds object that describes the
downscaling configuration, which defines how and when AWS OpsWorks
reduces the number of instances. |
Boolean |
getEnable()
Whether load-based auto scaling is enabled for the layer.
|
String |
getLayerId()
The layer ID.
|
AutoScalingThresholds |
getUpScaling()
An
AutoScalingThresholds object that describes the
upscaling configuration, which defines how and when AWS OpsWorks
increases the number of instances. |
int |
hashCode() |
Boolean |
isEnable()
Whether load-based auto scaling is enabled for the layer.
|
void |
setDownScaling(AutoScalingThresholds downScaling)
An
AutoScalingThresholds object that describes the
downscaling configuration, which defines how and when AWS OpsWorks
reduces the number of instances. |
void |
setEnable(Boolean enable)
Whether load-based auto scaling is enabled for the layer.
|
void |
setLayerId(String layerId)
The layer ID.
|
void |
setUpScaling(AutoScalingThresholds upScaling)
An
AutoScalingThresholds object that describes the
upscaling configuration, which defines how and when AWS OpsWorks
increases the number of instances. |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
LoadBasedAutoScalingConfiguration |
withDownScaling(AutoScalingThresholds downScaling)
An
AutoScalingThresholds object that describes the
downscaling configuration, which defines how and when AWS OpsWorks
reduces the number of instances. |
LoadBasedAutoScalingConfiguration |
withEnable(Boolean enable)
Whether load-based auto scaling is enabled for the layer.
|
LoadBasedAutoScalingConfiguration |
withLayerId(String layerId)
The layer ID.
|
LoadBasedAutoScalingConfiguration |
withUpScaling(AutoScalingThresholds upScaling)
An
AutoScalingThresholds object that describes the
upscaling configuration, which defines how and when AWS OpsWorks
increases the number of instances. |
public String getLayerId()
public void setLayerId(String layerId)
layerId
- The layer ID.public LoadBasedAutoScalingConfiguration 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
- Whether load-based auto scaling is enabled for the layer.public LoadBasedAutoScalingConfiguration withEnable(Boolean enable)
Returns a reference to this object so that method calls can be chained together.
enable
- Whether load-based auto scaling is enabled for the layer.public Boolean getEnable()
public AutoScalingThresholds getUpScaling()
AutoScalingThresholds
object that describes the
upscaling configuration, which defines how and when AWS OpsWorks
increases the number of instances.AutoScalingThresholds
object that describes the
upscaling configuration, which defines how and when AWS OpsWorks
increases the number of instances.public void setUpScaling(AutoScalingThresholds upScaling)
AutoScalingThresholds
object that describes the
upscaling configuration, which defines how and when AWS OpsWorks
increases the number of instances.upScaling
- An AutoScalingThresholds
object that describes the
upscaling configuration, which defines how and when AWS OpsWorks
increases the number of instances.public LoadBasedAutoScalingConfiguration withUpScaling(AutoScalingThresholds upScaling)
AutoScalingThresholds
object that describes the
upscaling configuration, which defines how and when AWS OpsWorks
increases the number of instances.
Returns a reference to this object so that method calls can be chained together.
upScaling
- An AutoScalingThresholds
object that describes the
upscaling configuration, which defines how and when AWS OpsWorks
increases the number of instances.public AutoScalingThresholds getDownScaling()
AutoScalingThresholds
object that describes the
downscaling configuration, which defines how and when AWS OpsWorks
reduces the number of instances.AutoScalingThresholds
object that describes the
downscaling configuration, which defines how and when AWS OpsWorks
reduces the number of instances.public void setDownScaling(AutoScalingThresholds downScaling)
AutoScalingThresholds
object that describes the
downscaling configuration, which defines how and when AWS OpsWorks
reduces the number of instances.downScaling
- An AutoScalingThresholds
object that describes the
downscaling configuration, which defines how and when AWS OpsWorks
reduces the number of instances.public LoadBasedAutoScalingConfiguration withDownScaling(AutoScalingThresholds downScaling)
AutoScalingThresholds
object that describes the
downscaling configuration, which defines how and when AWS OpsWorks
reduces the number of instances.
Returns a reference to this object so that method calls can be chained together.
downScaling
- An AutoScalingThresholds
object that describes the
downscaling configuration, which defines how and when AWS OpsWorks
reduces the number of instances.public String toString()
toString
in class Object
Object.toString()
public LoadBasedAutoScalingConfiguration clone()
Copyright © 2015. All rights reserved.