dev.langchain4j.model.ollama.DeleteModelRequest Maven / Gradle / Ivy
package dev.langchain4j.model.ollama;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.PropertyNamingStrategies.SnakeCaseStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import static com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL;
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(NON_NULL)
@JsonNaming(SnakeCaseStrategy.class)
class DeleteModelRequest {
private String name;
DeleteModelRequest() {
}
DeleteModelRequest(String name) {
this.name = name;
}
static Builder builder() {
return new Builder();
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
static class Builder {
private String name;
Builder name(String name) {
this.name = name;
return this;
}
DeleteModelRequest build() {
return new DeleteModelRequest(name);
}
}
}