public ScalingInstruction withScalingPolicyUpdateBehavior(ScalingPolicyUpdateBehavior scalingPolicyUpdateBehavior) {
        this.scalingPolicyUpdateBehavior = scalingPolicyUpdateBehavior.toString();
        return this;
    }
<p>
Controls whether a resource's externally created scaling policies are kept or replaced.
</p>
<p>
The default value is <code>KeepExternalPolicies</code>. If the parameter is set to
<code>ReplaceExternalPolicies</code>, any scaling policies that are external to AWS Auto Scaling are deleted and
new target tracking scaling policies created.
</p>
<p>
Only valid when configuring dynamic scaling.
</p>
<p>
Condition: The number of existing policies to be replaced must be less than or equal to 50. If there are more
than 50 policies to be replaced, AWS Auto Scaling keeps all existing policies and does not create new ones.
</p>

@param scalingPolicyUpdateBehavior
       Controls whether a resource's externally created scaling policies are kept or replaced. </p>
       <p>
       The default value is <code>KeepExternalPolicies</code>. If the parameter is set to
       <code>ReplaceExternalPolicies</code>, any scaling policies that are external to AWS Auto Scaling are
       deleted and new target tracking scaling policies created.
       </p>
       <p>
       Only valid when configuring dynamic scaling.
       </p>
       <p>
       Condition: The number of existing policies to be replaced must be less than or equal to 50. If there are
       more than 50 policies to be replaced, AWS Auto Scaling keeps all existing policies and does not create new
       ones.
@return Returns a reference to this object so that method calls can be chained together.
@see ScalingPolicyUpdateBehavior
aws-java-sdk-autoscalingplans/src/main/java/com/amazonaws/services/autoscalingplans/model/ScalingInstruction.java