public static class FolderSharingInfo.Builder extends Object
FolderSharingInfo
.Modifier and Type | Field and Description |
---|---|
protected String |
parentSharedFolderId |
protected boolean |
readOnly |
protected String |
sharedFolderId |
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 |
withParentSharedFolderId(String parentSharedFolderId)
Set value for optional field.
|
FolderSharingInfo.Builder |
withSharedFolderId(String sharedFolderId)
Set value for optional field.
|
protected final boolean readOnly
protected String parentSharedFolderId
protected String sharedFolderId
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 build()
FolderSharingInfo
configured with this
builder's valuesFolderSharingInfo