public static class FileLinkMetadata.Builder extends SharedLinkMetadata.Builder
FileLinkMetadata.| Modifier and Type | Field and Description |
|---|---|
protected Date |
clientModified |
protected String |
rev |
protected Date |
serverModified |
protected long |
size |
contentOwnerTeamInfo, expires, id, linkPermissions, name, pathLower, teamMemberInfo, url| Modifier | Constructor and Description |
|---|---|
protected |
Builder(String url,
String name,
LinkPermissions linkPermissions,
Date clientModified,
Date serverModified,
String rev,
long size) |
| Modifier and Type | Method and Description |
|---|---|
FileLinkMetadata |
build()
Builds an instance of
FileLinkMetadata configured with this
builder's values |
FileLinkMetadata.Builder |
withContentOwnerTeamInfo(Team contentOwnerTeamInfo)
Set value for optional field.
|
FileLinkMetadata.Builder |
withExpires(Date expires)
Set value for optional field.
|
FileLinkMetadata.Builder |
withId(String id)
Set value for optional field.
|
FileLinkMetadata.Builder |
withPathLower(String pathLower)
Set value for optional field.
|
FileLinkMetadata.Builder |
withTeamMemberInfo(TeamMemberInfo teamMemberInfo)
Set value for optional field.
|
protected final Date clientModified
protected final Date serverModified
protected final String rev
protected final long size
public FileLinkMetadata.Builder withId(String id)
withId in class SharedLinkMetadata.Builderid - A unique identifier for the linked file. Must have length
of at least 1.IllegalArgumentException - If any argument does not meet its
preconditions.public FileLinkMetadata.Builder withExpires(Date expires)
withExpires in class SharedLinkMetadata.Builderexpires - Expiration time, if set. By default the link won't
expire.public FileLinkMetadata.Builder withPathLower(String pathLower)
withPathLower in class SharedLinkMetadata.BuilderpathLower - The lowercased full path in the user's Dropbox.
This always starts with a slash. This field will only be present
only if the linked file is in the authenticated user's dropbox.public FileLinkMetadata.Builder withTeamMemberInfo(TeamMemberInfo teamMemberInfo)
withTeamMemberInfo in class SharedLinkMetadata.BuilderteamMemberInfo - The team membership information of the link's
owner. This field will only be present if the link's owner is a
team member.public FileLinkMetadata.Builder withContentOwnerTeamInfo(Team contentOwnerTeamInfo)
withContentOwnerTeamInfo in class SharedLinkMetadata.BuildercontentOwnerTeamInfo - The team information of the content's
owner. This field will only be present if the content's owner is
a team member and the content's owner team is different from the
link's owner team.public FileLinkMetadata build()
FileLinkMetadata configured with this
builder's valuesbuild in class SharedLinkMetadata.BuilderFileLinkMetadata