code: public void setTargetLocations(java.util.Collection<TargetLocation> targetLocations) {
          if (targetLocations == null) {
              this.targetLocations = null;
              return;
          }
  
          this.targetLocations = new com.amazonaws.internal.SdkInternalList<TargetLocation>(targetLocations);
      }
docs: <p>
  The combination of AWS Regions and/or AWS accounts where you want to run the Automation.
  </p>
  
  @param targetLocations
  The combination of AWS Regions and/or AWS accounts where you want to run the Automation.