public class MemberAccessLevelResult extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MemberAccessLevelResult.Builder
Builder for
MemberAccessLevelResult . |
Modifier and Type | Field and Description |
---|---|
protected List<ParentFolderAccessInfo> |
accessDetails |
protected AccessLevel |
accessLevel |
protected String |
warning |
Constructor and Description |
---|
MemberAccessLevelResult()
Contains information about a member's access level to content after an
operation.
|
MemberAccessLevelResult(AccessLevel accessLevel,
String warning,
List<ParentFolderAccessInfo> accessDetails)
Contains information about a member's access level to content after an
operation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
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.
|
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.
|
String |
toString() |
String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final AccessLevel accessLevel
protected final String warning
protected final List<ParentFolderAccessInfo> accessDetails
public MemberAccessLevelResult(AccessLevel accessLevel, String warning, 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.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 String getWarning()
null
if not present.public List<ParentFolderAccessInfo> getAccessDetails()
null
if not present.public static MemberAccessLevelResult.Builder newBuilder()
public String toStringMultiline()
The returned String may contain newlines.