Class DeleteArg

java.lang.Object
com.dropbox.core.v2.files.DeleteArg

public class DeleteArg extends Object
  • Field Details

    • path

      @Nonnull protected final String path
    • parentRev

      @Nullable protected final String parentRev
  • Constructor Details

    • DeleteArg

      public DeleteArg(@Nonnull String path, @Nullable String parentRev)
      Parameters:
      path - Path in the user's Dropbox to delete. Must match pattern "(/(.|[\\r\\n])*)|(ns:[0-9]+(/(.|[\\r\\n])*)?)|(id:.*)" and not be null.
      parentRev - Perform delete if given "rev" matches the existing file's latest "rev". This field does not support deleting a folder. Must have length of at least 9 and match pattern "[0-9a-f]+".
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • DeleteArg

      public DeleteArg(@Nonnull String path)
      None

      The default values for unset fields will be used.

      Parameters:
      path - Path in the user's Dropbox to delete. Must match pattern "(/(.|[\\r\\n])*)|(ns:[0-9]+(/(.|[\\r\\n])*)?)|(id:.*)" and not be null.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getPath

      @Nonnull public String getPath()
      Path in the user's Dropbox to delete.
      Returns:
      value for this field, never null.
    • getParentRev

      @Nullable public String getParentRev()
      Perform delete if given "rev" matches the existing file's latest "rev". This field does not support deleting a folder.
      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