public Job withTargets(java.util.Collection<String> targets) {
        setTargets(targets);
        return this;
    }
<p>
A list of IoT things and thing groups to which the job should be sent.
</p>

@param targets
       A list of IoT things and thing groups to which the job should be sent.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/Job.java