Package com.dropbox.core.v2.files
Class FolderSharingInfo.Builder
- java.lang.Object
-
- com.dropbox.core.v2.files.FolderSharingInfo.Builder
-
- Enclosing class:
- FolderSharingInfo
public static class FolderSharingInfo.Builder extends java.lang.ObjectBuilder forFolderSharingInfo.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleannoAccessprotected java.lang.StringparentSharedFolderIdprotected booleanreadOnlyprotected java.lang.StringsharedFolderIdprotected booleantraverseOnly
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder(boolean readOnly)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FolderSharingInfobuild()Builds an instance ofFolderSharingInfoconfigured with this builder's valuesFolderSharingInfo.BuilderwithNoAccess(java.lang.Boolean noAccess)Set value for optional field.FolderSharingInfo.BuilderwithParentSharedFolderId(java.lang.String parentSharedFolderId)Set value for optional field.FolderSharingInfo.BuilderwithSharedFolderId(java.lang.String sharedFolderId)Set value for optional field.FolderSharingInfo.BuilderwithTraverseOnly(java.lang.Boolean traverseOnly)Set value for optional field.
-
-
-
Method Detail
-
withParentSharedFolderId
public FolderSharingInfo.Builder withParentSharedFolderId(java.lang.String parentSharedFolderId)
Set value for optional field.- Parameters:
parentSharedFolderId- Set if the folder is contained by a shared folder. Must match pattern "[-_0-9a-zA-Z:]+".- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
withSharedFolderId
public FolderSharingInfo.Builder withSharedFolderId(java.lang.String sharedFolderId)
Set value for optional field.- Parameters:
sharedFolderId- If this folder is a shared folder mount point, the ID of the shared folder mounted at this location. Must match pattern "[-_0-9a-zA-Z:]+".- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
withTraverseOnly
public FolderSharingInfo.Builder withTraverseOnly(java.lang.Boolean traverseOnly)
Set value for optional field.If left unset or set to
null, defaults tofalse.- Parameters:
traverseOnly- Specifies that the folder can only be traversed and the user can only see a limited subset of the contents of this folder because they don't have read access to this folder. They do, however, have access to some sub folder. Defaults tofalsewhen set tonull.- Returns:
- this builder
-
withNoAccess
public FolderSharingInfo.Builder withNoAccess(java.lang.Boolean noAccess)
Set value for optional field.If left unset or set to
null, defaults tofalse.- Parameters:
noAccess- Specifies that the folder cannot be accessed by the user. Defaults tofalsewhen set tonull.- Returns:
- this builder
-
build
public FolderSharingInfo build()
Builds an instance ofFolderSharingInfoconfigured with this builder's values- Returns:
- new instance of
FolderSharingInfo
-
-