Package com.dropbox.core.v2.sharing
Class FolderLinkMetadata.Builder
- java.lang.Object
-
- com.dropbox.core.v2.sharing.SharedLinkMetadata.Builder
-
- com.dropbox.core.v2.sharing.FolderLinkMetadata.Builder
-
- Enclosing class:
- FolderLinkMetadata
public static class FolderLinkMetadata.Builder extends SharedLinkMetadata.Builder
Builder forFolderLinkMetadata
.
-
-
Field Summary
-
Fields inherited from class com.dropbox.core.v2.sharing.SharedLinkMetadata.Builder
contentOwnerTeamInfo, expires, id, linkPermissions, name, pathLower, teamMemberInfo, url
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder(java.lang.String url, java.lang.String name, LinkPermissions linkPermissions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FolderLinkMetadata
build()
Builds an instance ofFolderLinkMetadata
configured with this builder's valuesFolderLinkMetadata.Builder
withContentOwnerTeamInfo(Team contentOwnerTeamInfo)
Set value for optional field.FolderLinkMetadata.Builder
withExpires(java.util.Date expires)
Set value for optional field.FolderLinkMetadata.Builder
withId(java.lang.String id)
Set value for optional field.FolderLinkMetadata.Builder
withPathLower(java.lang.String pathLower)
Set value for optional field.FolderLinkMetadata.Builder
withTeamMemberInfo(TeamMemberInfo teamMemberInfo)
Set value for optional field.
-
-
-
Constructor Detail
-
Builder
protected Builder(java.lang.String url, java.lang.String name, LinkPermissions linkPermissions)
-
-
Method Detail
-
withId
public FolderLinkMetadata.Builder withId(java.lang.String id)
Set value for optional field.- Overrides:
withId
in classSharedLinkMetadata.Builder
- Parameters:
id
- A unique identifier for the linked file. Must have length of at least 1.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
withExpires
public FolderLinkMetadata.Builder withExpires(java.util.Date expires)
Set value for optional field.- Overrides:
withExpires
in classSharedLinkMetadata.Builder
- Parameters:
expires
- Expiration time, if set. By default the link won't expire.- Returns:
- this builder
-
withPathLower
public FolderLinkMetadata.Builder withPathLower(java.lang.String pathLower)
Set value for optional field.- Overrides:
withPathLower
in classSharedLinkMetadata.Builder
- Parameters:
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.- Returns:
- this builder
-
withTeamMemberInfo
public FolderLinkMetadata.Builder withTeamMemberInfo(TeamMemberInfo teamMemberInfo)
Set value for optional field.- Overrides:
withTeamMemberInfo
in classSharedLinkMetadata.Builder
- Parameters:
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.- Returns:
- this builder
-
withContentOwnerTeamInfo
public FolderLinkMetadata.Builder withContentOwnerTeamInfo(Team contentOwnerTeamInfo)
Set value for optional field.- Overrides:
withContentOwnerTeamInfo
in classSharedLinkMetadata.Builder
- Parameters:
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.- Returns:
- this builder
-
build
public FolderLinkMetadata build()
Builds an instance ofFolderLinkMetadata
configured with this builder's values- Overrides:
build
in classSharedLinkMetadata.Builder
- Returns:
- new instance of
FolderLinkMetadata
-
-