public class LoadBasedAutoScalingConfiguration
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a layer's load-based auto scaling configuration.
Modifier and Type | Field and Description |
---|---|
private AutoScalingThresholds |
downScaling
An
AutoScalingThresholds object that describes the
downscaling configuration, which defines how and when AWS OpsWorks
reduces the number of instances. |
private java.lang.Boolean |
enable
Whether load-based auto scaling is enabled for the layer.
|
private java.lang.String |
layerId
The layer ID.
|
private AutoScalingThresholds |
upScaling
An
AutoScalingThresholds object that describes the upscaling
configuration, which defines how and when AWS OpsWorks increases the
number of instances. |
Constructor and Description |
---|
LoadBasedAutoScalingConfiguration() |
Modifier and Type | Method and Description |
---|---|
LoadBasedAutoScalingConfiguration |
clone() |
boolean |
equals(java.lang.Object obj) |
AutoScalingThresholds |
getDownScaling()
An
AutoScalingThresholds object that describes the
downscaling configuration, which defines how and when AWS OpsWorks
reduces the number of instances. |
java.lang.Boolean |
getEnable()
Whether load-based auto scaling is enabled for the layer.
|
java.lang.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() |
java.lang.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(java.lang.Boolean enable)
Whether load-based auto scaling is enabled for the layer.
|
void |
setLayerId(java.lang.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. |
java.lang.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(java.lang.Boolean enable)
Whether load-based auto scaling is enabled for the layer.
|
LoadBasedAutoScalingConfiguration |
withLayerId(java.lang.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. |
private java.lang.String layerId
The layer ID.
private java.lang.Boolean enable
Whether load-based auto scaling is enabled for the layer.
private AutoScalingThresholds upScaling
An AutoScalingThresholds
object that describes the upscaling
configuration, which defines how and when AWS OpsWorks increases the
number of instances.
private AutoScalingThresholds downScaling
An AutoScalingThresholds
object that describes the
downscaling configuration, which defines how and when AWS OpsWorks
reduces the number of instances.
public void setLayerId(java.lang.String layerId)
The layer ID.
layerId
- The layer ID.public java.lang.String getLayerId()
The layer ID.
public LoadBasedAutoScalingConfiguration withLayerId(java.lang.String layerId)
The layer ID.
layerId
- The layer ID.public void setEnable(java.lang.Boolean enable)
Whether load-based auto scaling is enabled for the layer.
enable
- Whether load-based auto scaling is enabled for the layer.public java.lang.Boolean getEnable()
Whether load-based auto scaling is enabled for the layer.
public LoadBasedAutoScalingConfiguration withEnable(java.lang.Boolean enable)
Whether load-based auto scaling is enabled for the layer.
enable
- Whether load-based auto scaling is enabled for the layer.public java.lang.Boolean isEnable()
Whether load-based auto scaling is enabled for the layer.
public void setUpScaling(AutoScalingThresholds upScaling)
An 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 AutoScalingThresholds getUpScaling()
An 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 LoadBasedAutoScalingConfiguration withUpScaling(AutoScalingThresholds upScaling)
An 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 void setDownScaling(AutoScalingThresholds downScaling)
An 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 AutoScalingThresholds getDownScaling()
An 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 LoadBasedAutoScalingConfiguration withDownScaling(AutoScalingThresholds downScaling)
An 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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public LoadBasedAutoScalingConfiguration clone()
clone
in class java.lang.Object