518 lines
16 KiB
Java
518 lines
16 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.muse.dto.GetGlobalKnowledgeBase200ResponseAllOfDataProcessingSummary;
|
|
import com.muse.dto.GetKnowledgeBase200ResponseAllOfDataLicenseSummary;
|
|
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;
|
|
|
|
/**
|
|
* GetKnowledgeBase200ResponseAllOfData
|
|
*/
|
|
|
|
@JsonTypeName("getKnowledgeBase_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 GetKnowledgeBase200ResponseAllOfData implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
private @Nullable String kbId;
|
|
|
|
private @Nullable String name;
|
|
|
|
private @Nullable String description;
|
|
|
|
private @Nullable String source;
|
|
|
|
private @Nullable String ownership;
|
|
|
|
private @Nullable Integer currentVersion;
|
|
|
|
private @Nullable String processingStatus;
|
|
|
|
private @Nullable String authorizationStatus;
|
|
|
|
private @Nullable Boolean isEditable;
|
|
|
|
private @Nullable Integer documentCount;
|
|
|
|
private @Nullable Integer bindableWorkCount;
|
|
|
|
private @Nullable Integer recentHitCount;
|
|
|
|
private @Nullable String riskSummary;
|
|
|
|
private @Nullable String publishStatus;
|
|
|
|
private @Nullable GetGlobalKnowledgeBase200ResponseAllOfDataProcessingSummary processingSummary;
|
|
|
|
private @Nullable GetKnowledgeBase200ResponseAllOfDataLicenseSummary licenseSummary;
|
|
|
|
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
|
private @Nullable OffsetDateTime createdAt;
|
|
|
|
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
|
private @Nullable OffsetDateTime updatedAt;
|
|
|
|
public GetKnowledgeBase200ResponseAllOfData kbId(@Nullable String kbId) {
|
|
this.kbId = kbId;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get kbId
|
|
* @return kbId
|
|
*/
|
|
|
|
@Schema(name = "kbId", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("kbId")
|
|
public @Nullable String getKbId() {
|
|
return kbId;
|
|
}
|
|
|
|
@JsonProperty("kbId")
|
|
public void setKbId(@Nullable String kbId) {
|
|
this.kbId = kbId;
|
|
}
|
|
|
|
public GetKnowledgeBase200ResponseAllOfData 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 GetKnowledgeBase200ResponseAllOfData 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 GetKnowledgeBase200ResponseAllOfData source(@Nullable String source) {
|
|
this.source = source;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get source
|
|
* @return source
|
|
*/
|
|
|
|
@Schema(name = "source", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("source")
|
|
public @Nullable String getSource() {
|
|
return source;
|
|
}
|
|
|
|
@JsonProperty("source")
|
|
public void setSource(@Nullable String source) {
|
|
this.source = source;
|
|
}
|
|
|
|
public GetKnowledgeBase200ResponseAllOfData ownership(@Nullable String ownership) {
|
|
this.ownership = ownership;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get ownership
|
|
* @return ownership
|
|
*/
|
|
|
|
@Schema(name = "ownership", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("ownership")
|
|
public @Nullable String getOwnership() {
|
|
return ownership;
|
|
}
|
|
|
|
@JsonProperty("ownership")
|
|
public void setOwnership(@Nullable String ownership) {
|
|
this.ownership = ownership;
|
|
}
|
|
|
|
public GetKnowledgeBase200ResponseAllOfData 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 GetKnowledgeBase200ResponseAllOfData processingStatus(@Nullable String processingStatus) {
|
|
this.processingStatus = processingStatus;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get processingStatus
|
|
* @return processingStatus
|
|
*/
|
|
|
|
@Schema(name = "processingStatus", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("processingStatus")
|
|
public @Nullable String getProcessingStatus() {
|
|
return processingStatus;
|
|
}
|
|
|
|
@JsonProperty("processingStatus")
|
|
public void setProcessingStatus(@Nullable String processingStatus) {
|
|
this.processingStatus = processingStatus;
|
|
}
|
|
|
|
public GetKnowledgeBase200ResponseAllOfData authorizationStatus(@Nullable String authorizationStatus) {
|
|
this.authorizationStatus = authorizationStatus;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get authorizationStatus
|
|
* @return authorizationStatus
|
|
*/
|
|
|
|
@Schema(name = "authorizationStatus", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("authorizationStatus")
|
|
public @Nullable String getAuthorizationStatus() {
|
|
return authorizationStatus;
|
|
}
|
|
|
|
@JsonProperty("authorizationStatus")
|
|
public void setAuthorizationStatus(@Nullable String authorizationStatus) {
|
|
this.authorizationStatus = authorizationStatus;
|
|
}
|
|
|
|
public GetKnowledgeBase200ResponseAllOfData isEditable(@Nullable Boolean isEditable) {
|
|
this.isEditable = isEditable;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get isEditable
|
|
* @return isEditable
|
|
*/
|
|
|
|
@Schema(name = "isEditable", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("isEditable")
|
|
public @Nullable Boolean getIsEditable() {
|
|
return isEditable;
|
|
}
|
|
|
|
@JsonProperty("isEditable")
|
|
public void setIsEditable(@Nullable Boolean isEditable) {
|
|
this.isEditable = isEditable;
|
|
}
|
|
|
|
public GetKnowledgeBase200ResponseAllOfData 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 GetKnowledgeBase200ResponseAllOfData bindableWorkCount(@Nullable Integer bindableWorkCount) {
|
|
this.bindableWorkCount = bindableWorkCount;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get bindableWorkCount
|
|
* @return bindableWorkCount
|
|
*/
|
|
|
|
@Schema(name = "bindableWorkCount", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("bindableWorkCount")
|
|
public @Nullable Integer getBindableWorkCount() {
|
|
return bindableWorkCount;
|
|
}
|
|
|
|
@JsonProperty("bindableWorkCount")
|
|
public void setBindableWorkCount(@Nullable Integer bindableWorkCount) {
|
|
this.bindableWorkCount = bindableWorkCount;
|
|
}
|
|
|
|
public GetKnowledgeBase200ResponseAllOfData recentHitCount(@Nullable Integer recentHitCount) {
|
|
this.recentHitCount = recentHitCount;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get recentHitCount
|
|
* @return recentHitCount
|
|
*/
|
|
|
|
@Schema(name = "recentHitCount", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("recentHitCount")
|
|
public @Nullable Integer getRecentHitCount() {
|
|
return recentHitCount;
|
|
}
|
|
|
|
@JsonProperty("recentHitCount")
|
|
public void setRecentHitCount(@Nullable Integer recentHitCount) {
|
|
this.recentHitCount = recentHitCount;
|
|
}
|
|
|
|
public GetKnowledgeBase200ResponseAllOfData riskSummary(@Nullable String riskSummary) {
|
|
this.riskSummary = riskSummary;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get riskSummary
|
|
* @return riskSummary
|
|
*/
|
|
|
|
@Schema(name = "riskSummary", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("riskSummary")
|
|
public @Nullable String getRiskSummary() {
|
|
return riskSummary;
|
|
}
|
|
|
|
@JsonProperty("riskSummary")
|
|
public void setRiskSummary(@Nullable String riskSummary) {
|
|
this.riskSummary = riskSummary;
|
|
}
|
|
|
|
public GetKnowledgeBase200ResponseAllOfData publishStatus(@Nullable String publishStatus) {
|
|
this.publishStatus = publishStatus;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get publishStatus
|
|
* @return publishStatus
|
|
*/
|
|
|
|
@Schema(name = "publishStatus", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("publishStatus")
|
|
public @Nullable String getPublishStatus() {
|
|
return publishStatus;
|
|
}
|
|
|
|
@JsonProperty("publishStatus")
|
|
public void setPublishStatus(@Nullable String publishStatus) {
|
|
this.publishStatus = publishStatus;
|
|
}
|
|
|
|
public GetKnowledgeBase200ResponseAllOfData 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 GetKnowledgeBase200ResponseAllOfData licenseSummary(@Nullable GetKnowledgeBase200ResponseAllOfDataLicenseSummary licenseSummary) {
|
|
this.licenseSummary = licenseSummary;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get licenseSummary
|
|
* @return licenseSummary
|
|
*/
|
|
@Valid
|
|
@Schema(name = "licenseSummary", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("licenseSummary")
|
|
public @Nullable GetKnowledgeBase200ResponseAllOfDataLicenseSummary getLicenseSummary() {
|
|
return licenseSummary;
|
|
}
|
|
|
|
@JsonProperty("licenseSummary")
|
|
public void setLicenseSummary(@Nullable GetKnowledgeBase200ResponseAllOfDataLicenseSummary licenseSummary) {
|
|
this.licenseSummary = licenseSummary;
|
|
}
|
|
|
|
public GetKnowledgeBase200ResponseAllOfData 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 GetKnowledgeBase200ResponseAllOfData 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;
|
|
}
|
|
GetKnowledgeBase200ResponseAllOfData getKnowledgeBase200ResponseAllOfData = (GetKnowledgeBase200ResponseAllOfData) o;
|
|
return Objects.equals(this.kbId, getKnowledgeBase200ResponseAllOfData.kbId) &&
|
|
Objects.equals(this.name, getKnowledgeBase200ResponseAllOfData.name) &&
|
|
Objects.equals(this.description, getKnowledgeBase200ResponseAllOfData.description) &&
|
|
Objects.equals(this.source, getKnowledgeBase200ResponseAllOfData.source) &&
|
|
Objects.equals(this.ownership, getKnowledgeBase200ResponseAllOfData.ownership) &&
|
|
Objects.equals(this.currentVersion, getKnowledgeBase200ResponseAllOfData.currentVersion) &&
|
|
Objects.equals(this.processingStatus, getKnowledgeBase200ResponseAllOfData.processingStatus) &&
|
|
Objects.equals(this.authorizationStatus, getKnowledgeBase200ResponseAllOfData.authorizationStatus) &&
|
|
Objects.equals(this.isEditable, getKnowledgeBase200ResponseAllOfData.isEditable) &&
|
|
Objects.equals(this.documentCount, getKnowledgeBase200ResponseAllOfData.documentCount) &&
|
|
Objects.equals(this.bindableWorkCount, getKnowledgeBase200ResponseAllOfData.bindableWorkCount) &&
|
|
Objects.equals(this.recentHitCount, getKnowledgeBase200ResponseAllOfData.recentHitCount) &&
|
|
Objects.equals(this.riskSummary, getKnowledgeBase200ResponseAllOfData.riskSummary) &&
|
|
Objects.equals(this.publishStatus, getKnowledgeBase200ResponseAllOfData.publishStatus) &&
|
|
Objects.equals(this.processingSummary, getKnowledgeBase200ResponseAllOfData.processingSummary) &&
|
|
Objects.equals(this.licenseSummary, getKnowledgeBase200ResponseAllOfData.licenseSummary) &&
|
|
Objects.equals(this.createdAt, getKnowledgeBase200ResponseAllOfData.createdAt) &&
|
|
Objects.equals(this.updatedAt, getKnowledgeBase200ResponseAllOfData.updatedAt);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(kbId, name, description, source, ownership, currentVersion, processingStatus, authorizationStatus, isEditable, documentCount, bindableWorkCount, recentHitCount, riskSummary, publishStatus, processingSummary, licenseSummary, createdAt, updatedAt);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class GetKnowledgeBase200ResponseAllOfData {\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(" source: ").append(toIndentedString(source)).append("\n");
|
|
sb.append(" ownership: ").append(toIndentedString(ownership)).append("\n");
|
|
sb.append(" currentVersion: ").append(toIndentedString(currentVersion)).append("\n");
|
|
sb.append(" processingStatus: ").append(toIndentedString(processingStatus)).append("\n");
|
|
sb.append(" authorizationStatus: ").append(toIndentedString(authorizationStatus)).append("\n");
|
|
sb.append(" isEditable: ").append(toIndentedString(isEditable)).append("\n");
|
|
sb.append(" documentCount: ").append(toIndentedString(documentCount)).append("\n");
|
|
sb.append(" bindableWorkCount: ").append(toIndentedString(bindableWorkCount)).append("\n");
|
|
sb.append(" recentHitCount: ").append(toIndentedString(recentHitCount)).append("\n");
|
|
sb.append(" riskSummary: ").append(toIndentedString(riskSummary)).append("\n");
|
|
sb.append(" publishStatus: ").append(toIndentedString(publishStatus)).append("\n");
|
|
sb.append(" processingSummary: ").append(toIndentedString(processingSummary)).append("\n");
|
|
sb.append(" licenseSummary: ").append(toIndentedString(licenseSummary)).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 ");
|
|
}
|
|
}
|
|
|