Class StagedOrderAddDiscountCodeActionBuilder
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderAddDiscountCodeActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<StagedOrderAddDiscountCodeAction>
public class StagedOrderAddDiscountCodeActionBuilder
extends Object
implements io.vrap.rmf.base.client.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 valuesset the value to the codegetCode()
value of code}of()
factory method for an instance of StagedOrderAddDiscountCodeActionBuilderof
(StagedOrderAddDiscountCodeAction template) create builder for StagedOrderAddDiscountCodeAction instance
-
Constructor Details
-
StagedOrderAddDiscountCodeActionBuilder
-
-
Method Details
-
code
set the value to the code- Parameters:
code
- value to be set- Returns:
- Builder
-
getCode
value of code}- Returns:
- code
-
build
builds StagedOrderAddDiscountCodeAction with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<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
-