public class SharedFolderMetadataBase extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SharedFolderMetadataBase.Builder
Builder for
SharedFolderMetadataBase . |
Modifier and Type | Field and Description |
---|---|
protected AccessLevel |
accessType |
protected boolean |
isTeamFolder |
protected Team |
ownerTeam |
protected String |
parentSharedFolderId |
protected FolderPolicy |
policy |
Constructor and Description |
---|
SharedFolderMetadataBase(AccessLevel accessType,
boolean isTeamFolder,
FolderPolicy policy)
Properties of the shared folder.
|
SharedFolderMetadataBase(AccessLevel accessType,
boolean isTeamFolder,
FolderPolicy policy,
Team ownerTeam,
String parentSharedFolderId)
Properties of the shared folder.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
AccessLevel |
getAccessType()
The current user's access level for this shared folder.
|
boolean |
getIsTeamFolder()
Whether this folder is a team folder.
|
Team |
getOwnerTeam()
The team that owns the folder.
|
String |
getParentSharedFolderId()
The ID of the parent shared folder.
|
FolderPolicy |
getPolicy()
Policies governing this shared folder.
|
int |
hashCode() |
static SharedFolderMetadataBase.Builder |
newBuilder(AccessLevel accessType,
boolean isTeamFolder,
FolderPolicy policy)
Returns a new builder for creating an instance of this class.
|
String |
toString() |
String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final AccessLevel accessType
protected final boolean isTeamFolder
protected final FolderPolicy policy
protected final Team ownerTeam
protected final String parentSharedFolderId
public SharedFolderMetadataBase(AccessLevel accessType, boolean isTeamFolder, FolderPolicy policy, Team ownerTeam, String parentSharedFolderId)
Use newBuilder
to create instances of this class without
specifying values for all optional fields.
accessType
- The current user's access level for this shared
folder. Must not be null
.isTeamFolder
- Whether this folder is a team folder.policy
- Policies governing this shared folder. Must not be null
.ownerTeam
- The team that owns the folder. This field is not
present if the folder is not owned by a team.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(AccessLevel accessType, boolean isTeamFolder, FolderPolicy policy)
The default values for unset fields will be used.
accessType
- The current user's access level for this shared
folder. Must not be null
.isTeamFolder
- Whether this folder is a team folder.policy
- Policies governing this shared folder. Must not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.public AccessLevel getAccessType()
null
.public boolean getIsTeamFolder()
public FolderPolicy getPolicy()
null
.public Team getOwnerTeam()
null
if not present.public String getParentSharedFolderId()
null
if not present.public static SharedFolderMetadataBase.Builder newBuilder(AccessLevel accessType, boolean isTeamFolder, FolderPolicy policy)
accessType
- The current user's access level for this shared
folder. Must not be null
.isTeamFolder
- Whether this folder is a team folder.policy
- Policies governing this shared folder. Must not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.public String toStringMultiline()
The returned String may contain newlines.