public static class FileLinkMetadata.Builder extends SharedLinkMetadata.Builder
FileLinkMetadata
.Modifier and Type | Field and Description |
---|---|
protected java.util.Date |
clientModified |
protected java.lang.String |
rev |
protected java.util.Date |
serverModified |
protected long |
size |
contentOwnerTeamInfo, expires, id, linkPermissions, name, pathLower, teamMemberInfo, url
Modifier | Constructor and Description |
---|---|
protected |
Builder(java.lang.String url,
java.lang.String name,
LinkPermissions linkPermissions,
java.util.Date clientModified,
java.util.Date serverModified,
java.lang.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(java.util.Date expires)
Set value for optional field.
|
FileLinkMetadata.Builder |
withId(java.lang.String id)
Set value for optional field.
|
FileLinkMetadata.Builder |
withPathLower(java.lang.String pathLower)
Set value for optional field.
|
FileLinkMetadata.Builder |
withTeamMemberInfo(TeamMemberInfo teamMemberInfo)
Set value for optional field.
|
protected final java.util.Date clientModified
protected final java.util.Date serverModified
protected final java.lang.String rev
protected final long size
protected Builder(java.lang.String url, java.lang.String name, LinkPermissions linkPermissions, java.util.Date clientModified, java.util.Date serverModified, java.lang.String rev, long size)
public FileLinkMetadata.Builder withId(java.lang.String id)
withId
in class SharedLinkMetadata.Builder
id
- A unique identifier for the linked file. Must have length
of at least 1.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public FileLinkMetadata.Builder withExpires(java.util.Date expires)
withExpires
in class SharedLinkMetadata.Builder
expires
- Expiration time, if set. By default the link won't
expire.public FileLinkMetadata.Builder withPathLower(java.lang.String pathLower)
withPathLower
in class SharedLinkMetadata.Builder
pathLower
- 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.Builder
teamMemberInfo
- 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.Builder
contentOwnerTeamInfo
- 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.Builder
FileLinkMetadata