Package com.dropbox.core.v2.files
Class DeleteArg
- java.lang.Object
-
- com.dropbox.core.v2.files.DeleteArg
-
public class DeleteArg extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getParentRev()
Perform delete if given "rev" matches the existing file's latest "rev".java.lang.String
getPath()
Path in the user's Dropbox to delete.int
hashCode()
java.lang.String
toString()
java.lang.String
toStringMultiline()
Returns a String representation of this object formatted for easier readability.
-
-
-
Constructor Detail
-
DeleteArg
public DeleteArg(java.lang.String path, java.lang.String parentRev)
- Parameters:
path
- Path in the user's Dropbox to delete. Must match pattern "(/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)
" and not benull
.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:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
DeleteArg
public DeleteArg(java.lang.String path)
NoneThe 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]+(/.*)?)|(id:.*)
" and not benull
.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
-
Method Detail
-
getPath
public java.lang.String getPath()
Path in the user's Dropbox to delete.- Returns:
- value for this field, never
null
.
-
getParentRev
public java.lang.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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toStringMultiline
public java.lang.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
-
-