public static class FolderSharingInfo.Builder extends Object
FolderSharingInfo
.Modifier and Type | Field and Description |
---|---|
protected boolean |
noAccess |
protected String |
parentSharedFolderId |
protected boolean |
readOnly |
protected 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(Boolean noAccess)
Set value for optional field.
|
FolderSharingInfo.Builder |
withParentSharedFolderId(String parentSharedFolderId)
Set value for optional field.
|
FolderSharingInfo.Builder |
withSharedFolderId(String sharedFolderId)
Set value for optional field.
|
FolderSharingInfo.Builder |
withTraverseOnly(Boolean traverseOnly)
Set value for optional field.
|
protected final boolean readOnly
protected String parentSharedFolderId
protected String sharedFolderId
protected boolean traverseOnly
protected boolean noAccess
public FolderSharingInfo.Builder withParentSharedFolderId(String parentSharedFolderId)
parentSharedFolderId
- Set if the folder is contained by a
shared folder. Must match pattern "[-_0-9a-zA-Z:]+
".IllegalArgumentException
- If any argument does not meet its
preconditions.public FolderSharingInfo.Builder withSharedFolderId(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:]+
".IllegalArgumentException
- If any argument does not meet its
preconditions.public FolderSharingInfo.Builder withTraverseOnly(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(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