public RefreshPreferences withCheckpointPercentages(Integer... checkpointPercentages) {
        if (this.checkpointPercentages == null) {
            setCheckpointPercentages(new com.amazonaws.internal.SdkInternalList<Integer>(checkpointPercentages.length));
        }
        for (Integer ele : checkpointPercentages) {
            this.checkpointPercentages.add(ele);
        }
        return this;
    }
<p>
(Optional) Threshold values for each checkpoint in ascending order. Each number must be unique. To replace all
instances in the Auto Scaling group, the last number in the array must be <code>100</code>.
</p>
<p>
For usage examples, see <a
href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-adding-checkpoints-instance-refresh.html">Add
checkpoints to an instance refresh</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setCheckpointPercentages(java.util.Collection)} or
{@link #withCheckpointPercentages(java.util.Collection)} if you want to override the existing values.
</p>

@param checkpointPercentages
       (Optional) Threshold values for each checkpoint in ascending order. Each number must be unique. To replace
       all instances in the Auto Scaling group, the last number in the array must be <code>100</code>.</p>
       <p>
       For usage examples, see <a href=
       "https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-adding-checkpoints-instance-refresh.html">Add
       checkpoints to an instance refresh</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-autoscaling/src/main/java/com/amazonaws/services/autoscaling/model/RefreshPreferences.java