433 lines
13 KiB
Java
433 lines
13 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 com.muse.dto.GetGlobalKnowledgeBase200ResponseAllOfDataProcessingSummary;
|
|
import java.time.OffsetDateTime;
|
|
import java.util.UUID;
|
|
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;
|
|
|
|
/**
|
|
* GetGlobalKnowledgeBase200ResponseAllOfData
|
|
*/
|
|
|
|
@JsonTypeName("getGlobalKnowledgeBase_200_response_allOf_data")
|
|
@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 GetGlobalKnowledgeBase200ResponseAllOfData implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
private @Nullable UUID kbId;
|
|
|
|
private @Nullable String name;
|
|
|
|
private @Nullable String description;
|
|
|
|
private @Nullable String category;
|
|
|
|
private @Nullable String visibilityScope;
|
|
|
|
private @Nullable Integer currentVersion;
|
|
|
|
/**
|
|
* Gets or Sets status
|
|
*/
|
|
public enum StatusEnum {
|
|
ACTIVE("active"),
|
|
|
|
DISABLED("disabled"),
|
|
|
|
PROCESSING("processing"),
|
|
|
|
FAILED("failed");
|
|
|
|
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 Integer activePolicyVersion;
|
|
|
|
private @Nullable Integer documentCount;
|
|
|
|
private @Nullable Integer bindingCount;
|
|
|
|
private @Nullable GetGlobalKnowledgeBase200ResponseAllOfDataProcessingSummary processingSummary;
|
|
|
|
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
|
private @Nullable OffsetDateTime createdAt;
|
|
|
|
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
|
private @Nullable OffsetDateTime updatedAt;
|
|
|
|
public GetGlobalKnowledgeBase200ResponseAllOfData kbId(@Nullable UUID kbId) {
|
|
this.kbId = kbId;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get kbId
|
|
* @return kbId
|
|
*/
|
|
@Valid
|
|
@Schema(name = "kbId", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("kbId")
|
|
public @Nullable UUID getKbId() {
|
|
return kbId;
|
|
}
|
|
|
|
@JsonProperty("kbId")
|
|
public void setKbId(@Nullable UUID kbId) {
|
|
this.kbId = kbId;
|
|
}
|
|
|
|
public GetGlobalKnowledgeBase200ResponseAllOfData 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 GetGlobalKnowledgeBase200ResponseAllOfData 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 GetGlobalKnowledgeBase200ResponseAllOfData category(@Nullable String category) {
|
|
this.category = category;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get category
|
|
* @return category
|
|
*/
|
|
|
|
@Schema(name = "category", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("category")
|
|
public @Nullable String getCategory() {
|
|
return category;
|
|
}
|
|
|
|
@JsonProperty("category")
|
|
public void setCategory(@Nullable String category) {
|
|
this.category = category;
|
|
}
|
|
|
|
public GetGlobalKnowledgeBase200ResponseAllOfData visibilityScope(@Nullable String visibilityScope) {
|
|
this.visibilityScope = visibilityScope;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get visibilityScope
|
|
* @return visibilityScope
|
|
*/
|
|
|
|
@Schema(name = "visibilityScope", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("visibilityScope")
|
|
public @Nullable String getVisibilityScope() {
|
|
return visibilityScope;
|
|
}
|
|
|
|
@JsonProperty("visibilityScope")
|
|
public void setVisibilityScope(@Nullable String visibilityScope) {
|
|
this.visibilityScope = visibilityScope;
|
|
}
|
|
|
|
public GetGlobalKnowledgeBase200ResponseAllOfData currentVersion(@Nullable Integer currentVersion) {
|
|
this.currentVersion = currentVersion;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get currentVersion
|
|
* @return currentVersion
|
|
*/
|
|
|
|
@Schema(name = "currentVersion", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("currentVersion")
|
|
public @Nullable Integer getCurrentVersion() {
|
|
return currentVersion;
|
|
}
|
|
|
|
@JsonProperty("currentVersion")
|
|
public void setCurrentVersion(@Nullable Integer currentVersion) {
|
|
this.currentVersion = currentVersion;
|
|
}
|
|
|
|
public GetGlobalKnowledgeBase200ResponseAllOfData 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 GetGlobalKnowledgeBase200ResponseAllOfData activePolicyVersion(@Nullable Integer activePolicyVersion) {
|
|
this.activePolicyVersion = activePolicyVersion;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get activePolicyVersion
|
|
* @return activePolicyVersion
|
|
*/
|
|
|
|
@Schema(name = "activePolicyVersion", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("activePolicyVersion")
|
|
public @Nullable Integer getActivePolicyVersion() {
|
|
return activePolicyVersion;
|
|
}
|
|
|
|
@JsonProperty("activePolicyVersion")
|
|
public void setActivePolicyVersion(@Nullable Integer activePolicyVersion) {
|
|
this.activePolicyVersion = activePolicyVersion;
|
|
}
|
|
|
|
public GetGlobalKnowledgeBase200ResponseAllOfData documentCount(@Nullable Integer documentCount) {
|
|
this.documentCount = documentCount;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get documentCount
|
|
* @return documentCount
|
|
*/
|
|
|
|
@Schema(name = "documentCount", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("documentCount")
|
|
public @Nullable Integer getDocumentCount() {
|
|
return documentCount;
|
|
}
|
|
|
|
@JsonProperty("documentCount")
|
|
public void setDocumentCount(@Nullable Integer documentCount) {
|
|
this.documentCount = documentCount;
|
|
}
|
|
|
|
public GetGlobalKnowledgeBase200ResponseAllOfData bindingCount(@Nullable Integer bindingCount) {
|
|
this.bindingCount = bindingCount;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get bindingCount
|
|
* @return bindingCount
|
|
*/
|
|
|
|
@Schema(name = "bindingCount", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("bindingCount")
|
|
public @Nullable Integer getBindingCount() {
|
|
return bindingCount;
|
|
}
|
|
|
|
@JsonProperty("bindingCount")
|
|
public void setBindingCount(@Nullable Integer bindingCount) {
|
|
this.bindingCount = bindingCount;
|
|
}
|
|
|
|
public GetGlobalKnowledgeBase200ResponseAllOfData processingSummary(@Nullable GetGlobalKnowledgeBase200ResponseAllOfDataProcessingSummary processingSummary) {
|
|
this.processingSummary = processingSummary;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get processingSummary
|
|
* @return processingSummary
|
|
*/
|
|
@Valid
|
|
@Schema(name = "processingSummary", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("processingSummary")
|
|
public @Nullable GetGlobalKnowledgeBase200ResponseAllOfDataProcessingSummary getProcessingSummary() {
|
|
return processingSummary;
|
|
}
|
|
|
|
@JsonProperty("processingSummary")
|
|
public void setProcessingSummary(@Nullable GetGlobalKnowledgeBase200ResponseAllOfDataProcessingSummary processingSummary) {
|
|
this.processingSummary = processingSummary;
|
|
}
|
|
|
|
public GetGlobalKnowledgeBase200ResponseAllOfData createdAt(@Nullable OffsetDateTime createdAt) {
|
|
this.createdAt = createdAt;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get createdAt
|
|
* @return createdAt
|
|
*/
|
|
@Valid
|
|
@Schema(name = "createdAt", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("createdAt")
|
|
public @Nullable OffsetDateTime getCreatedAt() {
|
|
return createdAt;
|
|
}
|
|
|
|
@JsonProperty("createdAt")
|
|
public void setCreatedAt(@Nullable OffsetDateTime createdAt) {
|
|
this.createdAt = createdAt;
|
|
}
|
|
|
|
public GetGlobalKnowledgeBase200ResponseAllOfData 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;
|
|
}
|
|
GetGlobalKnowledgeBase200ResponseAllOfData getGlobalKnowledgeBase200ResponseAllOfData = (GetGlobalKnowledgeBase200ResponseAllOfData) o;
|
|
return Objects.equals(this.kbId, getGlobalKnowledgeBase200ResponseAllOfData.kbId) &&
|
|
Objects.equals(this.name, getGlobalKnowledgeBase200ResponseAllOfData.name) &&
|
|
Objects.equals(this.description, getGlobalKnowledgeBase200ResponseAllOfData.description) &&
|
|
Objects.equals(this.category, getGlobalKnowledgeBase200ResponseAllOfData.category) &&
|
|
Objects.equals(this.visibilityScope, getGlobalKnowledgeBase200ResponseAllOfData.visibilityScope) &&
|
|
Objects.equals(this.currentVersion, getGlobalKnowledgeBase200ResponseAllOfData.currentVersion) &&
|
|
Objects.equals(this.status, getGlobalKnowledgeBase200ResponseAllOfData.status) &&
|
|
Objects.equals(this.activePolicyVersion, getGlobalKnowledgeBase200ResponseAllOfData.activePolicyVersion) &&
|
|
Objects.equals(this.documentCount, getGlobalKnowledgeBase200ResponseAllOfData.documentCount) &&
|
|
Objects.equals(this.bindingCount, getGlobalKnowledgeBase200ResponseAllOfData.bindingCount) &&
|
|
Objects.equals(this.processingSummary, getGlobalKnowledgeBase200ResponseAllOfData.processingSummary) &&
|
|
Objects.equals(this.createdAt, getGlobalKnowledgeBase200ResponseAllOfData.createdAt) &&
|
|
Objects.equals(this.updatedAt, getGlobalKnowledgeBase200ResponseAllOfData.updatedAt);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(kbId, name, description, category, visibilityScope, currentVersion, status, activePolicyVersion, documentCount, bindingCount, processingSummary, createdAt, updatedAt);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class GetGlobalKnowledgeBase200ResponseAllOfData {\n");
|
|
sb.append(" kbId: ").append(toIndentedString(kbId)).append("\n");
|
|
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
|
sb.append(" description: ").append(toIndentedString(description)).append("\n");
|
|
sb.append(" category: ").append(toIndentedString(category)).append("\n");
|
|
sb.append(" visibilityScope: ").append(toIndentedString(visibilityScope)).append("\n");
|
|
sb.append(" currentVersion: ").append(toIndentedString(currentVersion)).append("\n");
|
|
sb.append(" status: ").append(toIndentedString(status)).append("\n");
|
|
sb.append(" activePolicyVersion: ").append(toIndentedString(activePolicyVersion)).append("\n");
|
|
sb.append(" documentCount: ").append(toIndentedString(documentCount)).append("\n");
|
|
sb.append(" bindingCount: ").append(toIndentedString(bindingCount)).append("\n");
|
|
sb.append(" processingSummary: ").append(toIndentedString(processingSummary)).append("\n");
|
|
sb.append(" createdAt: ").append(toIndentedString(createdAt)).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 ");
|
|
}
|
|
}
|
|
|