public static class SharedLinkMetadata.Builder extends Object
SharedLinkMetadata
.Modifier and Type | Field and Description |
---|---|
protected Team |
contentOwnerTeamInfo |
protected Date |
expires |
protected String |
id |
protected LinkPermissions |
linkPermissions |
protected String |
name |
protected String |
pathLower |
protected TeamMemberInfo |
teamMemberInfo |
protected String |
url |
Modifier | Constructor and Description |
---|---|
protected |
Builder(String url,
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(Date expires)
Set value for optional field.
|
SharedLinkMetadata.Builder |
withId(String id)
Set value for optional field.
|
SharedLinkMetadata.Builder |
withPathLower(String pathLower)
Set value for optional field.
|
SharedLinkMetadata.Builder |
withTeamMemberInfo(TeamMemberInfo teamMemberInfo)
Set value for optional field.
|
protected final String url
protected final String name
protected final LinkPermissions linkPermissions
protected String id
protected Date expires
protected String pathLower
protected TeamMemberInfo teamMemberInfo
protected Team contentOwnerTeamInfo
protected Builder(String url, String name, LinkPermissions linkPermissions)
public SharedLinkMetadata.Builder withId(String id)
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 SharedLinkMetadata.Builder withExpires(Date expires)
expires
- Expiration time, if set. By default the link won't
expire.public SharedLinkMetadata.Builder withPathLower(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