Interface ProductVariantPatchRequest

All Superinterfaces:
ImportRequest

public interface ProductVariantPatchRequest extends ImportRequest

The request body to import ProductVariantPatches. The data to be imported are represented by ProductVariantPatch.


Example to create an instance using the builder pattern

     ProductVariantPatchRequest productVariantPatchRequest = ProductVariantPatchRequest.builder()
             .plusPatches(patchesBuilder -> patchesBuilder)
             .build()
 
  • Field Details

    • PRODUCT_VARIANT_PATCH

      static final String PRODUCT_VARIANT_PATCH
      discriminator value for ProductVariantPatchRequest
      See Also:
  • Method Details

    • getPatches

      @NotNull @Valid @NotNull @Valid List<ProductVariantPatch> getPatches()

      The product variant patches of this request.

      Returns:
      patches
    • setPatches

      void setPatches(ProductVariantPatch... patches)

      The product variant patches of this request.

      Parameters:
      patches - values to be set
    • setPatches

      void setPatches(List<ProductVariantPatch> patches)

      The product variant patches of this request.

      Parameters:
      patches - values to be set
    • of

      factory method
      Returns:
      instance of ProductVariantPatchRequest
    • of

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

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

      builder factory method for ProductVariantPatchRequest
      Returns:
      builder
    • builder

      create builder for ProductVariantPatchRequest instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withProductVariantPatchRequest

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