public PutTargetsRequest withTargets(java.util.Collection<Target> targets) {
        setTargets(targets);
        return this;
    }
<p>
The targets to update or add to the rule.
</p>

@param targets
       The targets to update or add to the rule.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-eventbridge/src/main/java/com/amazonaws/services/eventbridge/model/PutTargetsRequest.java