public static class MinimalFileLinkMetadata.Builder
extends java.lang.Object
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 |
Modifier | Constructor and Description |
---|---|
protected |
Builder(java.lang.String url,
java.lang.String rev) |
Modifier and Type | Method and Description |
---|---|
MinimalFileLinkMetadata |
build()
Builds an instance of
MinimalFileLinkMetadata configured with
this builder's values |
MinimalFileLinkMetadata.Builder |
withId(java.lang.String id)
Set value for optional field.
|
MinimalFileLinkMetadata.Builder |
withPath(java.lang.String path)
Set value for optional field.
|
protected final java.lang.String url
protected final java.lang.String rev
protected java.lang.String id
protected java.lang.String path
public MinimalFileLinkMetadata.Builder withId(java.lang.String id)
id
- Unique identifier for the linked file. Must have length of
at least 1.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public MinimalFileLinkMetadata.Builder withPath(java.lang.String path)
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.public MinimalFileLinkMetadata build()
MinimalFileLinkMetadata
configured with
this builder's valuesMinimalFileLinkMetadata