Interface HierarchicalPrincipal.Builder

    • Method Detail

      • principalList

        HierarchicalPrincipal.Builder principalList​(Collection<Principal> principalList)

        A list of principal lists that define the hierarchy for which documents users should have access to. Each hierarchical list specifies which user or group has allow or deny access for each document.

        Parameters:
        principalList - A list of principal lists that define the hierarchy for which documents users should have access to. Each hierarchical list specifies which user or group has allow or deny access for each document.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • principalList

        HierarchicalPrincipal.Builder principalList​(Principal... principalList)

        A list of principal lists that define the hierarchy for which documents users should have access to. Each hierarchical list specifies which user or group has allow or deny access for each document.

        Parameters:
        principalList - A list of principal lists that define the hierarchy for which documents users should have access to. Each hierarchical list specifies which user or group has allow or deny access for each document.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • principalList

        HierarchicalPrincipal.Builder principalList​(Consumer<Principal.Builder>... principalList)

        A list of principal lists that define the hierarchy for which documents users should have access to. Each hierarchical list specifies which user or group has allow or deny access for each document.

        This is a convenience method that creates an instance of the Principal.Builder avoiding the need to create one manually via Principal.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #principalList(List).

        Parameters:
        principalList - a consumer that will call methods on Principal.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #principalList(java.util.Collection)