Package com.dropbox.core.v2.sharing
Class SharedFolderMetadataBase.Builder
- java.lang.Object
-
- com.dropbox.core.v2.sharing.SharedFolderMetadataBase.Builder
-
- Direct Known Subclasses:
SharedFolderMetadata.Builder
- Enclosing class:
- SharedFolderMetadataBase
public static class SharedFolderMetadataBase.Builder extends java.lang.Object
Builder forSharedFolderMetadataBase
.
-
-
Field Summary
Fields Modifier and Type Field 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
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder(AccessLevel accessType, boolean isInsideTeamFolder, boolean isTeamFolder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SharedFolderMetadataBase
build()
Builds an instance ofSharedFolderMetadataBase
configured with this builder's valuesSharedFolderMetadataBase.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.
-
-
-
Field Detail
-
accessType
protected final AccessLevel accessType
-
isInsideTeamFolder
protected final boolean isInsideTeamFolder
-
isTeamFolder
protected final boolean isTeamFolder
-
ownerDisplayNames
protected java.util.List<java.lang.String> ownerDisplayNames
-
ownerTeam
protected Team ownerTeam
-
parentSharedFolderId
protected java.lang.String parentSharedFolderId
-
pathLower
protected java.lang.String pathLower
-
parentFolderName
protected java.lang.String parentFolderName
-
-
Constructor Detail
-
Builder
protected Builder(AccessLevel accessType, boolean isInsideTeamFolder, boolean isTeamFolder)
-
-
Method Detail
-
withOwnerDisplayNames
public SharedFolderMetadataBase.Builder withOwnerDisplayNames(java.util.List<java.lang.String> ownerDisplayNames)
Set value for optional field.- Parameters:
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 anull
item.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
withOwnerTeam
public SharedFolderMetadataBase.Builder withOwnerTeam(Team ownerTeam)
Set value for optional field.- Parameters:
ownerTeam
- The team that owns the folder. This field is not present if the folder is not owned by a team.- Returns:
- this builder
-
withParentSharedFolderId
public SharedFolderMetadataBase.Builder withParentSharedFolderId(java.lang.String parentSharedFolderId)
Set value for optional field.- Parameters:
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:]+
".- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
withPathLower
public SharedFolderMetadataBase.Builder withPathLower(java.lang.String pathLower)
Set value for optional field.- Parameters:
pathLower
- The lower-cased full path of this shared folder. Absent for unmounted folders.- Returns:
- this builder
-
withParentFolderName
public SharedFolderMetadataBase.Builder withParentFolderName(java.lang.String parentFolderName)
Set value for optional field.- Parameters:
parentFolderName
- Display name for the parent folder.- Returns:
- this builder
-
build
public SharedFolderMetadataBase build()
Builds an instance ofSharedFolderMetadataBase
configured with this builder's values- Returns:
- new instance of
SharedFolderMetadataBase
-
-