public RefreshPreferences withScaleInProtectedInstances(String scaleInProtectedInstances) {
        setScaleInProtectedInstances(scaleInProtectedInstances);
        return this;
    }
<p>
Choose the behavior that you want Amazon EC2 Auto Scaling to use if instances protected from scale in are found.
</p>
<p>
The following lists the valid values:
</p>
<dl>
<dt>Refresh</dt>
<dd>
<p>
Amazon EC2 Auto Scaling replaces instances that are protected from scale in.
</p>
</dd>
<dt>Ignore</dt>
<dd>
<p>
Amazon EC2 Auto Scaling ignores instances that are protected from scale in and continues to replace instances
that are not protected.
</p>
</dd>
<dt>Wait (default)</dt>
<dd>
<p>
Amazon EC2 Auto Scaling waits one hour for you to remove scale-in protection. Otherwise, the instance refresh
will fail.
</p>
</dd>
</dl>

@param scaleInProtectedInstances
       Choose the behavior that you want Amazon EC2 Auto Scaling to use if instances protected from scale in are
       found. </p>
       <p>
       The following lists the valid values:
       </p>
       <dl>
       <dt>Refresh</dt>
       <dd>
       <p>
       Amazon EC2 Auto Scaling replaces instances that are protected from scale in.
       </p>
       </dd>
       <dt>Ignore</dt>
       <dd>
       <p>
       Amazon EC2 Auto Scaling ignores instances that are protected from scale in and continues to replace
       instances that are not protected.
       </p>
       </dd>
       <dt>Wait (default)</dt>
       <dd>
       <p>
       Amazon EC2 Auto Scaling waits one hour for you to remove scale-in protection. Otherwise, the instance
       refresh will fail.
       </p>
       </dd>
@return Returns a reference to this object so that method calls can be chained together.
@see ScaleInProtectedInstances
aws-java-sdk-autoscaling/src/main/java/com/amazonaws/services/autoscaling/model/RefreshPreferences.java