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