Interface ResourceCreationError

All Superinterfaces:
ErrorObject

public interface ResourceCreationError extends ErrorObject
ResourceCreationError
Example to create an instance using the builder pattern

     ResourceCreationError resourceCreationError = ResourceCreationError.builder()
             .message("{message}")
             .build()
 
  • Field Details

    • RESOURCE_CREATION

      static final String RESOURCE_CREATION
      discriminator value for ResourceCreationError
      See Also:
  • Method Details

    • getResource

      Object getResource()
      Returns:
      resource
    • setResource

      void setResource(Object resource)
      set resource
      Parameters:
      resource - value to be set
    • of

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

      factory method to create a shallow copy ResourceCreationError
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

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

      static ResourceCreationErrorBuilder builder()
      builder factory method for ResourceCreationError
      Returns:
      builder
    • builder

      create builder for ResourceCreationError instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withResourceCreationError

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