001package com.box.sdkgen.schemas.filefull;
002
003import com.box.sdkgen.internal.NullableFieldTracker;
004import com.box.sdkgen.internal.SerializableObject;
005import com.fasterxml.jackson.annotation.JsonFilter;
006import java.util.Objects;
007
008@JsonFilter("nullablePropertyFilter")
009public class FileFullRepresentationsEntriesInfoField extends SerializableObject {
010
011  /**
012   * The API URL that can be used to get more info on this file representation. Make sure to make an
013   * authenticated API call to this endpoint.
014   */
015  protected String url;
016
017  public FileFullRepresentationsEntriesInfoField() {
018    super();
019  }
020
021  protected FileFullRepresentationsEntriesInfoField(Builder builder) {
022    super();
023    this.url = builder.url;
024    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
025  }
026
027  public String getUrl() {
028    return url;
029  }
030
031  @Override
032  public boolean equals(Object o) {
033    if (this == o) {
034      return true;
035    }
036    if (o == null || getClass() != o.getClass()) {
037      return false;
038    }
039    FileFullRepresentationsEntriesInfoField casted = (FileFullRepresentationsEntriesInfoField) o;
040    return Objects.equals(url, casted.url);
041  }
042
043  @Override
044  public int hashCode() {
045    return Objects.hash(url);
046  }
047
048  @Override
049  public String toString() {
050    return "FileFullRepresentationsEntriesInfoField{" + "url='" + url + '\'' + "}";
051  }
052
053  public static class Builder extends NullableFieldTracker {
054
055    protected String url;
056
057    public Builder url(String url) {
058      this.url = url;
059      return this;
060    }
061
062    public FileFullRepresentationsEntriesInfoField build() {
063      return new FileFullRepresentationsEntriesInfoField(this);
064    }
065  }
066}