Class SubscriptionSetKeyActionBuilder
java.lang.Object
com.commercetools.api.models.subscription.SubscriptionSetKeyActionBuilder
- All Implemented Interfaces:
Builder<SubscriptionSetKeyAction>
public class SubscriptionSetKeyActionBuilder
extends Object
implements Builder<SubscriptionSetKeyAction>
SubscriptionSetKeyActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SubscriptionSetKeyAction subscriptionSetKeyAction = SubscriptionSetKeyAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds SubscriptionSetKeyAction with checking for non-null required valuesbuilds SubscriptionSetKeyAction without checking for non-null required valuesgetKey()
Value to set.Value to set.of()
factory method for an instance of SubscriptionSetKeyActionBuilderof
(SubscriptionSetKeyAction template) create builder for SubscriptionSetKeyAction instance
-
Constructor Details
-
SubscriptionSetKeyActionBuilder
public SubscriptionSetKeyActionBuilder()
-
-
Method Details
-
key
Value to set. If empty, any existing value will be removed.
- Parameters:
key
- value to be set- Returns:
- Builder
-
getKey
Value to set. If empty, any existing value will be removed.
- Returns:
- key
-
build
builds SubscriptionSetKeyAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<SubscriptionSetKeyAction>
- Returns:
- SubscriptionSetKeyAction
-
buildUnchecked
builds SubscriptionSetKeyAction without checking for non-null required values- Returns:
- SubscriptionSetKeyAction
-
of
factory method for an instance of SubscriptionSetKeyActionBuilder- Returns:
- builder
-
of
create builder for SubscriptionSetKeyAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-