Interface InvalidInput

All Superinterfaces:
ErrorObject

public interface InvalidInput extends ErrorObject

An invalid input has been sent to the service. 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

     InvalidInput invalidInput = InvalidInput.builder()
             .message("{message}")
             .build()
 
  • Field Details

  • Method Details

    • of

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

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

      @Nullable static InvalidInput deepCopy(@Nullable InvalidInput template)
      factory method to create a deep copy of InvalidInput
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static InvalidInputBuilder builder()
      builder factory method for InvalidInput
      Returns:
      builder
    • builder

      static InvalidInputBuilder builder(InvalidInput template)
      create builder for InvalidInput instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withInvalidInput

      default <T> T withInvalidInput(Function<InvalidInput,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<InvalidInput> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference