public CreateSoftwareUpdateJobRequest withUpdateTargets(String... updateTargets) {
        if (this.updateTargets == null) {
            setUpdateTargets(new java.util.ArrayList<String>(updateTargets.length));
        }
        for (String ele : updateTargets) {
            this.updateTargets.add(ele);
        }
        return this;
    }
<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
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/model/CreateSoftwareUpdateJobRequest.java