Interface CreateRuleRequest.Builder

    • Method Detail

      • ruleId

        CreateRuleRequest.Builder ruleId​(String ruleId)

        The rule ID.

        Parameters:
        ruleId - The rule ID.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • detectorId

        CreateRuleRequest.Builder detectorId​(String detectorId)

        The detector ID for the rule's parent detector.

        Parameters:
        detectorId - The detector ID for the rule's parent detector.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • description

        CreateRuleRequest.Builder description​(String description)

        The rule description.

        Parameters:
        description - The rule description.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • expression

        CreateRuleRequest.Builder expression​(String expression)

        The rule expression.

        Parameters:
        expression - The rule expression.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • language

        CreateRuleRequest.Builder language​(String language)

        The language of the rule.

        Parameters:
        language - The language of the rule.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Language, Language
      • language

        CreateRuleRequest.Builder language​(Language language)

        The language of the rule.

        Parameters:
        language - The language of the rule.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Language, Language
      • outcomes

        CreateRuleRequest.Builder outcomes​(Collection<String> outcomes)

        The outcome or outcomes returned when the rule expression matches.

        Parameters:
        outcomes - The outcome or outcomes returned when the rule expression matches.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • outcomes

        CreateRuleRequest.Builder outcomes​(String... outcomes)

        The outcome or outcomes returned when the rule expression matches.

        Parameters:
        outcomes - The outcome or outcomes returned when the rule expression matches.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateRuleRequest.Builder tags​(Collection<Tag> tags)

        A collection of key and value pairs.

        Parameters:
        tags - A collection of key and value pairs.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateRuleRequest.Builder tags​(Tag... tags)

        A collection of key and value pairs.

        Parameters:
        tags - A collection of key and value pairs.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateRuleRequest.Builder tags​(Consumer<Tag.Builder>... tags)

        A collection of key and value pairs.

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

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

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