public AutomationExecution withTargets(java.util.Collection<Target> targets) {
        setTargets(targets);
        return this;
    }
<p>
The specified targets.
</p>

@param targets
       The specified targets.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/AutomationExecution.java