public static class SharedLinkMetadata.Builder
extends java.lang.Object
SharedLinkMetadata
.Modifier and Type | Field and Description |
---|---|
protected Team |
contentOwnerTeamInfo |
protected java.util.Date |
expires |
protected java.lang.String |
id |
protected LinkPermissions |
linkPermissions |
protected java.lang.String |
name |
protected java.lang.String |
pathLower |
protected TeamMemberInfo |
teamMemberInfo |
protected java.lang.String |
url |
Modifier | Constructor and Description |
---|---|
protected |
Builder(java.lang.String url,
java.lang.String name,
LinkPermissions linkPermissions) |
Modifier and Type | Method and Description |
---|---|
SharedLinkMetadata |
build()
Builds an instance of
SharedLinkMetadata configured with this
builder's values |
SharedLinkMetadata.Builder |
withContentOwnerTeamInfo(Team contentOwnerTeamInfo)
Set value for optional field.
|
SharedLinkMetadata.Builder |
withExpires(java.util.Date expires)
Set value for optional field.
|
SharedLinkMetadata.Builder |
withId(java.lang.String id)
Set value for optional field.
|
SharedLinkMetadata.Builder |
withPathLower(java.lang.String pathLower)
Set value for optional field.
|
SharedLinkMetadata.Builder |
withTeamMemberInfo(TeamMemberInfo teamMemberInfo)
Set value for optional field.
|
protected final java.lang.String url
protected final java.lang.String name
protected final LinkPermissions linkPermissions
protected java.lang.String id
protected java.util.Date expires
protected java.lang.String pathLower
protected TeamMemberInfo teamMemberInfo
protected Team contentOwnerTeamInfo
protected Builder(java.lang.String url, java.lang.String name, LinkPermissions linkPermissions)
public SharedLinkMetadata.Builder withId(java.lang.String id)
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 SharedLinkMetadata.Builder withExpires(java.util.Date expires)
expires
- Expiration time, if set. By default the link won't
expire.public SharedLinkMetadata.Builder withPathLower(java.lang.String pathLower)
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 SharedLinkMetadata.Builder withTeamMemberInfo(TeamMemberInfo teamMemberInfo)
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 SharedLinkMetadata.Builder withContentOwnerTeamInfo(Team contentOwnerTeamInfo)
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 SharedLinkMetadata build()
SharedLinkMetadata
configured with this
builder's valuesSharedLinkMetadata