com.volcengine.service.vikingDB.common.EmbModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of volc-sdk-java Show documentation
Show all versions of volc-sdk-java Show documentation
The VOLC Engine SDK for Java
package com.volcengine.service.vikingDB.common;
import java.util.Map;
import com.volcengine.service.vikingDB.VikingDBException;
import lombok.Data;
@Data
public class EmbModel {
private String modelName = null;
private Map params = null;
private Integer isBuild = 0;
public EmbModel setModelName(String modelName) {
this.modelName = modelName;
return this;
}
public EmbModel setParams(Map params) {
this.params = params;
return this;
}
public EmbModel build() throws Exception{
VikingDBException vikingDBException = new VikingDBException(1000030, null, "Params does not exist");
if(this.modelName == null){
throw vikingDBException.getErrorCodeException(1000030, null, "ModelName does not exist");
} else {
this.isBuild = 1;
return this;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy