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 SummaryFields Modifier and Type Field Description protected booleannoAccessprotected java.lang.StringparentSharedFolderIdprotected booleanreadOnlyprotected java.lang.StringsharedFolderIdprotected booleantraverseOnly
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedBuilder(boolean readOnly)
 - 
Method SummaryAll 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- 
withParentSharedFolderIdpublic 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.
 
 - 
withSharedFolderIdpublic 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.
 
 - 
withTraverseOnlypublic 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 to- falsewhen set to- null.
- Returns:
- this builder
 
 - 
withNoAccesspublic 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 to- falsewhen set to- null.
- Returns:
- this builder
 
 - 
buildpublic FolderSharingInfo build() Builds an instance ofFolderSharingInfoconfigured with this builder's values- Returns:
- new instance of FolderSharingInfo
 
 
- 
 
-