Class ProductDiscountChangeValueActionBuilder
java.lang.Object
com.commercetools.api.models.product_discount.ProductDiscountChangeValueActionBuilder
- All Implemented Interfaces:
Builder<ProductDiscountChangeValueAction>
public class ProductDiscountChangeValueActionBuilder
extends Object
implements Builder<ProductDiscountChangeValueAction>
ProductDiscountChangeValueActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductDiscountChangeValueAction productDiscountChangeValueAction = ProductDiscountChangeValueAction.builder()
.value(valueBuilder -> valueBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductDiscountChangeValueAction with checking for non-null required valuesbuilds ProductDiscountChangeValueAction without checking for non-null required valuesgetValue()
New value to set.of()
factory method for an instance of ProductDiscountChangeValueActionBuilderof
(ProductDiscountChangeValueAction template) create builder for ProductDiscountChangeValueAction instancevalue
(ProductDiscountValueDraft value) New value to set.value
(Function<ProductDiscountValueDraftBuilder, Builder<? extends ProductDiscountValueDraft>> builder) New value to set.
-
Constructor Details
-
ProductDiscountChangeValueActionBuilder
public ProductDiscountChangeValueActionBuilder()
-
-
Method Details
-
value
New value to set. Must not be empty.
- Parameters:
value
- value to be set- Returns:
- Builder
-
value
public ProductDiscountChangeValueActionBuilder value(Function<ProductDiscountValueDraftBuilder, Builder<? extends ProductDiscountValueDraft>> builder) New value to set. Must not be empty.
- Parameters:
builder
- function to build the value value- Returns:
- Builder
-
getValue
New value to set. Must not be empty.
- Returns:
- value
-
build
builds ProductDiscountChangeValueAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductDiscountChangeValueAction>
- Returns:
- ProductDiscountChangeValueAction
-
buildUnchecked
builds ProductDiscountChangeValueAction without checking for non-null required values- Returns:
- ProductDiscountChangeValueAction
-
of
factory method for an instance of ProductDiscountChangeValueActionBuilder- Returns:
- builder
-
of
create builder for ProductDiscountChangeValueAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-