Class LoadBasedAutoScalingConfiguration
- java.lang.Object
-
- com.amazonaws.services.opsworks.model.LoadBasedAutoScalingConfiguration
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class LoadBasedAutoScalingConfiguration extends Object implements Serializable, Cloneable
Describes a layer's load-based auto scaling configuration.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LoadBasedAutoScalingConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LoadBasedAutoScalingConfiguration
clone()
boolean
equals(Object obj)
AutoScalingThresholds
getDownScaling()
AnAutoScalingThresholds
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()
AnAutoScalingThresholds
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)
AnAutoScalingThresholds
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)
AnAutoScalingThresholds
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)
AnAutoScalingThresholds
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)
AnAutoScalingThresholds
object that describes the upscaling configuration, which defines how and when AWS OpsWorks increases the number of instances.
-
-
-
Method Detail
-
setLayerId
public void setLayerId(String layerId)
The layer ID.
- Parameters:
layerId
- The layer ID.
-
getLayerId
public String getLayerId()
The layer ID.
- Returns:
- The layer ID.
-
withLayerId
public LoadBasedAutoScalingConfiguration withLayerId(String layerId)
The layer ID.
- Parameters:
layerId
- The layer ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEnable
public void setEnable(Boolean enable)
Whether load-based auto scaling is enabled for the layer.
- Parameters:
enable
- Whether load-based auto scaling is enabled for the layer.
-
getEnable
public Boolean getEnable()
Whether load-based auto scaling is enabled for the layer.
- Returns:
- Whether load-based auto scaling is enabled for the layer.
-
withEnable
public LoadBasedAutoScalingConfiguration withEnable(Boolean enable)
Whether load-based auto scaling is enabled for the layer.
- Parameters:
enable
- Whether load-based auto scaling is enabled for the layer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isEnable
public Boolean isEnable()
Whether load-based auto scaling is enabled for the layer.
- Returns:
- Whether load-based auto scaling is enabled for the layer.
-
setUpScaling
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.- Parameters:
upScaling
- AnAutoScalingThresholds
object that describes the upscaling configuration, which defines how and when AWS OpsWorks increases the number of instances.
-
getUpScaling
public AutoScalingThresholds getUpScaling()
An
AutoScalingThresholds
object that describes the upscaling configuration, which defines how and when AWS OpsWorks increases the number of instances.- Returns:
- An
AutoScalingThresholds
object that describes the upscaling configuration, which defines how and when AWS OpsWorks increases the number of instances.
-
withUpScaling
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.- Parameters:
upScaling
- AnAutoScalingThresholds
object that describes the upscaling configuration, which defines how and when AWS OpsWorks increases the number of instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDownScaling
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.- Parameters:
downScaling
- AnAutoScalingThresholds
object that describes the downscaling configuration, which defines how and when AWS OpsWorks reduces the number of instances.
-
getDownScaling
public AutoScalingThresholds getDownScaling()
An
AutoScalingThresholds
object that describes the downscaling configuration, which defines how and when AWS OpsWorks reduces the number of instances.- Returns:
- An
AutoScalingThresholds
object that describes the downscaling configuration, which defines how and when AWS OpsWorks reduces the number of instances.
-
withDownScaling
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.- Parameters:
downScaling
- AnAutoScalingThresholds
object that describes the downscaling configuration, which defines how and when AWS OpsWorks reduces the number of instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public LoadBasedAutoScalingConfiguration clone()
-
-