Interface InvalidJsonInput

All Superinterfaces:
ErrorObject

public interface InvalidJsonInput extends ErrorObject

An invalid JSON input has been sent to the service. Either the JSON is syntactically incorrect or the JSON has an unexpected shape, for example, a required field is missing. The client application should validate the input according to the constraints described in the error message before sending the request again.


Example to create an instance using the builder pattern

     InvalidJsonInput invalidJsonInput = InvalidJsonInput.builder()
             .message("{message}")
             .build()
 
  • Field Details

  • Method Details

    • of

      static InvalidJsonInput of()
      factory method
      Returns:
      instance of InvalidJsonInput
    • of

      static InvalidJsonInput of(InvalidJsonInput template)
      factory method to create a shallow copy InvalidJsonInput
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of InvalidJsonInput
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static InvalidJsonInputBuilder builder()
      builder factory method for InvalidJsonInput
      Returns:
      builder
    • builder

      static InvalidJsonInputBuilder builder(InvalidJsonInput template)
      create builder for InvalidJsonInput instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withInvalidJsonInput

      default <T> T withInvalidJsonInput(Function<InvalidJsonInput,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<InvalidJsonInput> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference