com.github.tjake.jlama.net.openai.model.DeleteModelResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jlama-net Show documentation
Show all versions of jlama-net Show documentation
Jlama: A modern LLM inference engine for Java
/*
* OpenAI API
* The OpenAI REST API. Please see https://platform.openai.com/docs/api-reference for more details.
*
* The version of the OpenAPI document: 2.1.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.github.tjake.jlama.net.openai.model;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import jakarta.validation.constraints.*;
import jakarta.validation.Valid;
import org.hibernate.validator.constraints.*;
import com.github.tjake.jlama.net.openai.JSON;
/**
* DeleteModelResponse
*/
@JsonPropertyOrder({
DeleteModelResponse.JSON_PROPERTY_ID,
DeleteModelResponse.JSON_PROPERTY_DELETED,
DeleteModelResponse.JSON_PROPERTY_OBJECT
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
public class DeleteModelResponse {
public static final String JSON_PROPERTY_ID = "id";
private String id;
public static final String JSON_PROPERTY_DELETED = "deleted";
private Boolean deleted;
public static final String JSON_PROPERTY_OBJECT = "object";
private String _object;
public DeleteModelResponse() {
}
public DeleteModelResponse id(String id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
*/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getId() {
return id;
}
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setId(String id) {
this.id = id;
}
public DeleteModelResponse deleted(Boolean deleted) {
this.deleted = deleted;
return this;
}
/**
* Get deleted
* @return deleted
*/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_DELETED)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getDeleted() {
return deleted;
}
@JsonProperty(JSON_PROPERTY_DELETED)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setDeleted(Boolean deleted) {
this.deleted = deleted;
}
public DeleteModelResponse _object(String _object) {
this._object = _object;
return this;
}
/**
* Get _object
* @return _object
*/
@jakarta.annotation.Nonnull
@NotNull
@JsonProperty(JSON_PROPERTY_OBJECT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getObject() {
return _object;
}
@JsonProperty(JSON_PROPERTY_OBJECT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setObject(String _object) {
this._object = _object;
}
/**
* Return true if this DeleteModelResponse object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DeleteModelResponse deleteModelResponse = (DeleteModelResponse) o;
return Objects.equals(this.id, deleteModelResponse.id) &&
Objects.equals(this.deleted, deleteModelResponse.deleted) &&
Objects.equals(this._object, deleteModelResponse._object);
}
@Override
public int hashCode() {
return Objects.hash(id, deleted, _object);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DeleteModelResponse {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" deleted: ").append(toIndentedString(deleted)).append("\n");
sb.append(" _object: ").append(toIndentedString(_object)).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 ");
}
}