public void setTargetLocations(java.util.Collection<TargetLocation> targetLocations) {
        if (targetLocations == null) {
            this.targetLocations = null;
            return;
        }

        this.targetLocations = new com.amazonaws.internal.SdkInternalList<TargetLocation>(targetLocations);
    }
<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.
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/AutomationExecution.java