public class BoxSharedLinkRequest extends Object
Constructor and Description |
---|
BoxSharedLinkRequest() |
Modifier and Type | Method and Description |
---|---|
T |
access(BoxSharedLink.Access access)
Sets the access level of this shared link.
|
BoxSharedLink |
asSharedLink() |
T |
password(String password)
Sets the password of this shared link.
|
BoxSharedLinkRequest |
permissions(boolean canDownload,
boolean canPreview)
Sets the permissions associated with this shared link.
|
BoxSharedLinkRequest |
permissions(boolean canDownload,
boolean canPreview,
boolean canEdit)
Sets the permissions associated with this shared link.
|
T |
unsharedDate(Date unsharedDate)
Sets the time that this shared link will be deactivated.
|
T |
vanityName(String vanityName)
Sets vanity name used to create vanity URL.
|
public BoxSharedLinkRequest()
public BoxSharedLinkRequest permissions(boolean canDownload, boolean canPreview, boolean canEdit)
canDownload
- whether the shared link can be downloaded.canPreview
- whether the shared link can be previewed.canEdit
- whether the file shared with the link can be edited.public BoxSharedLinkRequest permissions(boolean canDownload, boolean canPreview)
canDownload
- whether the shared link can be downloaded.canPreview
- whether the shared link can be previewed.public T access(BoxSharedLink.Access access)
access
- the new access level of this shared link.public T password(String password)
password
- the password of this shared link.public T unsharedDate(Date unsharedDate)
unsharedDate
- the time that this shared link will be deactivated.public T vanityName(String vanityName)
vanityName
- Vanity name. Vanity name must be at least 12 characters long.public BoxSharedLink asSharedLink()