public class DeleteArg
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
parentRev |
protected java.lang.String |
path |
Constructor and Description |
---|
DeleteArg(java.lang.String path)
None
|
DeleteArg(java.lang.String path,
java.lang.String parentRev) |
Modifier and Type | Method and 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.
|
protected final java.lang.String path
protected final java.lang.String parentRev
public DeleteArg(java.lang.String path, java.lang.String parentRev)
path
- Path in the user's Dropbox to delete. Must match pattern
"(/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(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]+
".java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public DeleteArg(java.lang.String path)
The default values for unset fields will be used.
path
- Path in the user's Dropbox to delete. Must match pattern
"(/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)
" and not be
null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public java.lang.String getPath()
null
.public java.lang.String getParentRev()
null
if not present.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.