Class LegalHoldsListHeldRevisionResult

java.lang.Object
com.dropbox.core.v2.team.LegalHoldsListHeldRevisionResult

public class LegalHoldsListHeldRevisionResult extends Object
  • Field Details

  • Constructor Details

    • LegalHoldsListHeldRevisionResult

      public LegalHoldsListHeldRevisionResult(@Nonnull List<LegalHoldHeldRevisionMetadata> entries, boolean hasMore, @Nullable String cursor)
      Parameters:
      entries - List of file entries that under the hold. Must not contain a null item and not be null.
      hasMore - True if there are more file entries that haven't been returned. You can retrieve them with a call to /legal_holds/list_held_revisions_continue.
      cursor - The cursor idicates where to continue reading file metadata entries for the next API call. When there are no more entries, the cursor will return none. Pass the cursor into /2/team/legal_holds/list_held_revisions/continue. Must have length of at least 1.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • LegalHoldsListHeldRevisionResult

      public LegalHoldsListHeldRevisionResult(@Nonnull List<LegalHoldHeldRevisionMetadata> entries, boolean hasMore)
      None

      The default values for unset fields will be used.

      Parameters:
      entries - List of file entries that under the hold. Must not contain a null item and not be null.
      hasMore - True if there are more file entries that haven't been returned. You can retrieve them with a call to /legal_holds/list_held_revisions_continue.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getEntries

      @Nonnull public List<LegalHoldHeldRevisionMetadata> getEntries()
      List of file entries that under the hold.
      Returns:
      value for this field, never null.
    • getHasMore

      public boolean getHasMore()
      True if there are more file entries that haven't been returned. You can retrieve them with a call to /legal_holds/list_held_revisions_continue.
      Returns:
      value for this field.
    • getCursor

      @Nullable public String getCursor()
      The cursor idicates where to continue reading file metadata entries for the next API call. When there are no more entries, the cursor will return none. Pass the cursor into /2/team/legal_holds/list_held_revisions/continue.
      Returns:
      value for this field, or null if not present.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toStringMultiline

      public String toStringMultiline()
      Returns a String representation of this object formatted for easier readability.

      The returned String may contain newlines.

      Returns:
      Formatted, multiline String representation of this object