Interface OverrideAction.Builder

    • Method Detail

      • count

        OverrideAction.Builder count​(CountAction count)

        Override the rule group evaluation result to count only.

        This option is usually set to none. It does not affect how the rules in the rule group are evaluated. If you want the rules in the rule group to only count matches, do not use this and instead use the rule action override option, with Count action, in your rule group reference statement settings.

        Parameters:
        count - Override the rule group evaluation result to count only.

        This option is usually set to none. It does not affect how the rules in the rule group are evaluated. If you want the rules in the rule group to only count matches, do not use this and instead use the rule action override option, with Count action, in your rule group reference statement settings.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • count

        default OverrideAction.Builder count​(Consumer<CountAction.Builder> count)

        Override the rule group evaluation result to count only.

        This option is usually set to none. It does not affect how the rules in the rule group are evaluated. If you want the rules in the rule group to only count matches, do not use this and instead use the rule action override option, with Count action, in your rule group reference statement settings.

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

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

        Parameters:
        count - a consumer that will call methods on CountAction.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        count(CountAction)
      • none

        OverrideAction.Builder none​(NoneAction none)

        Don't override the rule group evaluation result. This is the most common setting.

        Parameters:
        none - Don't override the rule group evaluation result. This is the most common setting.
        Returns:
        Returns a reference to this object so that method calls can be chained together.