com.algolia.model.ingestion.Model Maven / Gradle / Ivy
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost
// - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
package com.algolia.model.ingestion;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
import java.util.Objects;
/** Model */
public class Model {
@JsonProperty("fullname")
private String fullname;
@JsonProperty("modelName")
private String modelName;
@JsonProperty("systemPrompt")
private String systemPrompt;
@JsonProperty("id")
private String id;
@JsonProperty("provider")
private String provider;
public Model setFullname(String fullname) {
this.fullname = fullname;
return this;
}
/** Get fullname */
@javax.annotation.Nonnull
public String getFullname() {
return fullname;
}
public Model setModelName(String modelName) {
this.modelName = modelName;
return this;
}
/** Get modelName */
@javax.annotation.Nonnull
public String getModelName() {
return modelName;
}
public Model setSystemPrompt(String systemPrompt) {
this.systemPrompt = systemPrompt;
return this;
}
/** Get systemPrompt */
@javax.annotation.Nonnull
public String getSystemPrompt() {
return systemPrompt;
}
public Model setId(String id) {
this.id = id;
return this;
}
/** Get id */
@javax.annotation.Nonnull
public String getId() {
return id;
}
public Model setProvider(String provider) {
this.provider = provider;
return this;
}
/** Get provider */
@javax.annotation.Nonnull
public String getProvider() {
return provider;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Model model = (Model) o;
return (
Objects.equals(this.fullname, model.fullname) &&
Objects.equals(this.modelName, model.modelName) &&
Objects.equals(this.systemPrompt, model.systemPrompt) &&
Objects.equals(this.id, model.id) &&
Objects.equals(this.provider, model.provider)
);
}
@Override
public int hashCode() {
return Objects.hash(fullname, modelName, systemPrompt, id, provider);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Model {\n");
sb.append(" fullname: ").append(toIndentedString(fullname)).append("\n");
sb.append(" modelName: ").append(toIndentedString(modelName)).append("\n");
sb.append(" systemPrompt: ").append(toIndentedString(systemPrompt)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" provider: ").append(toIndentedString(provider)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy