Class DiscountGroupSetSortOrderActionBuilder
java.lang.Object
com.commercetools.api.models.discount_group.DiscountGroupSetSortOrderActionBuilder
- All Implemented Interfaces:
Builder<DiscountGroupSetSortOrderAction>
public class DiscountGroupSetSortOrderActionBuilder
extends Object
implements Builder<DiscountGroupSetSortOrderAction>
DiscountGroupSetSortOrderActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DiscountGroupSetSortOrderAction discountGroupSetSortOrderAction = DiscountGroupSetSortOrderAction.builder()
.sortOrder("{sortOrder}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds DiscountGroupSetSortOrderAction with checking for non-null required valuesbuilds DiscountGroupSetSortOrderAction without checking for non-null required valuesNew value to set (between0
and1
).of()
factory method for an instance of DiscountGroupSetSortOrderActionBuilderof
(DiscountGroupSetSortOrderAction template) create builder for DiscountGroupSetSortOrderAction instanceNew value to set (between0
and1
).
-
Constructor Details
-
DiscountGroupSetSortOrderActionBuilder
public DiscountGroupSetSortOrderActionBuilder()
-
-
Method Details
-
sortOrder
New value to set (between
0
and1
). A CartDiscount with a higher value will be prioritized.The sort order must be unique among all DiscountGroups and CartDiscounts.
- Parameters:
sortOrder
- value to be set- Returns:
- Builder
-
getSortOrder
New value to set (between
0
and1
). A CartDiscount with a higher value will be prioritized.The sort order must be unique among all DiscountGroups and CartDiscounts.
- Returns:
- sortOrder
-
build
builds DiscountGroupSetSortOrderAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<DiscountGroupSetSortOrderAction>
- Returns:
- DiscountGroupSetSortOrderAction
-
buildUnchecked
builds DiscountGroupSetSortOrderAction without checking for non-null required values- Returns:
- DiscountGroupSetSortOrderAction
-
of
factory method for an instance of DiscountGroupSetSortOrderActionBuilder- Returns:
- builder
-
of
create builder for DiscountGroupSetSortOrderAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-