public class LoadBasedAutoScalingConfiguration extends Object implements Serializable
Describes a layer's load-based auto scaling configuration.
Constructor and Description |
---|
LoadBasedAutoScalingConfiguration() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
AutoScalingThresholds |
getDownScaling()
A
LoadBasedAutoscalingInstruction 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()
A
LoadBasedAutoscalingInstruction 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)
A
LoadBasedAutoscalingInstruction 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)
A
LoadBasedAutoscalingInstruction 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)
A
LoadBasedAutoscalingInstruction 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)
A
LoadBasedAutoscalingInstruction 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()
LoadBasedAutoscalingInstruction
object that describes
the upscaling configuration, which defines how and when AWS OpsWorks
increases the number of instances.LoadBasedAutoscalingInstruction
object that describes
the upscaling configuration, which defines how and when AWS OpsWorks
increases the number of instances.public void setUpScaling(AutoScalingThresholds upScaling)
LoadBasedAutoscalingInstruction
object that describes
the upscaling configuration, which defines how and when AWS OpsWorks
increases the number of instances.upScaling
- A LoadBasedAutoscalingInstruction
object that describes
the upscaling configuration, which defines how and when AWS OpsWorks
increases the number of instances.public LoadBasedAutoScalingConfiguration withUpScaling(AutoScalingThresholds upScaling)
LoadBasedAutoscalingInstruction
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
- A LoadBasedAutoscalingInstruction
object that describes
the upscaling configuration, which defines how and when AWS OpsWorks
increases the number of instances.public AutoScalingThresholds getDownScaling()
LoadBasedAutoscalingInstruction
object that describes
the downscaling configuration, which defines how and when AWS OpsWorks
reduces the number of instances.LoadBasedAutoscalingInstruction
object that describes
the downscaling configuration, which defines how and when AWS OpsWorks
reduces the number of instances.public void setDownScaling(AutoScalingThresholds downScaling)
LoadBasedAutoscalingInstruction
object that describes
the downscaling configuration, which defines how and when AWS OpsWorks
reduces the number of instances.downScaling
- A LoadBasedAutoscalingInstruction
object that describes
the downscaling configuration, which defines how and when AWS OpsWorks
reduces the number of instances.public LoadBasedAutoScalingConfiguration withDownScaling(AutoScalingThresholds downScaling)
LoadBasedAutoscalingInstruction
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
- A LoadBasedAutoscalingInstruction
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()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.