Class ProductRemovePriceActionBuilder

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

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

     ProductRemovePriceAction productRemovePriceAction = ProductRemovePriceAction.builder()
             .priceId("{priceId}")
             .build()
 
  • Constructor Details

  • Method Details

    • priceId

      The id of the Embedded Price to remove.

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

      The sku of the ProductVariant the provided Price should be removed from. Either 'variantId' or 'sku' is required" when priceId is not provided. This field is now deprecated, use 'priceId' instead.

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

      The id of the ProductVariant the provided Price should be removed from. Either 'variantId' or 'sku' is required" when priceId is not provided. This field is now deprecated, use 'priceId' instead.

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

      The Price identical to the one to be removed from the ProductVariant. This field is now deprecated, use 'priceId' instead.

      Parameters:
      builder - function to build the price value
      Returns:
      Builder
    • withPrice

      The Price identical to the one to be removed from the ProductVariant. This field is now deprecated, use 'priceId' instead.

      Parameters:
      builder - function to build the price value
      Returns:
      Builder
    • price

      The Price identical to the one to be removed from the ProductVariant. This field is now deprecated, use 'priceId' instead.

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

      If true, only the staged Embedded Price is removed. If false, both the current and staged Embedded Price are removed.

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

      public String getPriceId()

      The id of the Embedded Price to remove.

      Returns:
      priceId
    • getSku

      The sku of the ProductVariant the provided Price should be removed from. Either 'variantId' or 'sku' is required" when priceId is not provided. This field is now deprecated, use 'priceId' instead.

      Returns:
      sku
    • getVariantId

      The id of the ProductVariant the provided Price should be removed from. Either 'variantId' or 'sku' is required" when priceId is not provided. This field is now deprecated, use 'priceId' instead.

      Returns:
      variantId
    • getPrice

      The Price identical to the one to be removed from the ProductVariant. This field is now deprecated, use 'priceId' instead.

      Returns:
      price
    • getStaged

      If true, only the staged Embedded Price is removed. If false, both the current and staged Embedded Price are removed.

      Returns:
      staged
    • build

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

      builds ProductRemovePriceAction without checking for non-null required values
      Returns:
      ProductRemovePriceAction
    • of

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

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