Class ProductDiscountChangeSortOrderActionBuilder
java.lang.Object
com.commercetools.api.models.product_discount.ProductDiscountChangeSortOrderActionBuilder
- All Implemented Interfaces:
Builder<ProductDiscountChangeSortOrderAction>
public class ProductDiscountChangeSortOrderActionBuilder
extends Object
implements Builder<ProductDiscountChangeSortOrderAction>
ProductDiscountChangeSortOrderActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductDiscountChangeSortOrderAction productDiscountChangeSortOrderAction = ProductDiscountChangeSortOrderAction.builder()
.sortOrder("{sortOrder}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductDiscountChangeSortOrderAction with checking for non-null required valuesbuilds ProductDiscountChangeSortOrderAction without checking for non-null required valuesNew value to set.of()
factory method for an instance of ProductDiscountChangeSortOrderActionBuilderof
(ProductDiscountChangeSortOrderAction template) create builder for ProductDiscountChangeSortOrderAction instanceNew value to set.
-
Constructor Details
-
ProductDiscountChangeSortOrderActionBuilder
public ProductDiscountChangeSortOrderActionBuilder()
-
-
Method Details
-
sortOrder
New value to set. Must not be empty. The string value must be a number between
0
and1
. A Discount with a higher sortOrder is prioritized.- Parameters:
sortOrder
- value to be set- Returns:
- Builder
-
getSortOrder
New value to set. Must not be empty. The string value must be a number between
0
and1
. A Discount with a higher sortOrder is prioritized.- Returns:
- sortOrder
-
build
builds ProductDiscountChangeSortOrderAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductDiscountChangeSortOrderAction>
- Returns:
- ProductDiscountChangeSortOrderAction
-
buildUnchecked
builds ProductDiscountChangeSortOrderAction without checking for non-null required values- Returns:
- ProductDiscountChangeSortOrderAction
-
of
factory method for an instance of ProductDiscountChangeSortOrderActionBuilder- Returns:
- builder
-
of
public static ProductDiscountChangeSortOrderActionBuilder of(ProductDiscountChangeSortOrderAction template) create builder for ProductDiscountChangeSortOrderAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-