Interface FieldConstraint.Builder

  • Method Details

    • field

      The member's path from the input: a.b for a nested member, a[0] for a list element, a[key] for a map value.

      Parameters:
      field - The member's path from the input: a.b for a nested member, a[0] for a list element, a[key] for a map value.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • value

      The value as sent. It is omitted for a missing member, a length or union failure, and a @sensitive member.

      Parameters:
      value - The value as sent. It is omitted for a missing member, a length or union failure, and a @sensitive member.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • constraint

      FieldConstraint.Builder constraint(Constraint constraint)

      The constraint the value failed.

      Parameters:
      constraint - The constraint the value failed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • constraint

      default FieldConstraint.Builder constraint(Consumer<Constraint.Builder> constraint)

      The constraint the value failed.

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

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

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