Interface QuoteUpdate

All Superinterfaces:
ResourceUpdate<QuoteUpdate,QuoteUpdateAction,QuoteUpdateBuilder>

public interface QuoteUpdate extends ResourceUpdate<QuoteUpdate,QuoteUpdateAction,QuoteUpdateBuilder>
QuoteUpdate
Example to create an instance using the builder pattern

     QuoteUpdate quoteUpdate = QuoteUpdate.builder()
             .version(0.3)
             .plusActions(actionsBuilder -> actionsBuilder)
             .build()
 
  • Method Details

    • getVersion

      @NotNull @NotNull Long getVersion()

      Expected version of the Quote to which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error will be returned.

      Specified by:
      getVersion in interface ResourceUpdate<QuoteUpdate,QuoteUpdateAction,QuoteUpdateBuilder>
      Returns:
      version
    • getActions

      @NotNull @Valid @NotNull @Valid List<QuoteUpdateAction> getActions()

      Update actions to be performed on the Quote.

      Specified by:
      getActions in interface ResourceUpdate<QuoteUpdate,QuoteUpdateAction,QuoteUpdateBuilder>
      Returns:
      actions
    • setVersion

      void setVersion(Long version)

      Expected version of the Quote to which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error will be returned.

      Specified by:
      setVersion in interface ResourceUpdate<QuoteUpdate,QuoteUpdateAction,QuoteUpdateBuilder>
      Parameters:
      version - value to be set
    • setActions

      void setActions(QuoteUpdateAction... actions)

      Update actions to be performed on the Quote.

      Parameters:
      actions - values to be set
    • setActions

      void setActions(List<QuoteUpdateAction> actions)

      Update actions to be performed on the Quote.

      Specified by:
      setActions in interface ResourceUpdate<QuoteUpdate,QuoteUpdateAction,QuoteUpdateBuilder>
      Parameters:
      actions - values to be set
    • of

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

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

      QuoteUpdate copyDeep()
    • deepCopy

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

      static QuoteUpdateBuilder builder()
      builder factory method for QuoteUpdate
      Returns:
      builder
    • builder

      static QuoteUpdateBuilder builder(QuoteUpdate template)
      create builder for QuoteUpdate instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withQuoteUpdate

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