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
Example to create an instance using the builder pattern
ProductDiscountValueRelativeDraft productDiscountValueRelativeDraft = ProductDiscountValueRelativeDraft.builder()
.permyriad(0.3)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductDiscountValueRelativeDraft with checking for non-null required valuesbuilds ProductDiscountValueRelativeDraft without checking for non-null required valuesFraction (per ten thousand) the price is reduced by.of()
factory method for an instance of ProductDiscountValueRelativeDraftBuilderof
(ProductDiscountValueRelativeDraft template) create builder for ProductDiscountValueRelativeDraft instanceFraction (per ten thousand) the price is reduced by.
-
Constructor Details
-
ProductDiscountValueRelativeDraftBuilder
public ProductDiscountValueRelativeDraftBuilder()
-
-
Method Details
-
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
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 interfaceio.vrap.rmf.base.client.Builder<ProductDiscountValueRelativeDraft>
- Returns:
- ProductDiscountValueRelativeDraft
-
buildUnchecked
builds ProductDiscountValueRelativeDraft without checking for non-null required values- Returns:
- ProductDiscountValueRelativeDraft
-
of
factory method for an instance of ProductDiscountValueRelativeDraftBuilder- Returns:
- builder
-
of
public static ProductDiscountValueRelativeDraftBuilder of(ProductDiscountValueRelativeDraft template) create builder for ProductDiscountValueRelativeDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-