Class ProductSetPriceKeyActionBuilder

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

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

     ProductSetPriceKeyAction productSetPriceKeyAction = ProductSetPriceKeyAction.builder()
             .priceId("{priceId}")
             .build()
 
  • Constructor Details

    • ProductSetPriceKeyActionBuilder

      public ProductSetPriceKeyActionBuilder()
  • Method Details

    • priceId

      public ProductSetPriceKeyActionBuilder priceId(String priceId)

      The id of the Price to set the key.

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

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

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

      Value to set. If empty, any existing value will be removed.

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

      public String getPriceId()

      The id of the Price to set the key.

      Returns:
      priceId
    • getStaged

      @Nullable public Boolean getStaged()

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

      Returns:
      staged
    • getKey

      @Nullable public String getKey()

      Value to set. If empty, any existing value will be removed.

      Returns:
      key
    • build

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

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

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

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