Class MemberAccessLevelResult


  • public class MemberAccessLevelResult
    extends java.lang.Object
    Contains information about a member's access level to content after an operation.
    • Field Detail

      • accessLevel

        @Nullable
        protected final AccessLevel accessLevel
      • warning

        @Nullable
        protected final java.lang.String warning
    • Constructor Detail

      • MemberAccessLevelResult

        public MemberAccessLevelResult​(@Nullable
                                       AccessLevel accessLevel,
                                       @Nullable
                                       java.lang.String warning,
                                       @Nullable
                                       java.util.List<ParentFolderAccessInfo> accessDetails)
        Contains information about a member's access level to content after an operation.

        Use newBuilder() to create instances of this class without specifying values for all optional fields.

        Parameters:
        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.
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • MemberAccessLevelResult

        public MemberAccessLevelResult()
        Contains information about a member's access level to content after an operation.

        The default values for unset fields will be used.

    • Method Detail

      • getAccessLevel

        @Nullable
        public AccessLevel getAccessLevel()
        The member still has this level of access to the content through a parent folder.
        Returns:
        value for this field, or null if not present.
      • getWarning

        @Nullable
        public java.lang.String getWarning()
        A localized string with additional information about why the user has this access level to the content.
        Returns:
        value for this field, or null if not present.
      • getAccessDetails

        @Nullable
        public java.util.List<ParentFolderAccessInfo> getAccessDetails()
        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.
        Returns:
        value for this field, or null if not present.
      • newBuilder

        public static MemberAccessLevelResult.Builder newBuilder()
        Returns a new builder for creating an instance of this class.
        Returns:
        builder for this class.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toStringMultiline

        public java.lang.String toStringMultiline()
        Returns a String representation of this object formatted for easier readability.

        The returned String may contain newlines.

        Returns:
        Formatted, multiline String representation of this object