136 lines
3.5 KiB
Java
136 lines
3.5 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;
|
|
|
|
/**
|
|
* AffectedAuthorization
|
|
*/
|
|
|
|
@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 AffectedAuthorization implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
private @Nullable UUID licenseId;
|
|
|
|
private @Nullable String status;
|
|
|
|
private @Nullable String impact;
|
|
|
|
public AffectedAuthorization licenseId(@Nullable UUID licenseId) {
|
|
this.licenseId = licenseId;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get licenseId
|
|
* @return licenseId
|
|
*/
|
|
@Valid
|
|
@Schema(name = "licenseId", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("licenseId")
|
|
public @Nullable UUID getLicenseId() {
|
|
return licenseId;
|
|
}
|
|
|
|
@JsonProperty("licenseId")
|
|
public void setLicenseId(@Nullable UUID licenseId) {
|
|
this.licenseId = licenseId;
|
|
}
|
|
|
|
public AffectedAuthorization status(@Nullable String status) {
|
|
this.status = status;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 当前授权状态
|
|
* @return status
|
|
*/
|
|
|
|
@Schema(name = "status", description = "当前授权状态", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("status")
|
|
public @Nullable String getStatus() {
|
|
return status;
|
|
}
|
|
|
|
@JsonProperty("status")
|
|
public void setStatus(@Nullable String status) {
|
|
this.status = status;
|
|
}
|
|
|
|
public AffectedAuthorization impact(@Nullable String impact) {
|
|
this.impact = impact;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 影响说明
|
|
* @return impact
|
|
*/
|
|
|
|
@Schema(name = "impact", description = "影响说明", 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;
|
|
}
|
|
AffectedAuthorization affectedAuthorization = (AffectedAuthorization) o;
|
|
return Objects.equals(this.licenseId, affectedAuthorization.licenseId) &&
|
|
Objects.equals(this.status, affectedAuthorization.status) &&
|
|
Objects.equals(this.impact, affectedAuthorization.impact);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(licenseId, status, impact);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class AffectedAuthorization {\n");
|
|
sb.append(" licenseId: ").append(toIndentedString(licenseId)).append("\n");
|
|
sb.append(" status: ").append(toIndentedString(status)).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 ");
|
|
}
|
|
}
|
|
|