public CreateTaskRequest withTargets(java.util.Collection<String> targets) {
        setTargets(targets);
        return this;
    }
<p>
A list of managed device IDs.
</p>

@param targets
       A list of managed device IDs.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-snowdevicemanagement/src/main/java/com/amazonaws/services/snowdevicemanagement/model/CreateTaskRequest.java