public class CreateSharedLinkBuilder
extends java.lang.Object
DbxUserSharingRequests.createSharedLinkBuilder(java.lang.String).
Use this class to set optional request parameters and complete the request.
| Modifier and Type | Method and Description |
|---|---|
PathLinkMetadata |
start()
Issues the request.
|
CreateSharedLinkBuilder |
withPendingUpload(PendingUploadMode pendingUpload)
Set value for optional field.
|
CreateSharedLinkBuilder |
withShortUrl(java.lang.Boolean shortUrl)
Set value for optional field.
|
public CreateSharedLinkBuilder withShortUrl(java.lang.Boolean shortUrl)
If left unset or set to null, defaults to false.
shortUrl - Whether to return a shortened URL. Defaults to false when set to null.public CreateSharedLinkBuilder withPendingUpload(PendingUploadMode pendingUpload)
pendingUpload - If it's okay to share a path that does not yet
exist, set this to either PendingUploadMode.FILE or PendingUploadMode.FOLDER to indicate whether to assume it's a file
or folder.public PathLinkMetadata start() throws CreateSharedLinkErrorException, DbxException