public class FileSharedLinkField extends SerializableObject
| Modifier and Type | Class and Description |
|---|---|
static class |
FileSharedLinkField.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected EnumWrapper<FileSharedLinkAccessField> |
access
The access level for this shared link.
|
protected long |
downloadCount
The number of times this item has been downloaded.
|
protected String |
downloadUrl
A URL that can be used to download the file.
|
protected EnumWrapper<FileSharedLinkEffectiveAccessField> |
effectiveAccess
The effective access level for the shared link.
|
protected EnumWrapper<FileSharedLinkEffectivePermissionField> |
effectivePermission
The effective permissions for this shared link.
|
protected boolean |
isPasswordEnabled
Defines if the shared link requires a password to access the item.
|
protected FileSharedLinkPermissionsField |
permissions
Defines if this link allows a user to preview, edit, and download an item.
|
protected long |
previewCount
The number of times this item has been previewed.
|
protected OffsetDateTime |
unsharedAt
The date and time when this link will be unshared.
|
protected String |
url
The URL that can be used to access the item on Box.
|
protected String |
vanityName
The custom name of a shared link, as used in the `vanity_url` field.
|
protected String |
vanityUrl
The "Custom URL" that can also be used to preview the item on Box.
|
explicitlySetNullableFields| Modifier | Constructor and Description |
|---|---|
protected |
FileSharedLinkField(FileSharedLinkField.Builder builder) |
|
FileSharedLinkField(String url,
EnumWrapper<FileSharedLinkEffectiveAccessField> effectiveAccess,
EnumWrapper<FileSharedLinkEffectivePermissionField> effectivePermission,
boolean isPasswordEnabled,
long downloadCount,
long previewCount) |
|
FileSharedLinkField(String url,
EnumWrapper<FileSharedLinkEffectiveAccessField> effectiveAccess,
FileSharedLinkEffectivePermissionField effectivePermission,
boolean isPasswordEnabled,
long downloadCount,
long previewCount) |
|
FileSharedLinkField(String url,
FileSharedLinkEffectiveAccessField effectiveAccess,
EnumWrapper<FileSharedLinkEffectivePermissionField> effectivePermission,
boolean isPasswordEnabled,
long downloadCount,
long previewCount) |
|
FileSharedLinkField(String url,
FileSharedLinkEffectiveAccessField effectiveAccess,
FileSharedLinkEffectivePermissionField effectivePermission,
boolean isPasswordEnabled,
long downloadCount,
long previewCount) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
EnumWrapper<FileSharedLinkAccessField> |
getAccess() |
long |
getDownloadCount() |
String |
getDownloadUrl() |
EnumWrapper<FileSharedLinkEffectiveAccessField> |
getEffectiveAccess() |
EnumWrapper<FileSharedLinkEffectivePermissionField> |
getEffectivePermission() |
boolean |
getIsPasswordEnabled() |
FileSharedLinkPermissionsField |
getPermissions() |
long |
getPreviewCount() |
OffsetDateTime |
getUnsharedAt() |
String |
getUrl() |
String |
getVanityName() |
String |
getVanityUrl() |
int |
hashCode() |
String |
toString() |
getRawData, setRawDatagetExplicitlySetNullableFields, isFieldExplicitlySet, markNullableFieldAsSet, markNullableFieldsAsSetprotected final String url
This URL will display the item in Box's preview UI where the file can be downloaded if allowed.
This URL will continue to work even when a custom `vanity_url` has been set for this shared link.
protected String downloadUrl
This property will be `null` for folders.
protected String vanityUrl
protected String vanityName
protected EnumWrapper<FileSharedLinkAccessField> access
* `open` - provides access to this item to anyone with this link * `company` - only provides access to this item to people the same company * `collaborators` - only provides access to this item to people who are collaborators on this item
If this field is omitted when creating the shared link, the access level will be set to the default access level specified by the enterprise admin.
protected final EnumWrapper<FileSharedLinkEffectiveAccessField> effectiveAccess
protected final EnumWrapper<FileSharedLinkEffectivePermissionField> effectivePermission
protected OffsetDateTime unsharedAt
protected final boolean isPasswordEnabled
protected FileSharedLinkPermissionsField permissions
protected final long downloadCount
protected final long previewCount
public FileSharedLinkField(String url, FileSharedLinkEffectiveAccessField effectiveAccess, FileSharedLinkEffectivePermissionField effectivePermission, boolean isPasswordEnabled, long downloadCount, long previewCount)
public FileSharedLinkField(String url, FileSharedLinkEffectiveAccessField effectiveAccess, EnumWrapper<FileSharedLinkEffectivePermissionField> effectivePermission, boolean isPasswordEnabled, long downloadCount, long previewCount)
public FileSharedLinkField(String url, EnumWrapper<FileSharedLinkEffectiveAccessField> effectiveAccess, FileSharedLinkEffectivePermissionField effectivePermission, boolean isPasswordEnabled, long downloadCount, long previewCount)
public FileSharedLinkField(String url, EnumWrapper<FileSharedLinkEffectiveAccessField> effectiveAccess, EnumWrapper<FileSharedLinkEffectivePermissionField> effectivePermission, boolean isPasswordEnabled, long downloadCount, long previewCount)
protected FileSharedLinkField(FileSharedLinkField.Builder builder)
public String getDownloadUrl()
public String getVanityUrl()
public String getVanityName()
public EnumWrapper<FileSharedLinkAccessField> getAccess()
public EnumWrapper<FileSharedLinkEffectiveAccessField> getEffectiveAccess()
public EnumWrapper<FileSharedLinkEffectivePermissionField> getEffectivePermission()
public OffsetDateTime getUnsharedAt()
public boolean getIsPasswordEnabled()
public FileSharedLinkPermissionsField getPermissions()
public long getDownloadCount()
public long getPreviewCount()