Interface ProductLegacySetSkuAction

All Superinterfaces:
ProductUpdateAction, ResourceUpdateAction<ProductUpdateAction>

public interface ProductLegacySetSkuAction extends ProductUpdateAction
ProductLegacySetSkuAction
Example to create an instance using the builder pattern

     ProductLegacySetSkuAction productLegacySetSkuAction = ProductLegacySetSkuAction.builder()
             .variantId(1)
             .build()
 
  • Field Details

    • LEGACY_SET_SKU

      static final String LEGACY_SET_SKU
      discriminator value for ProductLegacySetSkuAction
      See Also:
  • Method Details

    • getSku

      String getSku()
      Returns:
      sku
    • getVariantId

      @NotNull @NotNull Integer getVariantId()
      Returns:
      variantId
    • setSku

      void setSku(String sku)
      set sku
      Parameters:
      sku - value to be set
    • setVariantId

      void setVariantId(Integer variantId)
      set variantId
      Parameters:
      variantId - value to be set
    • of

      factory method
      Returns:
      instance of ProductLegacySetSkuAction
    • of

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

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

      builder factory method for ProductLegacySetSkuAction
      Returns:
      builder
    • builder

      create builder for ProductLegacySetSkuAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withProductLegacySetSkuAction

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