public class MemberAccessLevelResult
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
MemberAccessLevelResult.Builder
Builder for
MemberAccessLevelResult . |
Modifier and Type | Field and Description |
---|---|
protected java.util.List<ParentFolderAccessInfo> |
accessDetails |
protected AccessLevel |
accessLevel |
protected java.lang.String |
warning |
Constructor and Description |
---|
MemberAccessLevelResult()
Contains information about a member's access level to content after an
operation.
|
MemberAccessLevelResult(AccessLevel accessLevel,
java.lang.String warning,
java.util.List<ParentFolderAccessInfo> accessDetails)
Contains information about a member's access level to content after an
operation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<ParentFolderAccessInfo> |
getAccessDetails()
The parent folders that a member has access to.
|
AccessLevel |
getAccessLevel()
The member still has this level of access to the content through a parent
folder.
|
java.lang.String |
getWarning()
A localized string with additional information about why the user has
this access level to the content.
|
int |
hashCode() |
static MemberAccessLevelResult.Builder |
newBuilder()
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 accessLevel
protected final java.lang.String warning
protected final java.util.List<ParentFolderAccessInfo> accessDetails
public MemberAccessLevelResult(AccessLevel accessLevel, java.lang.String warning, java.util.List<ParentFolderAccessInfo> accessDetails)
Use newBuilder
to create instances of this class without
specifying values for all optional fields.
accessLevel
- The member still has this level of access to the
content through a parent folder.warning
- A localized string with additional information about why
the user has this access level to the content.accessDetails
- The parent folders that a member has access to. The
field is present if the user has access to the first parent folder
where the member gains access. Must not contain a null
item.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public MemberAccessLevelResult()
The default values for unset fields will be used.
public AccessLevel getAccessLevel()
null
if not present.public java.lang.String getWarning()
null
if not present.public java.util.List<ParentFolderAccessInfo> getAccessDetails()
null
if not present.public static MemberAccessLevelResult.Builder newBuilder()
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.