public static class FolderLinkMetadata.Builder extends SharedLinkMetadata.Builder
FolderLinkMetadata
.contentOwnerTeamInfo, expires, id, linkPermissions, name, pathLower, teamMemberInfo, url
Modifier | Constructor and Description |
---|---|
protected |
Builder(String url,
String name,
LinkPermissions linkPermissions) |
Modifier and Type | Method and Description |
---|---|
FolderLinkMetadata |
build()
Builds an instance of
FolderLinkMetadata configured with this
builder's values |
FolderLinkMetadata.Builder |
withContentOwnerTeamInfo(Team contentOwnerTeamInfo)
Set value for optional field.
|
FolderLinkMetadata.Builder |
withExpires(Date expires)
Set value for optional field.
|
FolderLinkMetadata.Builder |
withId(String id)
Set value for optional field.
|
FolderLinkMetadata.Builder |
withPathLower(String pathLower)
Set value for optional field.
|
FolderLinkMetadata.Builder |
withTeamMemberInfo(TeamMemberInfo teamMemberInfo)
Set value for optional field.
|
protected Builder(String url, String name, LinkPermissions linkPermissions)
public FolderLinkMetadata.Builder withId(String id)
withId
in class SharedLinkMetadata.Builder
id
- A unique identifier for the linked file. Must have length
of at least 1.IllegalArgumentException
- If any argument does not meet its
preconditions.public FolderLinkMetadata.Builder withExpires(Date expires)
withExpires
in class SharedLinkMetadata.Builder
expires
- Expiration time, if set. By default the link won't
expire.public FolderLinkMetadata.Builder withPathLower(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 FolderLinkMetadata.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 FolderLinkMetadata.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 FolderLinkMetadata build()
FolderLinkMetadata
configured with this
builder's valuesbuild
in class SharedLinkMetadata.Builder
FolderLinkMetadata