Interface RLSPolicy.Builder

  • Method Details

    • catalogId

      RLSPolicy.Builder catalogId(String catalogId)

      The identifier for the Data Catalog that contains the policy. By default, the account ID.

      Parameters:
      catalogId - The identifier for the Data Catalog that contains the policy. By default, the account ID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The name of the row-level security policy.

      Parameters:
      name - The name of the row-level security policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attachmentColumns

      RLSPolicy.Builder attachmentColumns(Collection<Column> attachmentColumns)

      The list of columns that the filter expression references.

      Parameters:
      attachmentColumns - The list of columns that the filter expression references.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attachmentColumns

      RLSPolicy.Builder attachmentColumns(Column... attachmentColumns)

      The list of columns that the filter expression references.

      Parameters:
      attachmentColumns - The list of columns that the filter expression references.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attachmentColumns

      RLSPolicy.Builder attachmentColumns(Consumer<Column.Builder>... attachmentColumns)

      The list of columns that the filter expression references.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to attachmentColumns(List<Column>).

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

      RLSPolicy.Builder filterExpression(String filterExpression)

      The filter predicate, written in a SQL-like syntax, that determines which rows are returned to the principal.

      Parameters:
      filterExpression - The filter predicate, written in a SQL-like syntax, that determines which rows are returned to the principal.
      Returns:
      Returns a reference to this object so that method calls can be chained together.