278 lines
7.6 KiB
Java
278 lines
7.6 KiB
Java
package com.muse.dto;
|
|
|
|
import java.net.URI;
|
|
import java.util.Objects;
|
|
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.time.OffsetDateTime;
|
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import org.springframework.lang.Nullable;
|
|
import java.io.Serializable;
|
|
import java.time.OffsetDateTime;
|
|
import jakarta.validation.Valid;
|
|
import jakarta.validation.constraints.*;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
|
|
|
import java.util.*;
|
|
import jakarta.annotation.Generated;
|
|
|
|
/**
|
|
* GetLocalKnowledge200ResponseAllOfDataEntitiesInner
|
|
*/
|
|
|
|
@JsonTypeName("getLocalKnowledge_200_response_allOf_data_entities_inner")
|
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2026-05-24T16:47:40.290595+08:00[Asia/Shanghai]", comments = "Generator version: 7.22.0")
|
|
public class GetLocalKnowledge200ResponseAllOfDataEntitiesInner implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
private @Nullable String entityId;
|
|
|
|
private @Nullable String name;
|
|
|
|
private @Nullable String type;
|
|
|
|
/**
|
|
* Gets or Sets status
|
|
*/
|
|
public enum StatusEnum {
|
|
CONFIRMED("confirmed"),
|
|
|
|
DRAFT("draft"),
|
|
|
|
CONFLICTED("conflicted");
|
|
|
|
private final String value;
|
|
|
|
StatusEnum(String value) {
|
|
this.value = value;
|
|
}
|
|
|
|
@JsonValue
|
|
public String getValue() {
|
|
return value;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return String.valueOf(value);
|
|
}
|
|
|
|
@JsonCreator
|
|
public static StatusEnum fromValue(String value) {
|
|
for (StatusEnum b : StatusEnum.values()) {
|
|
if (b.value.equals(value)) {
|
|
return b;
|
|
}
|
|
}
|
|
throw new IllegalArgumentException("Unexpected value '" + value + "'");
|
|
}
|
|
}
|
|
|
|
private @Nullable StatusEnum status;
|
|
|
|
private @Nullable String description;
|
|
|
|
private @Nullable String sourceRef;
|
|
|
|
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
|
private @Nullable OffsetDateTime updatedAt;
|
|
|
|
public GetLocalKnowledge200ResponseAllOfDataEntitiesInner entityId(@Nullable String entityId) {
|
|
this.entityId = entityId;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get entityId
|
|
* @return entityId
|
|
*/
|
|
|
|
@Schema(name = "entityId", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("entityId")
|
|
public @Nullable String getEntityId() {
|
|
return entityId;
|
|
}
|
|
|
|
@JsonProperty("entityId")
|
|
public void setEntityId(@Nullable String entityId) {
|
|
this.entityId = entityId;
|
|
}
|
|
|
|
public GetLocalKnowledge200ResponseAllOfDataEntitiesInner name(@Nullable String name) {
|
|
this.name = name;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get name
|
|
* @return name
|
|
*/
|
|
|
|
@Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("name")
|
|
public @Nullable String getName() {
|
|
return name;
|
|
}
|
|
|
|
@JsonProperty("name")
|
|
public void setName(@Nullable String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public GetLocalKnowledge200ResponseAllOfDataEntitiesInner type(@Nullable String type) {
|
|
this.type = type;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get type
|
|
* @return type
|
|
*/
|
|
|
|
@Schema(name = "type", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("type")
|
|
public @Nullable String getType() {
|
|
return type;
|
|
}
|
|
|
|
@JsonProperty("type")
|
|
public void setType(@Nullable String type) {
|
|
this.type = type;
|
|
}
|
|
|
|
public GetLocalKnowledge200ResponseAllOfDataEntitiesInner status(@Nullable StatusEnum status) {
|
|
this.status = status;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get status
|
|
* @return status
|
|
*/
|
|
|
|
@Schema(name = "status", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("status")
|
|
public @Nullable StatusEnum getStatus() {
|
|
return status;
|
|
}
|
|
|
|
@JsonProperty("status")
|
|
public void setStatus(@Nullable StatusEnum status) {
|
|
this.status = status;
|
|
}
|
|
|
|
public GetLocalKnowledge200ResponseAllOfDataEntitiesInner description(@Nullable String description) {
|
|
this.description = description;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get description
|
|
* @return description
|
|
*/
|
|
|
|
@Schema(name = "description", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("description")
|
|
public @Nullable String getDescription() {
|
|
return description;
|
|
}
|
|
|
|
@JsonProperty("description")
|
|
public void setDescription(@Nullable String description) {
|
|
this.description = description;
|
|
}
|
|
|
|
public GetLocalKnowledge200ResponseAllOfDataEntitiesInner sourceRef(@Nullable String sourceRef) {
|
|
this.sourceRef = sourceRef;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get sourceRef
|
|
* @return sourceRef
|
|
*/
|
|
|
|
@Schema(name = "sourceRef", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("sourceRef")
|
|
public @Nullable String getSourceRef() {
|
|
return sourceRef;
|
|
}
|
|
|
|
@JsonProperty("sourceRef")
|
|
public void setSourceRef(@Nullable String sourceRef) {
|
|
this.sourceRef = sourceRef;
|
|
}
|
|
|
|
public GetLocalKnowledge200ResponseAllOfDataEntitiesInner updatedAt(@Nullable OffsetDateTime updatedAt) {
|
|
this.updatedAt = updatedAt;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get updatedAt
|
|
* @return updatedAt
|
|
*/
|
|
@Valid
|
|
@Schema(name = "updatedAt", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("updatedAt")
|
|
public @Nullable OffsetDateTime getUpdatedAt() {
|
|
return updatedAt;
|
|
}
|
|
|
|
@JsonProperty("updatedAt")
|
|
public void setUpdatedAt(@Nullable OffsetDateTime updatedAt) {
|
|
this.updatedAt = updatedAt;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
GetLocalKnowledge200ResponseAllOfDataEntitiesInner getLocalKnowledge200ResponseAllOfDataEntitiesInner = (GetLocalKnowledge200ResponseAllOfDataEntitiesInner) o;
|
|
return Objects.equals(this.entityId, getLocalKnowledge200ResponseAllOfDataEntitiesInner.entityId) &&
|
|
Objects.equals(this.name, getLocalKnowledge200ResponseAllOfDataEntitiesInner.name) &&
|
|
Objects.equals(this.type, getLocalKnowledge200ResponseAllOfDataEntitiesInner.type) &&
|
|
Objects.equals(this.status, getLocalKnowledge200ResponseAllOfDataEntitiesInner.status) &&
|
|
Objects.equals(this.description, getLocalKnowledge200ResponseAllOfDataEntitiesInner.description) &&
|
|
Objects.equals(this.sourceRef, getLocalKnowledge200ResponseAllOfDataEntitiesInner.sourceRef) &&
|
|
Objects.equals(this.updatedAt, getLocalKnowledge200ResponseAllOfDataEntitiesInner.updatedAt);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(entityId, name, type, status, description, sourceRef, updatedAt);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class GetLocalKnowledge200ResponseAllOfDataEntitiesInner {\n");
|
|
sb.append(" entityId: ").append(toIndentedString(entityId)).append("\n");
|
|
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
|
sb.append(" type: ").append(toIndentedString(type)).append("\n");
|
|
sb.append(" status: ").append(toIndentedString(status)).append("\n");
|
|
sb.append(" description: ").append(toIndentedString(description)).append("\n");
|
|
sb.append(" sourceRef: ").append(toIndentedString(sourceRef)).append("\n");
|
|
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).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(@Nullable Object o) {
|
|
return o == null ? "null" : o.toString().replace("\n", "\n ");
|
|
}
|
|
}
|
|
|