Interface FieldCondition.Builder

  • Method Details

    • dependsOnFieldPath

      FieldCondition.Builder dependsOnFieldPath(String dependsOnFieldPath)

      The path of the field whose value determines this condition, for example companyInfo.businessType.

      Parameters:
      dependsOnFieldPath - The path of the field whose value determines this condition, for example companyInfo.businessType.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • operator

      FieldCondition.Builder operator(String operator)

      The comparison operator to apply between the dependency field's value and Values. Valid values are EQUALS, NOT_EQUALS, IN, NOT_IN, HAS_VALUE, and NO_VALUE. Operators not in this list are treated as evaluating to false, which causes the containing rule to be skipped. This allows forward-compatible additions of new operators without breaking older SDK clients.

      Parameters:
      operator - The comparison operator to apply between the dependency field's value and Values. Valid values are EQUALS, NOT_EQUALS, IN, NOT_IN, HAS_VALUE, and NO_VALUE. Operators not in this list are treated as evaluating to false, which causes the containing rule to be skipped. This allows forward-compatible additions of new operators without breaking older SDK clients.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • values

      The values to compare the dependency field's value against. Required for the EQUALS, NOT_EQUALS, IN, and NOT_IN operators. Omitted for HAS_VALUE and NO_VALUE, which test only presence.

      Parameters:
      values - The values to compare the dependency field's value against. Required for the EQUALS, NOT_EQUALS, IN, and NOT_IN operators. Omitted for HAS_VALUE and NO_VALUE, which test only presence.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • values

      FieldCondition.Builder values(String... values)

      The values to compare the dependency field's value against. Required for the EQUALS, NOT_EQUALS, IN, and NOT_IN operators. Omitted for HAS_VALUE and NO_VALUE, which test only presence.

      Parameters:
      values - The values to compare the dependency field's value against. Required for the EQUALS, NOT_EQUALS, IN, and NOT_IN operators. Omitted for HAS_VALUE and NO_VALUE, which test only presence.
      Returns:
      Returns a reference to this object so that method calls can be chained together.