public static class SharedFolderMetadataBase.Builder
extends java.lang.Object
SharedFolderMetadataBase
.Modifier and Type | Field and Description |
---|---|
protected AccessLevel |
accessType |
protected boolean |
isInsideTeamFolder |
protected boolean |
isTeamFolder |
protected java.util.List<java.lang.String> |
ownerDisplayNames |
protected Team |
ownerTeam |
protected java.lang.String |
parentFolderName |
protected java.lang.String |
parentSharedFolderId |
protected java.lang.String |
pathLower |
Modifier | Constructor and Description |
---|---|
protected |
Builder(AccessLevel accessType,
boolean isInsideTeamFolder,
boolean isTeamFolder) |
Modifier and Type | Method and Description |
---|---|
SharedFolderMetadataBase |
build()
Builds an instance of
SharedFolderMetadataBase configured
with this builder's values |
SharedFolderMetadataBase.Builder |
withOwnerDisplayNames(java.util.List<java.lang.String> ownerDisplayNames)
Set value for optional field.
|
SharedFolderMetadataBase.Builder |
withOwnerTeam(Team ownerTeam)
Set value for optional field.
|
SharedFolderMetadataBase.Builder |
withParentFolderName(java.lang.String parentFolderName)
Set value for optional field.
|
SharedFolderMetadataBase.Builder |
withParentSharedFolderId(java.lang.String parentSharedFolderId)
Set value for optional field.
|
SharedFolderMetadataBase.Builder |
withPathLower(java.lang.String pathLower)
Set value for optional field.
|
protected final AccessLevel accessType
protected final boolean isInsideTeamFolder
protected final boolean isTeamFolder
protected java.util.List<java.lang.String> ownerDisplayNames
protected Team ownerTeam
protected java.lang.String parentSharedFolderId
protected java.lang.String pathLower
protected java.lang.String parentFolderName
protected Builder(AccessLevel accessType, boolean isInsideTeamFolder, boolean isTeamFolder)
public SharedFolderMetadataBase.Builder withOwnerDisplayNames(java.util.List<java.lang.String> ownerDisplayNames)
ownerDisplayNames
- The display names of the users that own the
folder. If the folder is part of a team folder, the display names
of the team admins are also included. Absent if the owner display
names cannot be fetched. Must not contain a null
item.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public SharedFolderMetadataBase.Builder withOwnerTeam(Team ownerTeam)
ownerTeam
- The team that owns the folder. This field is not
present if the folder is not owned by a team.public SharedFolderMetadataBase.Builder withParentSharedFolderId(java.lang.String parentSharedFolderId)
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:]+
".java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public SharedFolderMetadataBase.Builder withPathLower(java.lang.String pathLower)
pathLower
- The lower-cased full path of this shared folder.
Absent for unmounted folders.public SharedFolderMetadataBase.Builder withParentFolderName(java.lang.String parentFolderName)
parentFolderName
- Display name for the parent folder.public SharedFolderMetadataBase build()
SharedFolderMetadataBase
configured
with this builder's valuesSharedFolderMetadataBase