Class ConstraintFailure.Builder

  • Enclosing class:
    ConstraintFailure

    public static class ConstraintFailure.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • message

        public ConstraintFailure.Builder message​(java.lang.String message)
        Sets a message on the builder.
        Parameters:
        message - The message to set.
        Returns:
        this.
      • name

        public ConstraintFailure.Builder name​(java.lang.String name)
        Sets a name on the builder.
        Parameters:
        name - The name to set.
        Returns:
        this.
      • build

        public ConstraintFailure build()
        Builds a ConstraintFailure instance from the current builder.
        Returns:
        A ConstraintFailure instance.