public static class SharedFolderMetadataBase.Builder extends Object
SharedFolderMetadataBase
.Modifier and Type | Field and Description |
---|---|
protected AccessLevel |
accessType |
protected boolean |
isTeamFolder |
protected Team |
ownerTeam |
protected String |
parentSharedFolderId |
protected FolderPolicy |
policy |
Modifier | Constructor and Description |
---|---|
protected |
Builder(AccessLevel accessType,
boolean isTeamFolder,
FolderPolicy policy) |
Modifier and Type | Method and Description |
---|---|
SharedFolderMetadataBase |
build()
Builds an instance of
SharedFolderMetadataBase configured
with this builder's values |
SharedFolderMetadataBase.Builder |
withOwnerTeam(Team ownerTeam)
Set value for optional field.
|
SharedFolderMetadataBase.Builder |
withParentSharedFolderId(String parentSharedFolderId)
Set value for optional field.
|
protected final AccessLevel accessType
protected final boolean isTeamFolder
protected final FolderPolicy policy
protected Team ownerTeam
protected String parentSharedFolderId
protected Builder(AccessLevel accessType, boolean isTeamFolder, FolderPolicy policy)
public SharedFolderMetadataBase.Builder withOwnerTeam(Team ownerTeam)
ownerTeam
- The team that owns the folder. This field is not
present if the folder is not owned by a team.public SharedFolderMetadataBase.Builder withParentSharedFolderId(String parentSharedFolderId)
parentSharedFolderId
- The ID of the parent shared folder. This
field is present only if the folder is contained within another
shared folder. Must match pattern "[-_0-9a-zA-Z:]+
".IllegalArgumentException
- If any argument does not meet its
preconditions.public SharedFolderMetadataBase build()
SharedFolderMetadataBase
configured
with this builder's valuesSharedFolderMetadataBase