public MaintenanceTrack withUpdateTargets(UpdateTarget... updateTargets) {
        if (this.updateTargets == null) {
            setUpdateTargets(new com.amazonaws.internal.SdkInternalList<UpdateTarget>(updateTargets.length));
        }
        for (UpdateTarget ele : updateTargets) {
            this.updateTargets.add(ele);
        }
        return this;
    }
public MaintenanceTrack withUpdateTargets ( UpdateTarget ... updateTargets ) { if ( this . updateTargets == null ) { setUpdateTargets ( new com . amazonaws . internal . SdkInternalList < UpdateTarget > ( updateTargets . length ) ) ; } for ( UpdateTarget ele : updateTargets ) { this . updateTargets . add ( ele ) ; } return this ; }
<p>
An array of <a>UpdateTarget</a> objects to update with the maintenance track.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setUpdateTargets(java.util.Collection)} or {@link #withUpdateTargets(java.util.Collection)} if you want
to override the existing values.
</p>

@param updateTargets
An array of <a>UpdateTarget</a> objects to update with the maintenance track.
@return Returns a reference to this object so that method calls can be chained together.