Interface GetRuleResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, CopyableBuilder<GetRuleResponse.Builder,GetRuleResponse>, SdkBuilder<GetRuleResponse.Builder,GetRuleResponse>, SdkPojo, SdkResponse.Builder, WafResponse.Builder
Enclosing class:
GetRuleResponse

public static interface GetRuleResponse.Builder extends WafResponse.Builder, SdkPojo, CopyableBuilder<GetRuleResponse.Builder,GetRuleResponse>
  • Method Details

    • 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

      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: