package io.delphi.qa.auto.awsmfrw.managers;

import io.delphi.qa.auto.awsmfrw.managers.helpers.api.MgApi;
import io.delphi.qa.auto.awsmfrw.managers.helpers.aws.MgAws;
import io.delphi.qa.auto.awsmfrw.managers.helpers.db.MgDb;
import io.qameta.allure.Step;

public class MgDelphi {

  private MgAws aws;
  private MgDb db;
  private MgApi api;
//  private MgPerformance perf;
  private HlFileSystem fs;

  //  public MgPerformance perf() {
//    return perf == null ? perf = new MgPerformance() : perf;
//  }
  public MgApi api() {
    return api == null ? api = new MgApi() : api;
  }

  public MgAws aws() {
    return aws == null ? aws = new MgAws() : aws;
  }

  @Step("Use db.sql")
  public MgDb db() {
    return db == null ? db = new MgDb() : db;
  }

  public HlFileSystem fs() {
    return fs == null ? fs = new HlFileSystem() : fs;
  }
}
