Class ProductRemoveAssetActionBuilder

java.lang.Object
com.commercetools.api.models.product.ProductRemoveAssetActionBuilder
All Implemented Interfaces:
Builder<ProductRemoveAssetAction>

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

     ProductRemoveAssetAction productRemoveAssetAction = ProductRemoveAssetAction.builder()
             .build()
 
  • Constructor Details

    • ProductRemoveAssetActionBuilder

      public ProductRemoveAssetActionBuilder()
  • Method Details

    • variantId

      public ProductRemoveAssetActionBuilder variantId(@Nullable Long variantId)

      The id of the ProductVariant to update.

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

      public ProductRemoveAssetActionBuilder sku(@Nullable String sku)

      The sku of the ProductVariant to update.

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

      public ProductRemoveAssetActionBuilder 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 ProductRemoveAssetActionBuilder assetId(@Nullable String assetId)

      The id of the Asset to remove.

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

      public ProductRemoveAssetActionBuilder 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 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 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

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

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

      public static ProductRemoveAssetActionBuilder of()
      factory method for an instance of ProductRemoveAssetActionBuilder
      Returns:
      builder
    • of

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