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

187 lines
5.3 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 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;
/**
* SupplementAppealRequest
*/
@JsonTypeName("supplementAppeal_request")
@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 SupplementAppealRequest implements Serializable {
private static final long serialVersionUID = 1L;
private String description;
@Valid
private List<String> attachmentIds = new ArrayList<>();
private @Nullable Boolean privacyConfirmed;
private UUID commandId;
public SupplementAppealRequest() {
super();
}
/**
* Constructor with only required parameters
*/
public SupplementAppealRequest(String description, UUID commandId) {
this.description = description;
this.commandId = commandId;
}
public SupplementAppealRequest description(String description) {
this.description = description;
return this;
}
/**
* 补充说明
* @return description
*/
@NotNull @Size(max = 5000)
@Schema(name = "description", description = "补充说明", requiredMode = Schema.RequiredMode.REQUIRED)
@JsonProperty("description")
public String getDescription() {
return description;
}
@JsonProperty("description")
public void setDescription(String description) {
this.description = description;
}
public SupplementAppealRequest attachmentIds(List<String> attachmentIds) {
this.attachmentIds = attachmentIds;
return this;
}
public SupplementAppealRequest addAttachmentIdsItem(String attachmentIdsItem) {
if (this.attachmentIds == null) {
this.attachmentIds = new ArrayList<>();
}
this.attachmentIds.add(attachmentIdsItem);
return this;
}
/**
* 附件标识列表
* @return attachmentIds
*/
@Schema(name = "attachmentIds", description = "附件标识列表", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("attachmentIds")
public List<String> getAttachmentIds() {
return attachmentIds;
}
@JsonProperty("attachmentIds")
public void setAttachmentIds(List<String> attachmentIds) {
this.attachmentIds = attachmentIds;
}
public SupplementAppealRequest privacyConfirmed(@Nullable Boolean privacyConfirmed) {
this.privacyConfirmed = privacyConfirmed;
return this;
}
/**
* 是否已确认隐私处理
* @return privacyConfirmed
*/
@Schema(name = "privacyConfirmed", description = "是否已确认隐私处理", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("privacyConfirmed")
public @Nullable Boolean getPrivacyConfirmed() {
return privacyConfirmed;
}
@JsonProperty("privacyConfirmed")
public void setPrivacyConfirmed(@Nullable Boolean privacyConfirmed) {
this.privacyConfirmed = privacyConfirmed;
}
public SupplementAppealRequest commandId(UUID commandId) {
this.commandId = commandId;
return this;
}
/**
* 幂等键
* @return commandId
*/
@NotNull @Valid
@Schema(name = "commandId", description = "幂等键", requiredMode = Schema.RequiredMode.REQUIRED)
@JsonProperty("commandId")
public UUID getCommandId() {
return commandId;
}
@JsonProperty("commandId")
public void setCommandId(UUID commandId) {
this.commandId = commandId;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SupplementAppealRequest supplementAppealRequest = (SupplementAppealRequest) o;
return Objects.equals(this.description, supplementAppealRequest.description) &&
Objects.equals(this.attachmentIds, supplementAppealRequest.attachmentIds) &&
Objects.equals(this.privacyConfirmed, supplementAppealRequest.privacyConfirmed) &&
Objects.equals(this.commandId, supplementAppealRequest.commandId);
}
@Override
public int hashCode() {
return Objects.hash(description, attachmentIds, privacyConfirmed, commandId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SupplementAppealRequest {\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" attachmentIds: ").append(toIndentedString(attachmentIds)).append("\n");
sb.append(" privacyConfirmed: ").append(toIndentedString(privacyConfirmed)).append("\n");
sb.append(" commandId: ").append(toIndentedString(commandId)).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 ");
}
}