public class MinimalFileLinkMetadata
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
MinimalFileLinkMetadata.Builder
Builder for
MinimalFileLinkMetadata . |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
id |
protected java.lang.String |
path |
protected java.lang.String |
rev |
protected java.lang.String |
url |
Constructor and Description |
---|
MinimalFileLinkMetadata(java.lang.String url,
java.lang.String rev)
None
|
MinimalFileLinkMetadata(java.lang.String url,
java.lang.String rev,
java.lang.String id,
java.lang.String path)
Use
newBuilder to create instances of this class without
specifying values for all optional fields. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getId()
Unique identifier for the linked file.
|
java.lang.String |
getPath()
Full path in the user's Dropbox.
|
java.lang.String |
getRev()
A unique identifier for the current revision of a file.
|
java.lang.String |
getUrl()
URL of the shared link.
|
int |
hashCode() |
static MinimalFileLinkMetadata.Builder |
newBuilder(java.lang.String url,
java.lang.String rev)
Returns a new builder for creating an instance of this class.
|
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final java.lang.String url
protected final java.lang.String id
protected final java.lang.String path
protected final java.lang.String rev
public MinimalFileLinkMetadata(java.lang.String url, java.lang.String rev, java.lang.String id, java.lang.String path)
newBuilder
to create instances of this class without
specifying values for all optional fields.url
- URL of the shared link. Must not be null
.rev
- A unique identifier for the current revision of a file. This
field is the same rev as elsewhere in the API and can be used to
detect changes and avoid conflicts. Must have length of at least 9,
match pattern "[0-9a-f]+
", and not be null
.id
- Unique identifier for the linked file. Must have length of at
least 1.path
- Full path in the user's Dropbox. This always starts with a
slash. This field will only be present only if the linked file is in
the authenticated user's Dropbox.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public MinimalFileLinkMetadata(java.lang.String url, java.lang.String rev)
The default values for unset fields will be used.
url
- URL of the shared link. Must not be null
.rev
- A unique identifier for the current revision of a file. This
field is the same rev as elsewhere in the API and can be used to
detect changes and avoid conflicts. Must have length of at least 9,
match pattern "[0-9a-f]+
", and not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public java.lang.String getUrl()
null
.public java.lang.String getRev()
null
.public java.lang.String getId()
null
if not present.public java.lang.String getPath()
null
if not present.public static MinimalFileLinkMetadata.Builder newBuilder(java.lang.String url, java.lang.String rev)
url
- URL of the shared link. Must not be null
.rev
- A unique identifier for the current revision of a file. This
field is the same rev as elsewhere in the API and can be used to
detect changes and avoid conflicts. Must have length of at least 9,
match pattern "[0-9a-f]+
", and not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.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.