177 lines
4.6 KiB
Java
177 lines
4.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 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;
|
|
|
|
/**
|
|
* AdminWorkSummaryRiskFlagsInner
|
|
*/
|
|
|
|
@JsonTypeName("AdminWorkSummary_riskFlags_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 AdminWorkSummaryRiskFlagsInner implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
private @Nullable String riskType;
|
|
|
|
/**
|
|
* Gets or Sets severity
|
|
*/
|
|
public enum SeverityEnum {
|
|
LOW("low"),
|
|
|
|
MEDIUM("medium"),
|
|
|
|
HIGH("high"),
|
|
|
|
CRITICAL("critical");
|
|
|
|
private final String value;
|
|
|
|
SeverityEnum(String value) {
|
|
this.value = value;
|
|
}
|
|
|
|
@JsonValue
|
|
public String getValue() {
|
|
return value;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return String.valueOf(value);
|
|
}
|
|
|
|
@JsonCreator
|
|
public static SeverityEnum fromValue(String value) {
|
|
for (SeverityEnum b : SeverityEnum.values()) {
|
|
if (b.value.equals(value)) {
|
|
return b;
|
|
}
|
|
}
|
|
throw new IllegalArgumentException("Unexpected value '" + value + "'");
|
|
}
|
|
}
|
|
|
|
private @Nullable SeverityEnum severity;
|
|
|
|
private @Nullable String description;
|
|
|
|
public AdminWorkSummaryRiskFlagsInner riskType(@Nullable String riskType) {
|
|
this.riskType = riskType;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 异常类型,如 content_violation、copyright_issue
|
|
* @return riskType
|
|
*/
|
|
|
|
@Schema(name = "riskType", description = "异常类型,如 content_violation、copyright_issue", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("riskType")
|
|
public @Nullable String getRiskType() {
|
|
return riskType;
|
|
}
|
|
|
|
@JsonProperty("riskType")
|
|
public void setRiskType(@Nullable String riskType) {
|
|
this.riskType = riskType;
|
|
}
|
|
|
|
public AdminWorkSummaryRiskFlagsInner severity(@Nullable SeverityEnum severity) {
|
|
this.severity = severity;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get severity
|
|
* @return severity
|
|
*/
|
|
|
|
@Schema(name = "severity", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("severity")
|
|
public @Nullable SeverityEnum getSeverity() {
|
|
return severity;
|
|
}
|
|
|
|
@JsonProperty("severity")
|
|
public void setSeverity(@Nullable SeverityEnum severity) {
|
|
this.severity = severity;
|
|
}
|
|
|
|
public AdminWorkSummaryRiskFlagsInner description(@Nullable String description) {
|
|
this.description = description;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 异常描述摘要
|
|
* @return description
|
|
*/
|
|
|
|
@Schema(name = "description", 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;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
AdminWorkSummaryRiskFlagsInner adminWorkSummaryRiskFlagsInner = (AdminWorkSummaryRiskFlagsInner) o;
|
|
return Objects.equals(this.riskType, adminWorkSummaryRiskFlagsInner.riskType) &&
|
|
Objects.equals(this.severity, adminWorkSummaryRiskFlagsInner.severity) &&
|
|
Objects.equals(this.description, adminWorkSummaryRiskFlagsInner.description);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(riskType, severity, description);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class AdminWorkSummaryRiskFlagsInner {\n");
|
|
sb.append(" riskType: ").append(toIndentedString(riskType)).append("\n");
|
|
sb.append(" severity: ").append(toIndentedString(severity)).append("\n");
|
|
sb.append(" description: ").append(toIndentedString(description)).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 ");
|
|
}
|
|
}
|
|
|