150 lines
4.4 KiB
Java
150 lines
4.4 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 com.muse.dto.DynamicFieldValidationResultFieldResultsInnerErrorsInner;
|
|
import java.util.ArrayList;
|
|
import java.util.Arrays;
|
|
import java.util.List;
|
|
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;
|
|
|
|
/**
|
|
* DynamicFieldValidationResultFieldResultsInner
|
|
*/
|
|
|
|
@JsonTypeName("DynamicFieldValidationResult_fieldResults_inner")
|
|
@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 DynamicFieldValidationResultFieldResultsInner implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
private @Nullable String fieldKey;
|
|
|
|
private @Nullable Boolean valid;
|
|
|
|
@Valid
|
|
private List<@Valid DynamicFieldValidationResultFieldResultsInnerErrorsInner> errors = new ArrayList<>();
|
|
|
|
public DynamicFieldValidationResultFieldResultsInner fieldKey(@Nullable String fieldKey) {
|
|
this.fieldKey = fieldKey;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get fieldKey
|
|
* @return fieldKey
|
|
*/
|
|
|
|
@Schema(name = "fieldKey", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("fieldKey")
|
|
public @Nullable String getFieldKey() {
|
|
return fieldKey;
|
|
}
|
|
|
|
@JsonProperty("fieldKey")
|
|
public void setFieldKey(@Nullable String fieldKey) {
|
|
this.fieldKey = fieldKey;
|
|
}
|
|
|
|
public DynamicFieldValidationResultFieldResultsInner valid(@Nullable Boolean valid) {
|
|
this.valid = valid;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get valid
|
|
* @return valid
|
|
*/
|
|
|
|
@Schema(name = "valid", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("valid")
|
|
public @Nullable Boolean getValid() {
|
|
return valid;
|
|
}
|
|
|
|
@JsonProperty("valid")
|
|
public void setValid(@Nullable Boolean valid) {
|
|
this.valid = valid;
|
|
}
|
|
|
|
public DynamicFieldValidationResultFieldResultsInner errors(List<@Valid DynamicFieldValidationResultFieldResultsInnerErrorsInner> errors) {
|
|
this.errors = errors;
|
|
return this;
|
|
}
|
|
|
|
public DynamicFieldValidationResultFieldResultsInner addErrorsItem(DynamicFieldValidationResultFieldResultsInnerErrorsInner errorsItem) {
|
|
if (this.errors == null) {
|
|
this.errors = new ArrayList<>();
|
|
}
|
|
this.errors.add(errorsItem);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get errors
|
|
* @return errors
|
|
*/
|
|
@Valid
|
|
@Schema(name = "errors", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("errors")
|
|
public List<@Valid DynamicFieldValidationResultFieldResultsInnerErrorsInner> getErrors() {
|
|
return errors;
|
|
}
|
|
|
|
@JsonProperty("errors")
|
|
public void setErrors(List<@Valid DynamicFieldValidationResultFieldResultsInnerErrorsInner> errors) {
|
|
this.errors = errors;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
DynamicFieldValidationResultFieldResultsInner dynamicFieldValidationResultFieldResultsInner = (DynamicFieldValidationResultFieldResultsInner) o;
|
|
return Objects.equals(this.fieldKey, dynamicFieldValidationResultFieldResultsInner.fieldKey) &&
|
|
Objects.equals(this.valid, dynamicFieldValidationResultFieldResultsInner.valid) &&
|
|
Objects.equals(this.errors, dynamicFieldValidationResultFieldResultsInner.errors);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(fieldKey, valid, errors);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class DynamicFieldValidationResultFieldResultsInner {\n");
|
|
sb.append(" fieldKey: ").append(toIndentedString(fieldKey)).append("\n");
|
|
sb.append(" valid: ").append(toIndentedString(valid)).append("\n");
|
|
sb.append(" errors: ").append(toIndentedString(errors)).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 ");
|
|
}
|
|
}
|
|
|