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
sortOrdervalue of the DiscountGroup after the Set SortOrder update action.- Parameters:
sortOrder- value to be set- Returns:
- Builder
-
oldSortOrder
sortOrdervalue of the DiscountGroup before the Set SortOrder update action.- Parameters:
oldSortOrder- value to be set- Returns:
- Builder
-
getSortOrder
sortOrdervalue of the DiscountGroup after the Set SortOrder update action.- Returns:
- sortOrder
-
getOldSortOrder
sortOrdervalue of the DiscountGroup before the Set SortOrder update action.- Returns:
- oldSortOrder
-
build
builds DiscountGroupSortOrderSetMessagePayload with checking for non-null required values- Specified by:
buildin 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
-