Class LoadBasedAutoScalingConfiguration

    • Constructor Detail

      • LoadBasedAutoScalingConfiguration

        public LoadBasedAutoScalingConfiguration()
    • 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 - An AutoScalingThresholds 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 - An AutoScalingThresholds 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 - An AutoScalingThresholds 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 - An AutoScalingThresholds 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 class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object