Interface ProductTailoringChangeAssetOrderAction

All Superinterfaces:
ProductTailoringUpdateAction

public interface ProductTailoringChangeAssetOrderAction extends ProductTailoringUpdateAction

Either variantId or sku is required to reference a ProductVariant that exists.


Example to create an instance using the builder pattern

     ProductTailoringChangeAssetOrderAction productTailoringChangeAssetOrderAction = ProductTailoringChangeAssetOrderAction.builder()
             .plusAssetOrder(assetOrderBuilder -> assetOrderBuilder)
             .build()
 
  • Field Details

    • CHANGE_ASSET_ORDER

      static final String CHANGE_ASSET_ORDER
      discriminator value for ProductTailoringChangeAssetOrderAction
      See Also:
  • Method Details

    • getVariantId

      Long getVariantId()

      The id of the tailored ProductVariant to update.

      Returns:
      variantId
    • getSku

      String getSku()

      The sku of the tailored ProductVariant to update.

      Returns:
      sku
    • getStaged

      Boolean getStaged()

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

      Returns:
      staged
    • getAssetOrder

      @NotNull @NotNull List<String> getAssetOrder()

      All existing Asset ids of the ProductVariantTailoring in the desired new order.

      Returns:
      assetOrder
    • setVariantId

      void setVariantId(Long variantId)

      The id of the tailored ProductVariant to update.

      Parameters:
      variantId - value to be set
    • setSku

      void setSku(String sku)

      The sku of the tailored ProductVariant to update.

      Parameters:
      sku - value to be set
    • setStaged

      void setStaged(Boolean staged)

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

      Parameters:
      staged - value to be set
    • setAssetOrder

      void setAssetOrder(String... assetOrder)

      All existing Asset ids of the ProductVariantTailoring in the desired new order.

      Parameters:
      assetOrder - values to be set
    • setAssetOrder

      void setAssetOrder(List<String> assetOrder)

      All existing Asset ids of the ProductVariantTailoring in the desired new order.

      Parameters:
      assetOrder - values to be set
    • of

      factory method
      Returns:
      instance of ProductTailoringChangeAssetOrderAction
    • of

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

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

      builder factory method for ProductTailoringChangeAssetOrderAction
      Returns:
      builder
    • builder

      create builder for ProductTailoringChangeAssetOrderAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withProductTailoringChangeAssetOrderAction

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