Package com.fauna.response
Class ConstraintFailure.Builder
- java.lang.Object
-
- com.fauna.response.ConstraintFailure.Builder
-
- Enclosing class:
- ConstraintFailure
public static class ConstraintFailure.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConstraintFailure
build()
Builds a ConstraintFailure instance from the current builder.ConstraintFailure.Builder
message(java.lang.String message)
Sets a message on the builder.ConstraintFailure.Builder
name(java.lang.String name)
Sets a name on the builder.ConstraintFailure.Builder
path(ConstraintFailure.PathElement[] path)
Sets a path on the 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.
-
path
public ConstraintFailure.Builder path(ConstraintFailure.PathElement[] path)
Sets a path on the builder.- Parameters:
path
- The path to set.- Returns:
- this.
-
build
public ConstraintFailure build()
Builds a ConstraintFailure instance from the current builder.- Returns:
- A ConstraintFailure instance.
-
-