oh-my-muse/docs/api-contracts/generated/java/com/muse/dto/BusinessAuditEventSummary.java

253 lines
6.9 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 java.time.OffsetDateTime;
import java.util.UUID;
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;
/**
* BusinessAuditEventSummary
*/
@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 BusinessAuditEventSummary implements Serializable {
private static final long serialVersionUID = 1L;
private UUID eventId;
private String eventType;
private String operator;
private @Nullable String resourceType;
private @Nullable String resourceId;
private @Nullable String summary;
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
private OffsetDateTime createdAt;
public BusinessAuditEventSummary() {
super();
}
/**
* Constructor with only required parameters
*/
public BusinessAuditEventSummary(UUID eventId, String eventType, String operator, OffsetDateTime createdAt) {
this.eventId = eventId;
this.eventType = eventType;
this.operator = operator;
this.createdAt = createdAt;
}
public BusinessAuditEventSummary eventId(UUID eventId) {
this.eventId = eventId;
return this;
}
/**
* Get eventId
* @return eventId
*/
@NotNull @Valid
@Schema(name = "eventId", requiredMode = Schema.RequiredMode.REQUIRED)
@JsonProperty("eventId")
public UUID getEventId() {
return eventId;
}
@JsonProperty("eventId")
public void setEventId(UUID eventId) {
this.eventId = eventId;
}
public BusinessAuditEventSummary eventType(String eventType) {
this.eventType = eventType;
return this;
}
/**
* 审计事件类型
* @return eventType
*/
@NotNull
@Schema(name = "eventType", description = "审计事件类型", requiredMode = Schema.RequiredMode.REQUIRED)
@JsonProperty("eventType")
public String getEventType() {
return eventType;
}
@JsonProperty("eventType")
public void setEventType(String eventType) {
this.eventType = eventType;
}
public BusinessAuditEventSummary operator(String operator) {
this.operator = operator;
return this;
}
/**
* 操作者
* @return operator
*/
@NotNull
@Schema(name = "operator", description = "操作者", requiredMode = Schema.RequiredMode.REQUIRED)
@JsonProperty("operator")
public String getOperator() {
return operator;
}
@JsonProperty("operator")
public void setOperator(String operator) {
this.operator = operator;
}
public BusinessAuditEventSummary resourceType(@Nullable String resourceType) {
this.resourceType = resourceType;
return this;
}
/**
* 操作资源类型
* @return resourceType
*/
@Schema(name = "resourceType", description = "操作资源类型", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("resourceType")
public @Nullable String getResourceType() {
return resourceType;
}
@JsonProperty("resourceType")
public void setResourceType(@Nullable String resourceType) {
this.resourceType = resourceType;
}
public BusinessAuditEventSummary resourceId(@Nullable String resourceId) {
this.resourceId = resourceId;
return this;
}
/**
* 操作资源 ID
* @return resourceId
*/
@Schema(name = "resourceId", description = "操作资源 ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("resourceId")
public @Nullable String getResourceId() {
return resourceId;
}
@JsonProperty("resourceId")
public void setResourceId(@Nullable String resourceId) {
this.resourceId = resourceId;
}
public BusinessAuditEventSummary summary(@Nullable String summary) {
this.summary = summary;
return this;
}
/**
* 操作摘要
* @return summary
*/
@Schema(name = "summary", description = "操作摘要", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("summary")
public @Nullable String getSummary() {
return summary;
}
@JsonProperty("summary")
public void setSummary(@Nullable String summary) {
this.summary = summary;
}
public BusinessAuditEventSummary createdAt(OffsetDateTime createdAt) {
this.createdAt = createdAt;
return this;
}
/**
* Get createdAt
* @return createdAt
*/
@NotNull @Valid
@Schema(name = "createdAt", requiredMode = Schema.RequiredMode.REQUIRED)
@JsonProperty("createdAt")
public OffsetDateTime getCreatedAt() {
return createdAt;
}
@JsonProperty("createdAt")
public void setCreatedAt(OffsetDateTime createdAt) {
this.createdAt = createdAt;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BusinessAuditEventSummary businessAuditEventSummary = (BusinessAuditEventSummary) o;
return Objects.equals(this.eventId, businessAuditEventSummary.eventId) &&
Objects.equals(this.eventType, businessAuditEventSummary.eventType) &&
Objects.equals(this.operator, businessAuditEventSummary.operator) &&
Objects.equals(this.resourceType, businessAuditEventSummary.resourceType) &&
Objects.equals(this.resourceId, businessAuditEventSummary.resourceId) &&
Objects.equals(this.summary, businessAuditEventSummary.summary) &&
Objects.equals(this.createdAt, businessAuditEventSummary.createdAt);
}
@Override
public int hashCode() {
return Objects.hash(eventId, eventType, operator, resourceType, resourceId, summary, createdAt);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BusinessAuditEventSummary {\n");
sb.append(" eventId: ").append(toIndentedString(eventId)).append("\n");
sb.append(" eventType: ").append(toIndentedString(eventType)).append("\n");
sb.append(" operator: ").append(toIndentedString(operator)).append("\n");
sb.append(" resourceType: ").append(toIndentedString(resourceType)).append("\n");
sb.append(" resourceId: ").append(toIndentedString(resourceId)).append("\n");
sb.append(" summary: ").append(toIndentedString(summary)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).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 ");
}
}