Interface AccessControl.Builder

  • Method Details

    • principals

      AccessControl.Builder principals(Collection<Principal> principals)

      Contains a list of principals, where a principal can be either a USER or a GROUP. Each principal can be have the following type of document access: ALLOW or DENY.

      Parameters:
      principals - Contains a list of principals, where a principal can be either a USER or a GROUP. Each principal can be have the following type of document access: ALLOW or DENY.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • principals

      AccessControl.Builder principals(Principal... principals)

      Contains a list of principals, where a principal can be either a USER or a GROUP. Each principal can be have the following type of document access: ALLOW or DENY.

      Parameters:
      principals - Contains a list of principals, where a principal can be either a USER or a GROUP. Each principal can be have the following type of document access: ALLOW or DENY.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • principals

      AccessControl.Builder principals(Consumer<Principal.Builder>... principals)

      Contains a list of principals, where a principal can be either a USER or a GROUP. Each principal can be have the following type of document access: ALLOW or DENY.

      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 principals(List<Principal>).

      Parameters:
      principals - 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:
    • memberRelation

      AccessControl.Builder memberRelation(String memberRelation)

      Describes the member relation within a principal list.

      Parameters:
      memberRelation - Describes the member relation within a principal list.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • memberRelation

      AccessControl.Builder memberRelation(MemberRelation memberRelation)

      Describes the member relation within a principal list.

      Parameters:
      memberRelation - Describes the member relation within a principal list.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: