224 lines
6.7 KiB
Java
224 lines
6.7 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 java.util.ArrayList;
|
|
import java.util.Arrays;
|
|
import java.util.List;
|
|
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;
|
|
|
|
/**
|
|
* GetLocalKnowledge200ResponseAllOfDataSourceBindingsInner
|
|
*/
|
|
|
|
@JsonTypeName("getLocalKnowledge_200_response_allOf_data_sourceBindings_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 GetLocalKnowledge200ResponseAllOfDataSourceBindingsInner implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
private @Nullable String bindingId;
|
|
|
|
private @Nullable String sourceType;
|
|
|
|
private @Nullable String sourceId;
|
|
|
|
private @Nullable String sourceName;
|
|
|
|
private @Nullable String sourceStatus;
|
|
|
|
@Valid
|
|
private List<String> purposes = new ArrayList<>();
|
|
|
|
public GetLocalKnowledge200ResponseAllOfDataSourceBindingsInner bindingId(@Nullable String bindingId) {
|
|
this.bindingId = bindingId;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get bindingId
|
|
* @return bindingId
|
|
*/
|
|
|
|
@Schema(name = "bindingId", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("bindingId")
|
|
public @Nullable String getBindingId() {
|
|
return bindingId;
|
|
}
|
|
|
|
@JsonProperty("bindingId")
|
|
public void setBindingId(@Nullable String bindingId) {
|
|
this.bindingId = bindingId;
|
|
}
|
|
|
|
public GetLocalKnowledge200ResponseAllOfDataSourceBindingsInner sourceType(@Nullable String sourceType) {
|
|
this.sourceType = sourceType;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get sourceType
|
|
* @return sourceType
|
|
*/
|
|
|
|
@Schema(name = "sourceType", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("sourceType")
|
|
public @Nullable String getSourceType() {
|
|
return sourceType;
|
|
}
|
|
|
|
@JsonProperty("sourceType")
|
|
public void setSourceType(@Nullable String sourceType) {
|
|
this.sourceType = sourceType;
|
|
}
|
|
|
|
public GetLocalKnowledge200ResponseAllOfDataSourceBindingsInner sourceId(@Nullable String sourceId) {
|
|
this.sourceId = sourceId;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get sourceId
|
|
* @return sourceId
|
|
*/
|
|
|
|
@Schema(name = "sourceId", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("sourceId")
|
|
public @Nullable String getSourceId() {
|
|
return sourceId;
|
|
}
|
|
|
|
@JsonProperty("sourceId")
|
|
public void setSourceId(@Nullable String sourceId) {
|
|
this.sourceId = sourceId;
|
|
}
|
|
|
|
public GetLocalKnowledge200ResponseAllOfDataSourceBindingsInner sourceName(@Nullable String sourceName) {
|
|
this.sourceName = sourceName;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get sourceName
|
|
* @return sourceName
|
|
*/
|
|
|
|
@Schema(name = "sourceName", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("sourceName")
|
|
public @Nullable String getSourceName() {
|
|
return sourceName;
|
|
}
|
|
|
|
@JsonProperty("sourceName")
|
|
public void setSourceName(@Nullable String sourceName) {
|
|
this.sourceName = sourceName;
|
|
}
|
|
|
|
public GetLocalKnowledge200ResponseAllOfDataSourceBindingsInner sourceStatus(@Nullable String sourceStatus) {
|
|
this.sourceStatus = sourceStatus;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get sourceStatus
|
|
* @return sourceStatus
|
|
*/
|
|
|
|
@Schema(name = "sourceStatus", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("sourceStatus")
|
|
public @Nullable String getSourceStatus() {
|
|
return sourceStatus;
|
|
}
|
|
|
|
@JsonProperty("sourceStatus")
|
|
public void setSourceStatus(@Nullable String sourceStatus) {
|
|
this.sourceStatus = sourceStatus;
|
|
}
|
|
|
|
public GetLocalKnowledge200ResponseAllOfDataSourceBindingsInner purposes(List<String> purposes) {
|
|
this.purposes = purposes;
|
|
return this;
|
|
}
|
|
|
|
public GetLocalKnowledge200ResponseAllOfDataSourceBindingsInner addPurposesItem(String purposesItem) {
|
|
if (this.purposes == null) {
|
|
this.purposes = new ArrayList<>();
|
|
}
|
|
this.purposes.add(purposesItem);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get purposes
|
|
* @return purposes
|
|
*/
|
|
|
|
@Schema(name = "purposes", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("purposes")
|
|
public List<String> getPurposes() {
|
|
return purposes;
|
|
}
|
|
|
|
@JsonProperty("purposes")
|
|
public void setPurposes(List<String> purposes) {
|
|
this.purposes = purposes;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
GetLocalKnowledge200ResponseAllOfDataSourceBindingsInner getLocalKnowledge200ResponseAllOfDataSourceBindingsInner = (GetLocalKnowledge200ResponseAllOfDataSourceBindingsInner) o;
|
|
return Objects.equals(this.bindingId, getLocalKnowledge200ResponseAllOfDataSourceBindingsInner.bindingId) &&
|
|
Objects.equals(this.sourceType, getLocalKnowledge200ResponseAllOfDataSourceBindingsInner.sourceType) &&
|
|
Objects.equals(this.sourceId, getLocalKnowledge200ResponseAllOfDataSourceBindingsInner.sourceId) &&
|
|
Objects.equals(this.sourceName, getLocalKnowledge200ResponseAllOfDataSourceBindingsInner.sourceName) &&
|
|
Objects.equals(this.sourceStatus, getLocalKnowledge200ResponseAllOfDataSourceBindingsInner.sourceStatus) &&
|
|
Objects.equals(this.purposes, getLocalKnowledge200ResponseAllOfDataSourceBindingsInner.purposes);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(bindingId, sourceType, sourceId, sourceName, sourceStatus, purposes);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class GetLocalKnowledge200ResponseAllOfDataSourceBindingsInner {\n");
|
|
sb.append(" bindingId: ").append(toIndentedString(bindingId)).append("\n");
|
|
sb.append(" sourceType: ").append(toIndentedString(sourceType)).append("\n");
|
|
sb.append(" sourceId: ").append(toIndentedString(sourceId)).append("\n");
|
|
sb.append(" sourceName: ").append(toIndentedString(sourceName)).append("\n");
|
|
sb.append(" sourceStatus: ").append(toIndentedString(sourceStatus)).append("\n");
|
|
sb.append(" purposes: ").append(toIndentedString(purposes)).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 ");
|
|
}
|
|
}
|
|
|