package com.infoepoch.pms.agent.platform.model.domain.irepository;

import com.infoepoch.pms.agent.common.utils.AbstractCriteria;

/**
 * generated by code-generator
 * AI 模型供应商配置表查询条件类
 */
public class AiModelProviderCriteria extends AbstractCriteria {

    //region 供应商显示名称
    public boolean byName() {
        return this.andMap.containsKey("Name");
    }

    private String name;

    public String getName() {
        if (byName())
            return name;
        return null;
    }

    public void setName(String value) {
        this.name = value;
        this.andMap.put("Name", value);
    }
    //endregion

    //region 供应商显示名称模糊查询
    public boolean byNameContain() {
        return this.andMap.containsKey("NameContain");
    }

    private String nameContain;

    public String getNameContain() {
        if (byNameContain())
            return nameContain;
        return null;
    }

    public void setNameContain(String value) {
        this.nameContain = value;
        this.andMap.put("NameContain", value);
    }
    //endregion

    //region 供应商类型，如 OPENAI 或 DASHSCOPE
    public boolean byType() {
        return this.andMap.containsKey("Type");
    }

    private String type;

    public String getType() {
        if (byType())
            return type;
        return null;
    }

    public void setType(String value) {
        this.type = value;
        this.andMap.put("Type", value);
    }
    //endregion

    //region 供应商类型，如 OPENAI 或 DASHSCOPE模糊查询
    public boolean byTypeContain() {
        return this.andMap.containsKey("TypeContain");
    }

    private String typeContain;

    public String getTypeContain() {
        if (byTypeContain())
            return typeContain;
        return null;
    }

    public void setTypeContain(String value) {
        this.typeContain = value;
        this.andMap.put("TypeContain", value);
    }
    //endregion

    //region 供应商 API 基础 URL
    public boolean byBaseUrl() {
        return this.andMap.containsKey("BaseUrl");
    }

    private String baseUrl;

    public String getBaseUrl() {
        if (byBaseUrl())
            return baseUrl;
        return null;
    }

    public void setBaseUrl(String value) {
        this.baseUrl = value;
        this.andMap.put("BaseUrl", value);
    }
    //endregion

    //region 供应商 API 基础 URL模糊查询
    public boolean byBaseUrlContain() {
        return this.andMap.containsKey("BaseUrlContain");
    }

    private String baseUrlContain;

    public String getBaseUrlContain() {
        if (byBaseUrlContain())
            return baseUrlContain;
        return null;
    }

    public void setBaseUrlContain(String value) {
        this.baseUrlContain = value;
        this.andMap.put("BaseUrlContain", value);
    }
    //endregion

    //region 供应商是否启用
    public boolean byActive() {
        return this.andMap.containsKey("Active");
    }

    private Boolean active;

    public Boolean getActive() {
        if (byActive())
            return active;
        return null;
    }

    public void setActive(Boolean value) {
        this.active = value;
        this.andMap.put("Active", value);
    }
    //endregion

}