Interface RequiredCaseRule.Builder

  • Method Details

    • conditions

      List of conditions for the required rule; the first condition to evaluate to true dictates the value of the rule.

      Parameters:
      conditions - List of conditions for the required rule; the first condition to evaluate to true dictates the value of the rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • conditions

      RequiredCaseRule.Builder conditions(BooleanCondition... conditions)

      List of conditions for the required rule; the first condition to evaluate to true dictates the value of the rule.

      Parameters:
      conditions - List of conditions for the required rule; the first condition to evaluate to true dictates the value of the rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • conditions

      List of conditions for the required rule; the first condition to evaluate to true dictates the value of the rule.

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

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

      Parameters:
      conditions - a consumer that will call methods on BooleanCondition.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • defaultValue

      RequiredCaseRule.Builder defaultValue(Boolean defaultValue)

      The value of the rule (that is, whether the field is required) should none of the conditions evaluate to true.

      Parameters:
      defaultValue - The value of the rule (that is, whether the field is required) should none of the conditions evaluate to true.
      Returns:
      Returns a reference to this object so that method calls can be chained together.