001package com.box.sdkgen.schemas.trashfolderrestored;
002
003import com.box.sdkgen.internal.SerializableObject;
004import com.box.sdkgen.schemas.foldermini.FolderMini;
005import com.fasterxml.jackson.annotation.JsonFilter;
006import com.fasterxml.jackson.annotation.JsonProperty;
007import java.util.List;
008import java.util.Objects;
009
010@JsonFilter("nullablePropertyFilter")
011public class TrashFolderRestoredPathCollectionField extends SerializableObject {
012
013  /** The number of folders in this list. */
014  @JsonProperty("total_count")
015  protected final long totalCount;
016
017  /** The parent folders for this item. */
018  protected final List<FolderMini> entries;
019
020  public TrashFolderRestoredPathCollectionField(
021      @JsonProperty("total_count") long totalCount,
022      @JsonProperty("entries") List<FolderMini> entries) {
023    super();
024    this.totalCount = totalCount;
025    this.entries = entries;
026  }
027
028  public long getTotalCount() {
029    return totalCount;
030  }
031
032  public List<FolderMini> getEntries() {
033    return entries;
034  }
035
036  @Override
037  public boolean equals(Object o) {
038    if (this == o) {
039      return true;
040    }
041    if (o == null || getClass() != o.getClass()) {
042      return false;
043    }
044    TrashFolderRestoredPathCollectionField casted = (TrashFolderRestoredPathCollectionField) o;
045    return Objects.equals(totalCount, casted.totalCount) && Objects.equals(entries, casted.entries);
046  }
047
048  @Override
049  public int hashCode() {
050    return Objects.hash(totalCount, entries);
051  }
052
053  @Override
054  public String toString() {
055    return "TrashFolderRestoredPathCollectionField{"
056        + "totalCount='"
057        + totalCount
058        + '\''
059        + ", "
060        + "entries='"
061        + entries
062        + '\''
063        + "}";
064  }
065}