public static class SharedLinkFileInfo.Builder
extends java.lang.Object
SharedLinkFileInfo
.Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
password |
protected java.lang.String |
path |
protected java.lang.String |
url |
Modifier | Constructor and Description |
---|---|
protected |
Builder(java.lang.String url) |
Modifier and Type | Method and Description |
---|---|
SharedLinkFileInfo |
build()
Builds an instance of
SharedLinkFileInfo configured with this
builder's values |
SharedLinkFileInfo.Builder |
withPassword(java.lang.String password)
Set value for optional field.
|
SharedLinkFileInfo.Builder |
withPath(java.lang.String path)
Set value for optional field.
|
protected final java.lang.String url
protected java.lang.String path
protected java.lang.String password
public SharedLinkFileInfo.Builder withPath(java.lang.String path)
path
- The path corresponding to a file in a shared link to a
folder. Required for shared links to folders.public SharedLinkFileInfo.Builder withPassword(java.lang.String password)
password
- Password for the shared link. Required for
password-protected shared links to files unless it can be read
from a cookie.public SharedLinkFileInfo build()
SharedLinkFileInfo
configured with this
builder's valuesSharedLinkFileInfo