001package com.box.sdkgen.schemas.trashfolder;
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 TrashFolderPathCollectionField extends SerializableObject {
011
012  /** The number of folders in this list. */
013  @JsonProperty("total_count")
014  protected final long totalCount;
015
016  /** Array of folders for this item's path collection. */
017  protected final List<TrashFolderPathCollectionEntriesField> entries;
018
019  public TrashFolderPathCollectionField(
020      @JsonProperty("total_count") long totalCount,
021      @JsonProperty("entries") List<TrashFolderPathCollectionEntriesField> entries) {
022    super();
023    this.totalCount = totalCount;
024    this.entries = entries;
025  }
026
027  public long getTotalCount() {
028    return totalCount;
029  }
030
031  public List<TrashFolderPathCollectionEntriesField> getEntries() {
032    return entries;
033  }
034
035  @Override
036  public boolean equals(Object o) {
037    if (this == o) {
038      return true;
039    }
040    if (o == null || getClass() != o.getClass()) {
041      return false;
042    }
043    TrashFolderPathCollectionField casted = (TrashFolderPathCollectionField) o;
044    return Objects.equals(totalCount, casted.totalCount) && Objects.equals(entries, casted.entries);
045  }
046
047  @Override
048  public int hashCode() {
049    return Objects.hash(totalCount, entries);
050  }
051
052  @Override
053  public String toString() {
054    return "TrashFolderPathCollectionField{"
055        + "totalCount='"
056        + totalCount
057        + '\''
058        + ", "
059        + "entries='"
060        + entries
061        + '\''
062        + "}";
063  }
064}