001package com.box.sdkgen.managers.uploads;
002
003import com.box.sdkgen.internal.SerializableObject;
004import com.fasterxml.jackson.annotation.JsonFilter;
005import com.fasterxml.jackson.annotation.JsonProperty;
006import java.util.Objects;
007
008@JsonFilter("nullablePropertyFilter")
009public class UploadFileRequestBodyAttributesParentField extends SerializableObject {
010
011  /** The id of the parent folder. Use `0` for the user's root folder. */
012  protected final String id;
013
014  public UploadFileRequestBodyAttributesParentField(@JsonProperty("id") String id) {
015    super();
016    this.id = id;
017  }
018
019  public String getId() {
020    return id;
021  }
022
023  @Override
024  public boolean equals(Object o) {
025    if (this == o) {
026      return true;
027    }
028    if (o == null || getClass() != o.getClass()) {
029      return false;
030    }
031    UploadFileRequestBodyAttributesParentField casted =
032        (UploadFileRequestBodyAttributesParentField) o;
033    return Objects.equals(id, casted.id);
034  }
035
036  @Override
037  public int hashCode() {
038    return Objects.hash(id);
039  }
040
041  @Override
042  public String toString() {
043    return "UploadFileRequestBodyAttributesParentField{" + "id='" + id + '\'' + "}";
044  }
045}