Class ProductRemovePriceActionBuilder

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

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

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

    • ProductRemovePriceActionBuilder

      public ProductRemovePriceActionBuilder()
  • Method Details

    • priceId

      public ProductRemovePriceActionBuilder priceId(String priceId)

      The id of the Embedded Price to remove.

      Parameters:
      priceId - 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
    • getStaged

      @Nullable public Boolean getStaged()

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

      Returns:
      staged
    • build

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

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

      public static ProductRemovePriceActionBuilder 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