Interface HierarchicalPrincipal.Builder

All Superinterfaces:
Buildable, CopyableBuilder<HierarchicalPrincipal.Builder,HierarchicalPrincipal>, SdkBuilder<HierarchicalPrincipal.Builder,HierarchicalPrincipal>, SdkPojo
Enclosing class:
HierarchicalPrincipal

public static interface HierarchicalPrincipal.Builder extends SdkPojo, CopyableBuilder<HierarchicalPrincipal.Builder,HierarchicalPrincipal>
  • Method Details

    • 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<Principal>).

      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: