public static class FolderSharingInfo.Builder
extends java.lang.Object
FolderSharingInfo
.Modifier and Type | Field and Description |
---|---|
protected boolean |
noAccess |
protected java.lang.String |
parentSharedFolderId |
protected boolean |
readOnly |
protected java.lang.String |
sharedFolderId |
protected boolean |
traverseOnly |
Modifier | Constructor and Description |
---|---|
protected |
Builder(boolean readOnly) |
Modifier and Type | Method and Description |
---|---|
FolderSharingInfo |
build()
Builds an instance of
FolderSharingInfo configured with this
builder's values |
FolderSharingInfo.Builder |
withNoAccess(java.lang.Boolean noAccess)
Set value for optional field.
|
FolderSharingInfo.Builder |
withParentSharedFolderId(java.lang.String parentSharedFolderId)
Set value for optional field.
|
FolderSharingInfo.Builder |
withSharedFolderId(java.lang.String sharedFolderId)
Set value for optional field.
|
FolderSharingInfo.Builder |
withTraverseOnly(java.lang.Boolean traverseOnly)
Set value for optional field.
|
protected final boolean readOnly
protected java.lang.String parentSharedFolderId
protected java.lang.String sharedFolderId
protected boolean traverseOnly
protected boolean noAccess
public FolderSharingInfo.Builder withParentSharedFolderId(java.lang.String parentSharedFolderId)
parentSharedFolderId
- Set if the folder is contained by a
shared folder. Must match pattern "[-_0-9a-zA-Z:]+
".java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public FolderSharingInfo.Builder withSharedFolderId(java.lang.String sharedFolderId)
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:]+
".java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public FolderSharingInfo.Builder withTraverseOnly(java.lang.Boolean traverseOnly)
If left unset or set to null
, defaults to false
.
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
false
when set to null
.public FolderSharingInfo.Builder withNoAccess(java.lang.Boolean noAccess)
If left unset or set to null
, defaults to false
.
noAccess
- Specifies that the folder cannot be accessed by the
user. Defaults to false
when set to null
.public FolderSharingInfo build()
FolderSharingInfo
configured with this
builder's valuesFolderSharingInfo