Class DiscountGroupSetKeyActionBuilder
java.lang.Object
com.commercetools.api.models.discount_group.DiscountGroupSetKeyActionBuilder
- All Implemented Interfaces:
Builder<DiscountGroupSetKeyAction>
public class DiscountGroupSetKeyActionBuilder
extends Object
implements Builder<DiscountGroupSetKeyAction>
DiscountGroupSetKeyActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DiscountGroupSetKeyAction discountGroupSetKeyAction = DiscountGroupSetKeyAction.builder()
.key("{key}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds DiscountGroupSetKeyAction with checking for non-null required valuesbuilds DiscountGroupSetKeyAction without checking for non-null required valuesgetKey()
New value to set.New value to set.of()
factory method for an instance of DiscountGroupSetKeyActionBuilderof
(DiscountGroupSetKeyAction template) create builder for DiscountGroupSetKeyAction instance
-
Constructor Details
-
DiscountGroupSetKeyActionBuilder
public DiscountGroupSetKeyActionBuilder()
-
-
Method Details
-
key
New value to set.
- Parameters:
key
- value to be set- Returns:
- Builder
-
getKey
New value to set.
- Returns:
- key
-
build
builds DiscountGroupSetKeyAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<DiscountGroupSetKeyAction>
- Returns:
- DiscountGroupSetKeyAction
-
buildUnchecked
builds DiscountGroupSetKeyAction without checking for non-null required values- Returns:
- DiscountGroupSetKeyAction
-
of
factory method for an instance of DiscountGroupSetKeyActionBuilder- Returns:
- builder
-
of
create builder for DiscountGroupSetKeyAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-