@Override
    public SetLoadBasedAutoScalingResult setLoadBasedAutoScaling(SetLoadBasedAutoScalingRequest request) {
        request = beforeClientExecution(request);
        return executeSetLoadBasedAutoScaling(request);
    }
<p>
Specify the load-based auto scaling configuration for a specified layer. For more information, see <a
href="https://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-autoscaling.html">Managing Load with
Time-based and Load-based Instances</a>.
</p>
<note>
<p>
To use load-based auto scaling, you must create a set of load-based auto scaling instances. Load-based auto
scaling operates only on the instances from that set, so you must ensure that you have created enough instances
to handle the maximum anticipated load.
</p>
</note>
<p>
<b>Required Permissions</b>: To use this action, an IAM user must have a Manage permissions level for the stack,
or an attached policy that explicitly grants permissions. For more information on user permissions, see <a
href="https://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html">Managing User
Permissions</a>.
</p>

@param setLoadBasedAutoScalingRequest
@return Result of the SetLoadBasedAutoScaling operation returned by the service.
@throws ValidationException
        Indicates that a request was not valid.
@throws ResourceNotFoundException
        Indicates that a resource was not found.
@sample AWSOpsWorks.SetLoadBasedAutoScaling
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/SetLoadBasedAutoScaling"
     target="_top">AWS API Documentation</a>
aws-java-sdk-opsworks/src/main/java/com/amazonaws/services/opsworks/AWSOpsWorksClient.java