197 lines
5.2 KiB
Java
197 lines
5.2 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.JsonValue;
|
|
import java.util.UUID;
|
|
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;
|
|
|
|
/**
|
|
* AffectedCandidate
|
|
*/
|
|
|
|
@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 AffectedCandidate implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
private @Nullable UUID candidateId;
|
|
|
|
/**
|
|
* Gets or Sets candidateType
|
|
*/
|
|
public enum CandidateTypeEnum {
|
|
SHADOW_CANDIDATE("shadow_candidate"),
|
|
|
|
KNOWLEDGE_DRAFT("knowledge_draft");
|
|
|
|
private final String value;
|
|
|
|
CandidateTypeEnum(String value) {
|
|
this.value = value;
|
|
}
|
|
|
|
@JsonValue
|
|
public String getValue() {
|
|
return value;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return String.valueOf(value);
|
|
}
|
|
|
|
@JsonCreator
|
|
public static CandidateTypeEnum fromValue(String value) {
|
|
for (CandidateTypeEnum b : CandidateTypeEnum.values()) {
|
|
if (b.value.equals(value)) {
|
|
return b;
|
|
}
|
|
}
|
|
throw new IllegalArgumentException("Unexpected value '" + value + "'");
|
|
}
|
|
}
|
|
|
|
private @Nullable CandidateTypeEnum candidateType;
|
|
|
|
private @Nullable String impact;
|
|
|
|
private @Nullable String suggestedAction;
|
|
|
|
public AffectedCandidate candidateId(@Nullable UUID candidateId) {
|
|
this.candidateId = candidateId;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get candidateId
|
|
* @return candidateId
|
|
*/
|
|
@Valid
|
|
@Schema(name = "candidateId", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("candidateId")
|
|
public @Nullable UUID getCandidateId() {
|
|
return candidateId;
|
|
}
|
|
|
|
@JsonProperty("candidateId")
|
|
public void setCandidateId(@Nullable UUID candidateId) {
|
|
this.candidateId = candidateId;
|
|
}
|
|
|
|
public AffectedCandidate candidateType(@Nullable CandidateTypeEnum candidateType) {
|
|
this.candidateType = candidateType;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get candidateType
|
|
* @return candidateType
|
|
*/
|
|
|
|
@Schema(name = "candidateType", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("candidateType")
|
|
public @Nullable CandidateTypeEnum getCandidateType() {
|
|
return candidateType;
|
|
}
|
|
|
|
@JsonProperty("candidateType")
|
|
public void setCandidateType(@Nullable CandidateTypeEnum candidateType) {
|
|
this.candidateType = candidateType;
|
|
}
|
|
|
|
public AffectedCandidate impact(@Nullable String impact) {
|
|
this.impact = impact;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get impact
|
|
* @return impact
|
|
*/
|
|
|
|
@Schema(name = "impact", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("impact")
|
|
public @Nullable String getImpact() {
|
|
return impact;
|
|
}
|
|
|
|
@JsonProperty("impact")
|
|
public void setImpact(@Nullable String impact) {
|
|
this.impact = impact;
|
|
}
|
|
|
|
public AffectedCandidate suggestedAction(@Nullable String suggestedAction) {
|
|
this.suggestedAction = suggestedAction;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get suggestedAction
|
|
* @return suggestedAction
|
|
*/
|
|
|
|
@Schema(name = "suggestedAction", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("suggestedAction")
|
|
public @Nullable String getSuggestedAction() {
|
|
return suggestedAction;
|
|
}
|
|
|
|
@JsonProperty("suggestedAction")
|
|
public void setSuggestedAction(@Nullable String suggestedAction) {
|
|
this.suggestedAction = suggestedAction;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
AffectedCandidate affectedCandidate = (AffectedCandidate) o;
|
|
return Objects.equals(this.candidateId, affectedCandidate.candidateId) &&
|
|
Objects.equals(this.candidateType, affectedCandidate.candidateType) &&
|
|
Objects.equals(this.impact, affectedCandidate.impact) &&
|
|
Objects.equals(this.suggestedAction, affectedCandidate.suggestedAction);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(candidateId, candidateType, impact, suggestedAction);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class AffectedCandidate {\n");
|
|
sb.append(" candidateId: ").append(toIndentedString(candidateId)).append("\n");
|
|
sb.append(" candidateType: ").append(toIndentedString(candidateType)).append("\n");
|
|
sb.append(" impact: ").append(toIndentedString(impact)).append("\n");
|
|
sb.append(" suggestedAction: ").append(toIndentedString(suggestedAction)).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 ");
|
|
}
|
|
}
|
|
|