Class LoadBasedAutoScalingConfiguration
- All Implemented Interfaces:
Serializable
,Cloneable
Describes a layer's load-based auto scaling configuration.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
AnAutoScalingThresholds
object that describes the downscaling configuration, which defines how and when AWS OpsWorks reduces the number of instances.Whether load-based auto scaling is enabled for the layer.The layer ID.AnAutoScalingThresholds
object that describes the upscaling configuration, which defines how and when AWS OpsWorks increases the number of instances.int
hashCode()
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
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.toString()
Returns a string representation of this object; useful for testing and debugging.withDownScaling
(AutoScalingThresholds downScaling) AnAutoScalingThresholds
object that describes the downscaling configuration, which defines how and when AWS OpsWorks reduces the number of instances.withEnable
(Boolean enable) Whether load-based auto scaling is enabled for the layer.withLayerId
(String layerId) The layer ID.withUpScaling
(AutoScalingThresholds upScaling) AnAutoScalingThresholds
object that describes the upscaling configuration, which defines how and when AWS OpsWorks increases the number of instances.
-
Constructor Details
-
LoadBasedAutoScalingConfiguration
public LoadBasedAutoScalingConfiguration()
-
-
Method Details
-
setLayerId
The layer ID.
- Parameters:
layerId
- The layer ID.
-
getLayerId
The layer ID.
- Returns:
- The layer ID.
-
withLayerId
The layer ID.
- Parameters:
layerId
- The layer ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEnable
Whether load-based auto scaling is enabled for the layer.
- Parameters:
enable
- Whether load-based auto scaling is enabled for the layer.
-
getEnable
Whether load-based auto scaling is enabled for the layer.
- Returns:
- Whether load-based auto scaling is enabled for the layer.
-
withEnable
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
Whether load-based auto scaling is enabled for the layer.
- Returns:
- Whether load-based auto scaling is enabled for the layer.
-
setUpScaling
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
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
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
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
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-