Class ProductTailoringRemoveAssetActionBuilder

java.lang.Object
com.commercetools.api.models.product_tailoring.ProductTailoringRemoveAssetActionBuilder
All Implemented Interfaces:
Builder<ProductTailoringRemoveAssetAction>

public class ProductTailoringRemoveAssetActionBuilder extends Object implements Builder<ProductTailoringRemoveAssetAction>
ProductTailoringRemoveAssetActionBuilder
Example to create an instance using the builder pattern

     ProductTailoringRemoveAssetAction productTailoringRemoveAssetAction = ProductTailoringRemoveAssetAction.builder()
             .build()
 
  • Constructor Details

    • ProductTailoringRemoveAssetActionBuilder

      public ProductTailoringRemoveAssetActionBuilder()
  • Method Details

    • variantId

      public ProductTailoringRemoveAssetActionBuilder variantId(@Nullable Long variantId)

      The id of the tailored ProductVariant to update.

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

      The sku of the tailored ProductVariant to update.

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

      public ProductTailoringRemoveAssetActionBuilder staged(@Nullable Boolean staged)

      If true, only the staged Asset is removed. If false, both the current and staged Asset is removed.

      Parameters:
      staged - value to be set
      Returns:
      Builder
    • assetId

      public ProductTailoringRemoveAssetActionBuilder assetId(@Nullable String assetId)

      The id of the Asset to remove.

      Parameters:
      assetId - value to be set
      Returns:
      Builder
    • assetKey

      public ProductTailoringRemoveAssetActionBuilder assetKey(@Nullable String assetKey)

      The key of the Asset to remove.

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

      @Nullable public Long getVariantId()

      The id of the tailored ProductVariant to update.

      Returns:
      variantId
    • getSku

      @Nullable public String getSku()

      The sku of the tailored ProductVariant to update.

      Returns:
      sku
    • getStaged

      @Nullable public Boolean getStaged()

      If true, only the staged Asset is removed. If false, both the current and staged Asset is removed.

      Returns:
      staged
    • getAssetId

      @Nullable public String getAssetId()

      The id of the Asset to remove.

      Returns:
      assetId
    • getAssetKey

      @Nullable public String getAssetKey()

      The key of the Asset to remove.

      Returns:
      assetKey
    • build

      builds ProductTailoringRemoveAssetAction with checking for non-null required values
      Specified by:
      build in interface Builder<ProductTailoringRemoveAssetAction>
      Returns:
      ProductTailoringRemoveAssetAction
    • buildUnchecked

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

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

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