Interface VariantSetSkuAction

All Superinterfaces:
VariantUpdateAction

public interface VariantSetSkuAction extends VariantUpdateAction

Sets the SKU of the Variant. SKU cannot be changed or removed if it is associated with an InventoryEntry.


Example to create an instance using the builder pattern

     VariantSetSkuAction variantSetSkuAction = VariantSetSkuAction.builder()
             .build()
 
  • Field Details

  • Method Details

    • getSku

      String getSku()

      Value to set. Must be unique.

      Returns:
      sku
    • getStaged

      Boolean getStaged()

      If true, only the staged sku is updated. If false, both the current and staged sku are updated.

      Returns:
      staged
    • setSku

      void setSku(String sku)

      Value to set. Must be unique.

      Parameters:
      sku - value to be set
    • setStaged

      void setStaged(Boolean staged)

      If true, only the staged sku is updated. If false, both the current and staged sku are updated.

      Parameters:
      staged - value to be set
    • of

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

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

      Specified by:
      copyDeep in interface VariantUpdateAction
    • deepCopy

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

      static VariantSetSkuActionBuilder builder()
      builder factory method for VariantSetSkuAction
      Returns:
      builder
    • builder

      create builder for VariantSetSkuAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withVariantSetSkuAction

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