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

import io.delphi.qa.auto.awsmfrw.models.EnDelphiHelperClassItems;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode
public class DelphiCustomDbProvider implements ICanProvideResources {
  private String resourceLocator;
  private String resourceName;
  private String resourceValue;

  public DelphiCustomDbProvider withResourceValue(String xResourceValue) {
    this.resourceLocator = "delphi/resource/";
    this.resourceName = "custom";
    this.resourceValue = xResourceValue;
    return this;
  }

  @Override
  public String resourceName() {
    return resourceName;
  }

  @Override
  public String resourceLocator() {
    return resourceLocator;
  }

  @Override
  public String resourceValue() {
    return resourceValue;
  }

  @Override
  public EnDelphiHelperClassItems resourceClient() {
    return EnDelphiHelperClassItems.DELPHI_CUSTOM_PG_MAIN;
  }
}
