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