Package com.mindee.v2.clientOptions
Class BaseParameters
- java.lang.Object
-
- com.mindee.v2.clientOptions.BaseParameters
-
- Direct Known Subclasses:
InferenceParameters
public abstract class BaseParameters extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected StringaliasOptional alias for the file.protected StringmodelIdModel ID to use for the inference (required).protected AsyncPollingOptionspollingOptionsPolling options.protected String[]webhookIdsWebhook IDs to call after all processing is finished.
-
Constructor Summary
Constructors Constructor Description BaseParameters(String modelId, String alias, String[] webhookIds, AsyncPollingOptions pollingOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.hc.client5.http.entity.mime.MultipartEntityBuilderbuildHttpBody(org.apache.hc.client5.http.entity.mime.MultipartEntityBuilder builder)protected booleancanEqual(Object other)booleanequals(Object o)StringgetAlias()Optional alias for the file.StringgetModelId()Model ID to use for the inference (required).AsyncPollingOptionsgetPollingOptions()Polling options.String[]getWebhookIds()Webhook IDs to call after all processing is finished.inthashCode()StringtoString()
-
-
-
Field Detail
-
modelId
protected final String modelId
Model ID to use for the inference (required).
-
alias
protected final String alias
Optional alias for the file.
-
webhookIds
protected final String[] webhookIds
Webhook IDs to call after all processing is finished. If empty, no webhooks will be used.
-
pollingOptions
protected final AsyncPollingOptions pollingOptions
Polling options. Set only if having timeout issues.
-
-
Constructor Detail
-
BaseParameters
public BaseParameters(String modelId, String alias, String[] webhookIds, AsyncPollingOptions pollingOptions)
-
-
Method Detail
-
buildHttpBody
public org.apache.hc.client5.http.entity.mime.MultipartEntityBuilder buildHttpBody(org.apache.hc.client5.http.entity.mime.MultipartEntityBuilder builder)
-
getModelId
public String getModelId()
Model ID to use for the inference (required).
-
getAlias
public String getAlias()
Optional alias for the file.
-
getWebhookIds
public String[] getWebhookIds()
Webhook IDs to call after all processing is finished. If empty, no webhooks will be used.
-
getPollingOptions
public AsyncPollingOptions getPollingOptions()
Polling options. Set only if having timeout issues.
-
canEqual
protected boolean canEqual(Object other)
-
-