Interface VariantBulkUpdateResource


public interface VariantBulkUpdateResource

A lightweight reference containing the id and updated version of a Variant after a successful bulk update.


Example to create an instance using the builder pattern

     VariantBulkUpdateResource variantBulkUpdateResource = VariantBulkUpdateResource.builder()
             .id("{id}")
             .version(0.3)
             .build()
 
  • Method Details

    • getId

      @NotNull @NotNull String getId()

      Unique identifier of the updated Variant.

      Returns:
      id
    • getVersion

      @NotNull @NotNull Long getVersion()

      The new version of the Variant after the update.

      Returns:
      version
    • setId

      void setId(String id)

      Unique identifier of the updated Variant.

      Parameters:
      id - value to be set
    • setVersion

      void setVersion(Long version)

      The new version of the Variant after the update.

      Parameters:
      version - value to be set
    • of

      factory method
      Returns:
      instance of VariantBulkUpdateResource
    • of

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

    • deepCopy

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

      builder factory method for VariantBulkUpdateResource
      Returns:
      builder
    • builder

      create builder for VariantBulkUpdateResource instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withVariantBulkUpdateResource

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