163 lines
5.2 KiB
Java
163 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.JsonTypeName;
|
|
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;
|
|
|
|
/**
|
|
* 异常摘要
|
|
*/
|
|
|
|
@Schema(name = "AdminWorkDetail_exceptionSummary", description = "异常摘要")
|
|
@JsonTypeName("AdminWorkDetail_exceptionSummary")
|
|
@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 AdminWorkDetailExceptionSummary implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
private @Nullable Integer totalRiskFlags;
|
|
|
|
private @Nullable Integer criticalCount;
|
|
|
|
private @Nullable Integer activeGovernanceActions;
|
|
|
|
private @Nullable String latestRiskType;
|
|
|
|
public AdminWorkDetailExceptionSummary totalRiskFlags(@Nullable Integer totalRiskFlags) {
|
|
this.totalRiskFlags = totalRiskFlags;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 总异常标记数
|
|
* @return totalRiskFlags
|
|
*/
|
|
|
|
@Schema(name = "totalRiskFlags", description = "总异常标记数", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("totalRiskFlags")
|
|
public @Nullable Integer getTotalRiskFlags() {
|
|
return totalRiskFlags;
|
|
}
|
|
|
|
@JsonProperty("totalRiskFlags")
|
|
public void setTotalRiskFlags(@Nullable Integer totalRiskFlags) {
|
|
this.totalRiskFlags = totalRiskFlags;
|
|
}
|
|
|
|
public AdminWorkDetailExceptionSummary criticalCount(@Nullable Integer criticalCount) {
|
|
this.criticalCount = criticalCount;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 严重异常数
|
|
* @return criticalCount
|
|
*/
|
|
|
|
@Schema(name = "criticalCount", description = "严重异常数", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("criticalCount")
|
|
public @Nullable Integer getCriticalCount() {
|
|
return criticalCount;
|
|
}
|
|
|
|
@JsonProperty("criticalCount")
|
|
public void setCriticalCount(@Nullable Integer criticalCount) {
|
|
this.criticalCount = criticalCount;
|
|
}
|
|
|
|
public AdminWorkDetailExceptionSummary activeGovernanceActions(@Nullable Integer activeGovernanceActions) {
|
|
this.activeGovernanceActions = activeGovernanceActions;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 进行中的治理动作数
|
|
* @return activeGovernanceActions
|
|
*/
|
|
|
|
@Schema(name = "activeGovernanceActions", description = "进行中的治理动作数", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("activeGovernanceActions")
|
|
public @Nullable Integer getActiveGovernanceActions() {
|
|
return activeGovernanceActions;
|
|
}
|
|
|
|
@JsonProperty("activeGovernanceActions")
|
|
public void setActiveGovernanceActions(@Nullable Integer activeGovernanceActions) {
|
|
this.activeGovernanceActions = activeGovernanceActions;
|
|
}
|
|
|
|
public AdminWorkDetailExceptionSummary latestRiskType(@Nullable String latestRiskType) {
|
|
this.latestRiskType = latestRiskType;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 最近异常类型
|
|
* @return latestRiskType
|
|
*/
|
|
|
|
@Schema(name = "latestRiskType", description = "最近异常类型", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("latestRiskType")
|
|
public @Nullable String getLatestRiskType() {
|
|
return latestRiskType;
|
|
}
|
|
|
|
@JsonProperty("latestRiskType")
|
|
public void setLatestRiskType(@Nullable String latestRiskType) {
|
|
this.latestRiskType = latestRiskType;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
AdminWorkDetailExceptionSummary adminWorkDetailExceptionSummary = (AdminWorkDetailExceptionSummary) o;
|
|
return Objects.equals(this.totalRiskFlags, adminWorkDetailExceptionSummary.totalRiskFlags) &&
|
|
Objects.equals(this.criticalCount, adminWorkDetailExceptionSummary.criticalCount) &&
|
|
Objects.equals(this.activeGovernanceActions, adminWorkDetailExceptionSummary.activeGovernanceActions) &&
|
|
Objects.equals(this.latestRiskType, adminWorkDetailExceptionSummary.latestRiskType);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(totalRiskFlags, criticalCount, activeGovernanceActions, latestRiskType);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class AdminWorkDetailExceptionSummary {\n");
|
|
sb.append(" totalRiskFlags: ").append(toIndentedString(totalRiskFlags)).append("\n");
|
|
sb.append(" criticalCount: ").append(toIndentedString(criticalCount)).append("\n");
|
|
sb.append(" activeGovernanceActions: ").append(toIndentedString(activeGovernanceActions)).append("\n");
|
|
sb.append(" latestRiskType: ").append(toIndentedString(latestRiskType)).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 ");
|
|
}
|
|
}
|
|
|