Interface GetRuleResponse.Builder

    • Method Detail

      • rule

        GetRuleResponse.Builder rule​(Rule rule)

        Information about the Rule that you specified in the GetRule request. For more information, see the following topics:

        • Rule: Contains MetricName, Name, an array of Predicate objects, and RuleId

        • Predicate: Each Predicate object contains DataId, Negated, and Type

        Parameters:
        rule - Information about the Rule that you specified in the GetRule request. For more information, see the following topics:

        • Rule: Contains MetricName, Name, an array of Predicate objects, and RuleId

        • Predicate: Each Predicate object contains DataId, Negated, and Type

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

        default GetRuleResponse.Builder rule​(Consumer<Rule.Builder> rule)

        Information about the Rule that you specified in the GetRule request. For more information, see the following topics:

        • Rule: Contains MetricName, Name, an array of Predicate objects, and RuleId

        • Predicate: Each Predicate object contains DataId, Negated, and Type

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

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

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