Class ProductDiscountValueRelativeDraftBuilder

java.lang.Object
com.commercetools.api.models.product_discount.ProductDiscountValueRelativeDraftBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<ProductDiscountValueRelativeDraft>

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

     ProductDiscountValueRelativeDraft productDiscountValueRelativeDraft = ProductDiscountValueRelativeDraft.builder()
             .permyriad(0.3)
             .build()
 
  • Constructor Details

    • ProductDiscountValueRelativeDraftBuilder

      public ProductDiscountValueRelativeDraftBuilder()
  • Method Details

    • permyriad

      public ProductDiscountValueRelativeDraftBuilder permyriad(Long permyriad)

      Fraction (per ten thousand) the price is reduced by. For example, 1000 will result in a 10% price reduction.

      Parameters:
      permyriad - value to be set
      Returns:
      Builder
    • getPermyriad

      public Long getPermyriad()

      Fraction (per ten thousand) the price is reduced by. For example, 1000 will result in a 10% price reduction.

      Returns:
      permyriad
    • build

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

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

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

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