public void setTargets(java.util.Collection<String> targets) {
        if (targets == null) {
            this.targets = null;
            return;
        }

        this.targets = new java.util.ArrayList<String>(targets);
    }
<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.
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/Job.java