public static class SharedFolderMetadata.Builder extends SharedFolderMetadataBase.Builder
SharedFolderMetadata
.Modifier and Type | Field and Description |
---|---|
protected String |
name |
protected String |
pathLower |
protected List<FolderPermission> |
permissions |
protected String |
previewUrl |
protected String |
sharedFolderId |
protected Date |
timeInvited |
accessType, isTeamFolder, ownerTeam, parentSharedFolderId, policy
Modifier | Constructor and Description |
---|---|
protected |
Builder(AccessLevel accessType,
boolean isTeamFolder,
FolderPolicy policy,
String name,
String sharedFolderId,
Date timeInvited,
String previewUrl) |
Modifier and Type | Method and Description |
---|---|
SharedFolderMetadata |
build()
Builds an instance of
SharedFolderMetadata configured with
this builder's values |
SharedFolderMetadata.Builder |
withOwnerTeam(Team ownerTeam)
Set value for optional field.
|
SharedFolderMetadata.Builder |
withParentSharedFolderId(String parentSharedFolderId)
Set value for optional field.
|
SharedFolderMetadata.Builder |
withPathLower(String pathLower)
Set value for optional field.
|
SharedFolderMetadata.Builder |
withPermissions(List<FolderPermission> permissions)
Set value for optional field.
|
protected final String name
protected final String sharedFolderId
protected final Date timeInvited
protected final String previewUrl
protected String pathLower
protected List<FolderPermission> permissions
protected Builder(AccessLevel accessType, boolean isTeamFolder, FolderPolicy policy, String name, String sharedFolderId, Date timeInvited, String previewUrl)
public SharedFolderMetadata.Builder withPathLower(String pathLower)
pathLower
- The lower-cased full path of this shared folder.
Absent for unmounted folders.public SharedFolderMetadata.Builder withPermissions(List<FolderPermission> permissions)
permissions
- Actions the current user may perform on the
folder and its contents. The set of permissions corresponds to
the FolderActions in the request. Must not contain a null
item.IllegalArgumentException
- If any argument does not meet its
preconditions.public SharedFolderMetadata.Builder withOwnerTeam(Team ownerTeam)
withOwnerTeam
in class SharedFolderMetadataBase.Builder
ownerTeam
- The team that owns the folder. This field is not
present if the folder is not owned by a team.public SharedFolderMetadata.Builder withParentSharedFolderId(String parentSharedFolderId)
withParentSharedFolderId
in class SharedFolderMetadataBase.Builder
parentSharedFolderId
- The ID of the parent shared folder. This
field is present only if the folder is contained within another
shared folder. Must match pattern "[-_0-9a-zA-Z:]+
".IllegalArgumentException
- If any argument does not meet its
preconditions.public SharedFolderMetadata build()
SharedFolderMetadata
configured with
this builder's valuesbuild
in class SharedFolderMetadataBase.Builder
SharedFolderMetadata