Interface Filter.Builder

    • Method Detail

      • behavior

        Filter.Builder behavior​(String behavior)

        How to handle logs that satisfy the filter's conditions and requirement.

        Parameters:
        behavior - How to handle logs that satisfy the filter's conditions and requirement.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        FilterBehavior, FilterBehavior
      • behavior

        Filter.Builder behavior​(FilterBehavior behavior)

        How to handle logs that satisfy the filter's conditions and requirement.

        Parameters:
        behavior - How to handle logs that satisfy the filter's conditions and requirement.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        FilterBehavior, FilterBehavior
      • requirement

        Filter.Builder requirement​(String requirement)

        Logic to apply to the filtering conditions. You can specify that, in order to satisfy the filter, a log must match all conditions or must match at least one condition.

        Parameters:
        requirement - Logic to apply to the filtering conditions. You can specify that, in order to satisfy the filter, a log must match all conditions or must match at least one condition.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        FilterRequirement, FilterRequirement
      • requirement

        Filter.Builder requirement​(FilterRequirement requirement)

        Logic to apply to the filtering conditions. You can specify that, in order to satisfy the filter, a log must match all conditions or must match at least one condition.

        Parameters:
        requirement - Logic to apply to the filtering conditions. You can specify that, in order to satisfy the filter, a log must match all conditions or must match at least one condition.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        FilterRequirement, FilterRequirement
      • conditions

        Filter.Builder conditions​(Collection<Condition> conditions)

        Match conditions for the filter.

        Parameters:
        conditions - Match conditions for the filter.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • conditions

        Filter.Builder conditions​(Condition... conditions)

        Match conditions for the filter.

        Parameters:
        conditions - Match conditions for the filter.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • conditions

        Filter.Builder conditions​(Consumer<Condition.Builder>... conditions)

        Match conditions for the filter.

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

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

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