Package com.dropbox.core.v2.sharing
Class FileLinkMetadata.Builder
java.lang.Object
com.dropbox.core.v2.sharing.SharedLinkMetadata.Builder
com.dropbox.core.v2.sharing.FileLinkMetadata.Builder
- Enclosing class:
FileLinkMetadata
Builder for
FileLinkMetadata.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Dateprotected final Stringprotected final Dateprotected final longFields inherited from class com.dropbox.core.v2.sharing.SharedLinkMetadata.Builder
contentOwnerTeamInfo, expires, id, linkPermissions, name, pathLower, teamMemberInfo, url -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofFileLinkMetadataconfigured 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
-
clientModified
-
serverModified
-
rev
-
size
protected final long size
-
-
Constructor Details
-
Builder
-
-
Method Details
-
withId
Set value for optional field.- Overrides:
withIdin classSharedLinkMetadata.Builder- 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.- Overrides:
withExpiresin classSharedLinkMetadata.Builder- Parameters:
expires- Expiration time, if set. By default the link won't expire.- Returns:
- this builder
-
withPathLower
Set value for optional field.- Overrides:
withPathLowerin 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 and the user is the owner of the link.- Returns:
- this builder
-
withTeamMemberInfo
Set value for optional field.- Overrides:
withTeamMemberInfoin 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
Set value for optional field.- Overrides:
withContentOwnerTeamInfoin 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
Builds an instance ofFileLinkMetadataconfigured with this builder's values- Overrides:
buildin classSharedLinkMetadata.Builder- Returns:
- new instance of
FileLinkMetadata
-