Class ProductChangeAssetOrderActionBuilder

java.lang.Object
com.commercetools.api.models.product.ProductChangeAssetOrderActionBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<ProductChangeAssetOrderAction>

public class ProductChangeAssetOrderActionBuilder extends Object implements io.vrap.rmf.base.client.Builder<ProductChangeAssetOrderAction>
ProductChangeAssetOrderActionBuilder
Example to create an instance using the builder pattern

     ProductChangeAssetOrderAction productChangeAssetOrderAction = ProductChangeAssetOrderAction.builder()
             .plusAssetOrder(assetOrderBuilder -> assetOrderBuilder)
             .build()
 
  • Constructor Details

    • ProductChangeAssetOrderActionBuilder

      public ProductChangeAssetOrderActionBuilder()
  • Method Details

    • variantId

      public ProductChangeAssetOrderActionBuilder variantId(@Nullable Long variantId)

      The id of the ProductVariant to update.

      Parameters:
      variantId - value to be set
      Returns:
      Builder
    • sku

      The sku of the ProductVariant to update.

      Parameters:
      sku - value to be set
      Returns:
      Builder
    • 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
      Returns:
      Builder
    • assetOrder

      public ProductChangeAssetOrderActionBuilder assetOrder(String... assetOrder)

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

      Parameters:
      assetOrder - value to be set
      Returns:
      Builder
    • assetOrder

      public ProductChangeAssetOrderActionBuilder assetOrder(List<String> assetOrder)

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

      Parameters:
      assetOrder - value to be set
      Returns:
      Builder
    • plusAssetOrder

      public ProductChangeAssetOrderActionBuilder plusAssetOrder(String... assetOrder)

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

      Parameters:
      assetOrder - value to be set
      Returns:
      Builder
    • getVariantId

      @Nullable public Long getVariantId()

      The id of the ProductVariant to update.

      Returns:
      variantId
    • getSku

      @Nullable public String getSku()

      The sku of the ProductVariant to update.

      Returns:
      sku
    • getStaged

      @Nullable public Boolean getStaged()

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

      Returns:
      staged
    • getAssetOrder

      public List<String> getAssetOrder()

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

      Returns:
      assetOrder
    • build

      builds ProductChangeAssetOrderAction with checking for non-null required values
      Specified by:
      build in interface io.vrap.rmf.base.client.Builder<ProductChangeAssetOrderAction>
      Returns:
      ProductChangeAssetOrderAction
    • buildUnchecked

      public ProductChangeAssetOrderAction buildUnchecked()
      builds ProductChangeAssetOrderAction without checking for non-null required values
      Returns:
      ProductChangeAssetOrderAction
    • of

      factory method for an instance of ProductChangeAssetOrderActionBuilder
      Returns:
      builder
    • of

      create builder for ProductChangeAssetOrderAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder