public AutomationExecution withTargetLocations(java.util.Collection<TargetLocation> targetLocations) {
        setTargetLocations(targetLocations);
        return this;
    }
<p>
The combination of Amazon Web Services Regions and/or Amazon Web Services accounts where you want to run the
Automation.
</p>

@param targetLocations
       The combination of Amazon Web Services Regions and/or Amazon Web Services accounts where you want to run
       the Automation.
@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