Class ProductSetProductPriceCustomFieldActionBuilder

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

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

     ProductSetProductPriceCustomFieldAction productSetProductPriceCustomFieldAction = ProductSetProductPriceCustomFieldAction.builder()
             .priceId("{priceId}")
             .name("{name}")
             .build()
 
  • Constructor Details

    • ProductSetProductPriceCustomFieldActionBuilder

      public ProductSetProductPriceCustomFieldActionBuilder()
  • Method Details

    • priceId

      The id of the Embedded Price to update.

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

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

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

      Name of the Custom Field.

      Parameters:
      name - value to be set
      Returns:
      Builder
    • value

      If value is absent or null, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. If value is provided, it is set for the field defined by name.

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

      public String getPriceId()

      The id of the Embedded Price to update.

      Returns:
      priceId
    • getStaged

      @Nullable public Boolean getStaged()

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

      Returns:
      staged
    • getName

      public String getName()

      Name of the Custom Field.

      Returns:
      name
    • getValue

      @Nullable public Object getValue()

      If value is absent or null, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. If value is provided, it is set for the field defined by name.

      Returns:
      value
    • build

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

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

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

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