public class SharedFolderMetadataBase
extends java.lang.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 |
isInsideTeamFolder |
protected boolean |
isTeamFolder |
protected java.util.List<java.lang.String> |
ownerDisplayNames |
protected Team |
ownerTeam |
protected java.lang.String |
parentFolderName |
protected java.lang.String |
parentSharedFolderId |
protected java.lang.String |
pathLower |
Constructor and Description |
---|
SharedFolderMetadataBase(AccessLevel accessType,
boolean isInsideTeamFolder,
boolean isTeamFolder)
Properties of the shared folder.
|
SharedFolderMetadataBase(AccessLevel accessType,
boolean isInsideTeamFolder,
boolean isTeamFolder,
java.util.List<java.lang.String> ownerDisplayNames,
Team ownerTeam,
java.lang.String parentSharedFolderId,
java.lang.String pathLower,
java.lang.String parentFolderName)
Properties of the shared folder.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
AccessLevel |
getAccessType()
The current user's access level for this shared folder.
|
boolean |
getIsInsideTeamFolder()
Whether this folder is inside of a team folder.
|
boolean |
getIsTeamFolder()
Whether this folder is a team folder.
|
java.util.List<java.lang.String> |
getOwnerDisplayNames()
The display names of the users that own the folder.
|
Team |
getOwnerTeam()
The team that owns the folder.
|
java.lang.String |
getParentFolderName()
Display name for the parent folder.
|
java.lang.String |
getParentSharedFolderId()
The ID of the parent shared folder.
|
java.lang.String |
getPathLower()
The lower-cased full path of this shared folder.
|
int |
hashCode() |
static SharedFolderMetadataBase.Builder |
newBuilder(AccessLevel accessType,
boolean isInsideTeamFolder,
boolean isTeamFolder)
Returns a new builder for creating an instance of this class.
|
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final AccessLevel accessType
protected final boolean isInsideTeamFolder
protected final boolean isTeamFolder
protected final java.util.List<java.lang.String> ownerDisplayNames
protected final Team ownerTeam
protected final java.lang.String parentSharedFolderId
protected final java.lang.String pathLower
protected final java.lang.String parentFolderName
public SharedFolderMetadataBase(AccessLevel accessType, boolean isInsideTeamFolder, boolean isTeamFolder, java.util.List<java.lang.String> ownerDisplayNames, Team ownerTeam, java.lang.String parentSharedFolderId, java.lang.String pathLower, java.lang.String parentFolderName)
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
.isInsideTeamFolder
- Whether this folder is inside of a team
folder.isTeamFolder
- Whether this folder is a team folder.ownerDisplayNames
- The display names of the users that own the
folder. If the folder is part of a team folder, the display names of
the team admins are also included. Absent if the owner display names
cannot be fetched. Must not contain a null
item.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:]+
".pathLower
- The lower-cased full path of this shared folder. Absent
for unmounted folders.parentFolderName
- Display name for the parent folder.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public SharedFolderMetadataBase(AccessLevel accessType, boolean isInsideTeamFolder, boolean isTeamFolder)
The default values for unset fields will be used.
accessType
- The current user's access level for this shared
folder. Must not be null
.isInsideTeamFolder
- Whether this folder is inside of a team
folder.isTeamFolder
- Whether this folder is a team folder.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public AccessLevel getAccessType()
null
.public boolean getIsInsideTeamFolder()
public boolean getIsTeamFolder()
public java.util.List<java.lang.String> getOwnerDisplayNames()
null
if not present.public Team getOwnerTeam()
null
if not present.public java.lang.String getParentSharedFolderId()
null
if not present.public java.lang.String getPathLower()
null
if not present.public java.lang.String getParentFolderName()
null
if not present.public static SharedFolderMetadataBase.Builder newBuilder(AccessLevel accessType, boolean isInsideTeamFolder, boolean isTeamFolder)
accessType
- The current user's access level for this shared
folder. Must not be null
.isInsideTeamFolder
- Whether this folder is inside of a team
folder.isTeamFolder
- Whether this folder is a team folder.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.