Class SetLoadBasedAutoScalingRequest

    • Constructor Detail

      • SetLoadBasedAutoScalingRequest

        public SetLoadBasedAutoScalingRequest()
    • 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 SetLoadBasedAutoScalingRequest 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)

        Enables load-based auto scaling for the layer.

        Parameters:
        enable - Enables load-based auto scaling for the layer.
      • getEnable

        public Boolean getEnable()

        Enables load-based auto scaling for the layer.

        Returns:
        Enables load-based auto scaling for the layer.
      • withEnable

        public SetLoadBasedAutoScalingRequest withEnable​(Boolean enable)

        Enables load-based auto scaling for the layer.

        Parameters:
        enable - Enables load-based auto scaling for the layer.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • isEnable

        public Boolean isEnable()

        Enables load-based auto scaling for the layer.

        Returns:
        Enables load-based auto scaling for the layer.
      • setUpScaling

        public void setUpScaling​(AutoScalingThresholds upScaling)

        An AutoScalingThresholds object with the upscaling threshold configuration. If the load exceeds these thresholds for a specified amount of time, AWS OpsWorks starts a specified number of instances.

        Parameters:
        upScaling - An AutoScalingThresholds object with the upscaling threshold configuration. If the load exceeds these thresholds for a specified amount of time, AWS OpsWorks starts a specified number of instances.
      • getUpScaling

        public AutoScalingThresholds getUpScaling()

        An AutoScalingThresholds object with the upscaling threshold configuration. If the load exceeds these thresholds for a specified amount of time, AWS OpsWorks starts a specified number of instances.

        Returns:
        An AutoScalingThresholds object with the upscaling threshold configuration. If the load exceeds these thresholds for a specified amount of time, AWS OpsWorks starts a specified number of instances.
      • withUpScaling

        public SetLoadBasedAutoScalingRequest withUpScaling​(AutoScalingThresholds upScaling)

        An AutoScalingThresholds object with the upscaling threshold configuration. If the load exceeds these thresholds for a specified amount of time, AWS OpsWorks starts a specified number of instances.

        Parameters:
        upScaling - An AutoScalingThresholds object with the upscaling threshold configuration. If the load exceeds these thresholds for a specified amount of time, AWS OpsWorks starts a specified 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 with the downscaling threshold configuration. If the load falls below these thresholds for a specified amount of time, AWS OpsWorks stops a specified number of instances.

        Parameters:
        downScaling - An AutoScalingThresholds object with the downscaling threshold configuration. If the load falls below these thresholds for a specified amount of time, AWS OpsWorks stops a specified number of instances.
      • getDownScaling

        public AutoScalingThresholds getDownScaling()

        An AutoScalingThresholds object with the downscaling threshold configuration. If the load falls below these thresholds for a specified amount of time, AWS OpsWorks stops a specified number of instances.

        Returns:
        An AutoScalingThresholds object with the downscaling threshold configuration. If the load falls below these thresholds for a specified amount of time, AWS OpsWorks stops a specified number of instances.
      • withDownScaling

        public SetLoadBasedAutoScalingRequest withDownScaling​(AutoScalingThresholds downScaling)

        An AutoScalingThresholds object with the downscaling threshold configuration. If the load falls below these thresholds for a specified amount of time, AWS OpsWorks stops a specified number of instances.

        Parameters:
        downScaling - An AutoScalingThresholds object with the downscaling threshold configuration. If the load falls below these thresholds for a specified amount of time, AWS OpsWorks stops a specified 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