186 lines
4.7 KiB
Java
186 lines
4.7 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.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;
|
|
|
|
/**
|
|
* AffectedBinding
|
|
*/
|
|
|
|
@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 AffectedBinding implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
private @Nullable UUID bindingId;
|
|
|
|
private @Nullable UUID workId;
|
|
|
|
private @Nullable String workName;
|
|
|
|
private @Nullable String bindingType;
|
|
|
|
private @Nullable String impact;
|
|
|
|
public AffectedBinding bindingId(@Nullable UUID bindingId) {
|
|
this.bindingId = bindingId;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get bindingId
|
|
* @return bindingId
|
|
*/
|
|
@Valid
|
|
@Schema(name = "bindingId", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("bindingId")
|
|
public @Nullable UUID getBindingId() {
|
|
return bindingId;
|
|
}
|
|
|
|
@JsonProperty("bindingId")
|
|
public void setBindingId(@Nullable UUID bindingId) {
|
|
this.bindingId = bindingId;
|
|
}
|
|
|
|
public AffectedBinding workId(@Nullable UUID workId) {
|
|
this.workId = workId;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get workId
|
|
* @return workId
|
|
*/
|
|
@Valid
|
|
@Schema(name = "workId", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("workId")
|
|
public @Nullable UUID getWorkId() {
|
|
return workId;
|
|
}
|
|
|
|
@JsonProperty("workId")
|
|
public void setWorkId(@Nullable UUID workId) {
|
|
this.workId = workId;
|
|
}
|
|
|
|
public AffectedBinding workName(@Nullable String workName) {
|
|
this.workName = workName;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 脱敏作品名
|
|
* @return workName
|
|
*/
|
|
|
|
@Schema(name = "workName", description = "脱敏作品名", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("workName")
|
|
public @Nullable String getWorkName() {
|
|
return workName;
|
|
}
|
|
|
|
@JsonProperty("workName")
|
|
public void setWorkName(@Nullable String workName) {
|
|
this.workName = workName;
|
|
}
|
|
|
|
public AffectedBinding bindingType(@Nullable String bindingType) {
|
|
this.bindingType = bindingType;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get bindingType
|
|
* @return bindingType
|
|
*/
|
|
|
|
@Schema(name = "bindingType", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("bindingType")
|
|
public @Nullable String getBindingType() {
|
|
return bindingType;
|
|
}
|
|
|
|
@JsonProperty("bindingType")
|
|
public void setBindingType(@Nullable String bindingType) {
|
|
this.bindingType = bindingType;
|
|
}
|
|
|
|
public AffectedBinding 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;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
AffectedBinding affectedBinding = (AffectedBinding) o;
|
|
return Objects.equals(this.bindingId, affectedBinding.bindingId) &&
|
|
Objects.equals(this.workId, affectedBinding.workId) &&
|
|
Objects.equals(this.workName, affectedBinding.workName) &&
|
|
Objects.equals(this.bindingType, affectedBinding.bindingType) &&
|
|
Objects.equals(this.impact, affectedBinding.impact);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(bindingId, workId, workName, bindingType, impact);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class AffectedBinding {\n");
|
|
sb.append(" bindingId: ").append(toIndentedString(bindingId)).append("\n");
|
|
sb.append(" workId: ").append(toIndentedString(workId)).append("\n");
|
|
sb.append(" workName: ").append(toIndentedString(workName)).append("\n");
|
|
sb.append(" bindingType: ").append(toIndentedString(bindingType)).append("\n");
|
|
sb.append(" impact: ").append(toIndentedString(impact)).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 ");
|
|
}
|
|
}
|
|
|