Interface PrincipalPermissions.Builder

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

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

    • principal

      The principal who is granted permissions.

      Parameters:
      principal - The principal who is granted permissions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • principal

      The principal who is granted permissions.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to principal(DataLakePrincipal).

      Parameters:
      principal - a consumer that will call methods on DataLakePrincipal.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • permissionsWithStrings

      PrincipalPermissions.Builder permissionsWithStrings(Collection<String> permissions)

      The permissions that are granted to the principal.

      Parameters:
      permissions - The permissions that are granted to the principal.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • permissionsWithStrings

      PrincipalPermissions.Builder permissionsWithStrings(String... permissions)

      The permissions that are granted to the principal.

      Parameters:
      permissions - The permissions that are granted to the principal.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • permissions

      The permissions that are granted to the principal.

      Parameters:
      permissions - The permissions that are granted to the principal.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • permissions

      PrincipalPermissions.Builder permissions(Permission... permissions)

      The permissions that are granted to the principal.

      Parameters:
      permissions - The permissions that are granted to the principal.
      Returns:
      Returns a reference to this object so that method calls can be chained together.