Package com.dropbox.core.v2.sharing
Class CreateSharedLinkBuilder
- java.lang.Object
-
- com.dropbox.core.v2.sharing.CreateSharedLinkBuilder
-
public class CreateSharedLinkBuilder extends java.lang.Object
The request builder returned byDbxUserSharingRequests.createSharedLinkBuilder(java.lang.String)
.Use this class to set optional request parameters and complete the request.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
withShortUrl
public CreateSharedLinkBuilder withShortUrl(java.lang.Boolean shortUrl)
Set value for optional field.If left unset or set to
null
, defaults tofalse
.- Parameters:
shortUrl
- Defaults tofalse
when set tonull
.- Returns:
- this builder
-
withPendingUpload
public CreateSharedLinkBuilder withPendingUpload(PendingUploadMode pendingUpload)
Set value for optional field.- Parameters:
pendingUpload
- If it's okay to share a path that does not yet exist, set this to eitherPendingUploadMode.FILE
orPendingUploadMode.FOLDER
to indicate whether to assume it's a file or folder.- Returns:
- this builder
-
start
public PathLinkMetadata start() throws CreateSharedLinkErrorException, DbxException
Issues the request.
-
-