Interface InvalidOperation

All Superinterfaces:
ErrorObject

public interface InvalidOperation extends ErrorObject

The resources in the request are not in the valid state for the operation. The client application should validate the constraints described in the error message before sending the request again.


Example to create an instance using the builder pattern

     InvalidOperation invalidOperation = InvalidOperation.builder()
             .message("{message}")
             .build()
 
  • Field Details

  • Method Details

    • of

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

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

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

      static InvalidOperationBuilder builder()
      builder factory method for InvalidOperation
      Returns:
      builder
    • builder

      static InvalidOperationBuilder builder(InvalidOperation template)
      create builder for InvalidOperation instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withInvalidOperation

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