Interface VariantUpdate


public interface VariantUpdate
VariantUpdate
Example to create an instance using the builder pattern

     VariantUpdate variantUpdate = VariantUpdate.builder()
             .version(0.3)
             .plusActions(actionsBuilder -> actionsBuilder)
             .build()
 
  • Method Details

    • getVersion

      @NotNull @NotNull Long getVersion()

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

      Returns:
      version
    • getActions

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

      Update actions to be performed on the Variant.

      Returns:
      actions
    • setVersion

      void setVersion(Long version)

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

      Parameters:
      version - value to be set
    • setActions

      void setActions(VariantUpdateAction... actions)

      Update actions to be performed on the Variant.

      Parameters:
      actions - values to be set
    • setActions

      void setActions(List<VariantUpdateAction> actions)

      Update actions to be performed on the Variant.

      Parameters:
      actions - values to be set
    • of

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

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

      VariantUpdate copyDeep()
    • deepCopy

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

      static VariantUpdateBuilder builder()
      builder factory method for VariantUpdate
      Returns:
      builder
    • builder

      static VariantUpdateBuilder builder(VariantUpdate template)
      create builder for VariantUpdate instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withVariantUpdate

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

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