001package com.box.sdkgen.schemas.v2025r0.docgenjobv2025r0;
002
003import com.box.sdkgen.internal.SerializableObject;
004import com.fasterxml.jackson.annotation.JsonFilter;
005import com.fasterxml.jackson.annotation.JsonProperty;
006import java.util.List;
007import java.util.Objects;
008
009@JsonFilter("nullablePropertyFilter")
010public class DocGenJobV2025R0FailuresField extends SerializableObject {
011
012  /** A list of errors that occurred during document generation. */
013  protected final List<String> errors;
014
015  /** A list of warnings that occurred during document generation. */
016  protected final List<String> warnings;
017
018  public DocGenJobV2025R0FailuresField(
019      @JsonProperty("errors") List<String> errors,
020      @JsonProperty("warnings") List<String> warnings) {
021    super();
022    this.errors = errors;
023    this.warnings = warnings;
024  }
025
026  public List<String> getErrors() {
027    return errors;
028  }
029
030  public List<String> getWarnings() {
031    return warnings;
032  }
033
034  @Override
035  public boolean equals(Object o) {
036    if (this == o) {
037      return true;
038    }
039    if (o == null || getClass() != o.getClass()) {
040      return false;
041    }
042    DocGenJobV2025R0FailuresField casted = (DocGenJobV2025R0FailuresField) o;
043    return Objects.equals(errors, casted.errors) && Objects.equals(warnings, casted.warnings);
044  }
045
046  @Override
047  public int hashCode() {
048    return Objects.hash(errors, warnings);
049  }
050
051  @Override
052  public String toString() {
053    return "DocGenJobV2025R0FailuresField{"
054        + "errors='"
055        + errors
056        + '\''
057        + ", "
058        + "warnings='"
059        + warnings
060        + '\''
061        + "}";
062  }
063}