Class DiscountGroupSortOrderSetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.DiscountGroupSortOrderSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<DiscountGroupSortOrderSetMessagePayload>
public class DiscountGroupSortOrderSetMessagePayloadBuilder
extends Object
implements Builder<DiscountGroupSortOrderSetMessagePayload>
DiscountGroupSortOrderSetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DiscountGroupSortOrderSetMessagePayload discountGroupSortOrderSetMessagePayload = DiscountGroupSortOrderSetMessagePayload.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds DiscountGroupSortOrderSetMessagePayload with checking for non-null required valuesbuilds DiscountGroupSortOrderSetMessagePayload without checking for non-null required valuesof()
factory method for an instance of DiscountGroupSortOrderSetMessagePayloadBuilderof
(DiscountGroupSortOrderSetMessagePayload template) create builder for DiscountGroupSortOrderSetMessagePayload instanceoldSortOrder
(String oldSortOrder)
-
Constructor Details
-
DiscountGroupSortOrderSetMessagePayloadBuilder
public DiscountGroupSortOrderSetMessagePayloadBuilder()
-
-
Method Details
-
sortOrder
sortOrder
value of the DiscountGroup after the Set SortOrder update action.- Parameters:
sortOrder
- value to be set- Returns:
- Builder
-
oldSortOrder
sortOrder
value of the DiscountGroup before the Set SortOrder update action.- Parameters:
oldSortOrder
- value to be set- Returns:
- Builder
-
getSortOrder
sortOrder
value of the DiscountGroup after the Set SortOrder update action.- Returns:
- sortOrder
-
getOldSortOrder
sortOrder
value of the DiscountGroup before the Set SortOrder update action.- Returns:
- oldSortOrder
-
build
builds DiscountGroupSortOrderSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<DiscountGroupSortOrderSetMessagePayload>
- Returns:
- DiscountGroupSortOrderSetMessagePayload
-
buildUnchecked
builds DiscountGroupSortOrderSetMessagePayload without checking for non-null required values- Returns:
- DiscountGroupSortOrderSetMessagePayload
-
of
factory method for an instance of DiscountGroupSortOrderSetMessagePayloadBuilder- Returns:
- builder
-
of
public static DiscountGroupSortOrderSetMessagePayloadBuilder of(DiscountGroupSortOrderSetMessagePayload template) create builder for DiscountGroupSortOrderSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-