Class StagedOrderAddDiscountCodeActionBuilder
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderAddDiscountCodeActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderAddDiscountCodeAction>
public class StagedOrderAddDiscountCodeActionBuilder
extends Object
implements Builder<StagedOrderAddDiscountCodeAction>
StagedOrderAddDiscountCodeActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderAddDiscountCodeAction stagedOrderAddDiscountCodeAction = StagedOrderAddDiscountCodeAction.builder()
.code("{code}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedOrderAddDiscountCodeAction with checking for non-null required valuesbuilds StagedOrderAddDiscountCodeAction without checking for non-null required valuescode
of a DiscountCode.getCode()
code
of a DiscountCode.of()
factory method for an instance of StagedOrderAddDiscountCodeActionBuilderof
(StagedOrderAddDiscountCodeAction template) create builder for StagedOrderAddDiscountCodeAction instance
-
Constructor Details
-
StagedOrderAddDiscountCodeActionBuilder
public StagedOrderAddDiscountCodeActionBuilder()
-
-
Method Details
-
code
code
of a DiscountCode.- Parameters:
code
- value to be set- Returns:
- Builder
-
getCode
code
of a DiscountCode.- Returns:
- code
-
build
builds StagedOrderAddDiscountCodeAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StagedOrderAddDiscountCodeAction>
- Returns:
- StagedOrderAddDiscountCodeAction
-
buildUnchecked
builds StagedOrderAddDiscountCodeAction without checking for non-null required values- Returns:
- StagedOrderAddDiscountCodeAction
-
of
factory method for an instance of StagedOrderAddDiscountCodeActionBuilder- Returns:
- builder
-
of
create builder for StagedOrderAddDiscountCodeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-