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 LoadBasedAutoScalingConfigurationclone()booleanequals(Object obj)AutoScalingThresholdsgetDownScaling()AnAutoScalingThresholdsobject that describes the downscaling configuration, which defines how and when AWS OpsWorks reduces the number of instances.BooleangetEnable()Whether load-based auto scaling is enabled for the layer.StringgetLayerId()The layer ID.AutoScalingThresholdsgetUpScaling()AnAutoScalingThresholdsobject that describes the upscaling configuration, which defines how and when AWS OpsWorks increases the number of instances.inthashCode()BooleanisEnable()Whether load-based auto scaling is enabled for the layer.voidsetDownScaling(AutoScalingThresholds downScaling)AnAutoScalingThresholdsobject that describes the downscaling configuration, which defines how and when AWS OpsWorks reduces the number of instances.voidsetEnable(Boolean enable)Whether load-based auto scaling is enabled for the layer.voidsetLayerId(String layerId)The layer ID.voidsetUpScaling(AutoScalingThresholds upScaling)AnAutoScalingThresholdsobject that describes the upscaling configuration, which defines how and when AWS OpsWorks increases the number of instances.StringtoString()Returns a string representation of this object; useful for testing and debugging.LoadBasedAutoScalingConfigurationwithDownScaling(AutoScalingThresholds downScaling)AnAutoScalingThresholdsobject that describes the downscaling configuration, which defines how and when AWS OpsWorks reduces the number of instances.LoadBasedAutoScalingConfigurationwithEnable(Boolean enable)Whether load-based auto scaling is enabled for the layer.LoadBasedAutoScalingConfigurationwithLayerId(String layerId)The layer ID.LoadBasedAutoScalingConfigurationwithUpScaling(AutoScalingThresholds upScaling)AnAutoScalingThresholdsobject 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
AutoScalingThresholdsobject that describes the upscaling configuration, which defines how and when AWS OpsWorks increases the number of instances.- Parameters:
upScaling- AnAutoScalingThresholdsobject that describes the upscaling configuration, which defines how and when AWS OpsWorks increases the number of instances.
-
getUpScaling
public AutoScalingThresholds getUpScaling()
An
AutoScalingThresholdsobject that describes the upscaling configuration, which defines how and when AWS OpsWorks increases the number of instances.- Returns:
- An
AutoScalingThresholdsobject that describes the upscaling configuration, which defines how and when AWS OpsWorks increases the number of instances.
-
withUpScaling
public LoadBasedAutoScalingConfiguration withUpScaling(AutoScalingThresholds upScaling)
An
AutoScalingThresholdsobject that describes the upscaling configuration, which defines how and when AWS OpsWorks increases the number of instances.- Parameters:
upScaling- AnAutoScalingThresholdsobject 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
AutoScalingThresholdsobject that describes the downscaling configuration, which defines how and when AWS OpsWorks reduces the number of instances.- Parameters:
downScaling- AnAutoScalingThresholdsobject that describes the downscaling configuration, which defines how and when AWS OpsWorks reduces the number of instances.
-
getDownScaling
public AutoScalingThresholds getDownScaling()
An
AutoScalingThresholdsobject that describes the downscaling configuration, which defines how and when AWS OpsWorks reduces the number of instances.- Returns:
- An
AutoScalingThresholdsobject that describes the downscaling configuration, which defines how and when AWS OpsWorks reduces the number of instances.
-
withDownScaling
public LoadBasedAutoScalingConfiguration withDownScaling(AutoScalingThresholds downScaling)
An
AutoScalingThresholdsobject that describes the downscaling configuration, which defines how and when AWS OpsWorks reduces the number of instances.- Parameters:
downScaling- AnAutoScalingThresholdsobject 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public LoadBasedAutoScalingConfiguration clone()
-
-