Package com.dropbox.core.v2.sharing
Class SharedLinkMetadata.Builder
java.lang.Object
com.dropbox.core.v2.sharing.SharedLinkMetadata.Builder
- Direct Known Subclasses:
FileLinkMetadata.Builder,FolderLinkMetadata.Builder
- Enclosing class:
SharedLinkMetadata
Builder for
SharedLinkMetadata.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Teamprotected Dateprotected Stringprotected final LinkPermissionsprotected final Stringprotected Stringprotected TeamMemberInfoprotected final String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBuilder(String url, String name, LinkPermissions linkPermissions) -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofSharedLinkMetadataconfigured with this builder's valueswithContentOwnerTeamInfo(Team contentOwnerTeamInfo) Set value for optional field.withExpires(Date expires) Set value for optional field.Set value for optional field.withPathLower(String pathLower) Set value for optional field.withTeamMemberInfo(TeamMemberInfo teamMemberInfo) Set value for optional field.
-
Field Details
-
url
-
name
-
linkPermissions
-
id
-
expires
-
pathLower
-
teamMemberInfo
-
contentOwnerTeamInfo
-
-
Constructor Details
-
Builder
-
-
Method Details
-
withId
Set value for optional field.- Parameters:
id- A unique identifier for the linked file. Must have length of at least 1.- Returns:
- this builder
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
withExpires
Set value for optional field.- Parameters:
expires- Expiration time, if set. By default the link won't expire.- Returns:
- this builder
-
withPathLower
Set value for optional field.- 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 and the user is the owner of the link.- Returns:
- this builder
-
withTeamMemberInfo
Set value for optional field.- 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
Set value for optional field.- 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
Builds an instance ofSharedLinkMetadataconfigured with this builder's values- Returns:
- new instance of
SharedLinkMetadata
-