Class SubscriptionChangeDestinationActionBuilder
java.lang.Object
com.commercetools.api.models.subscription.SubscriptionChangeDestinationActionBuilder
- All Implemented Interfaces:
Builder<SubscriptionChangeDestinationAction>
public class SubscriptionChangeDestinationActionBuilder
extends Object
implements Builder<SubscriptionChangeDestinationAction>
SubscriptionChangeDestinationActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SubscriptionChangeDestinationAction subscriptionChangeDestinationAction = SubscriptionChangeDestinationAction.builder()
.destination(destinationBuilder -> destinationBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds SubscriptionChangeDestinationAction with checking for non-null required valuesbuilds SubscriptionChangeDestinationAction without checking for non-null required valuesdestination
(Destination destination) New value to set.destination
(Function<DestinationBuilder, Builder<? extends Destination>> builder) New value to set.New value to set.of()
factory method for an instance of SubscriptionChangeDestinationActionBuilderof
(SubscriptionChangeDestinationAction template) create builder for SubscriptionChangeDestinationAction instance
-
Constructor Details
-
SubscriptionChangeDestinationActionBuilder
public SubscriptionChangeDestinationActionBuilder()
-
-
Method Details
-
destination
New value to set. Must not be empty.
- Parameters:
destination
- value to be set- Returns:
- Builder
-
destination
public SubscriptionChangeDestinationActionBuilder destination(Function<DestinationBuilder, Builder<? extends Destination>> builder) New value to set. Must not be empty.
- Parameters:
builder
- function to build the destination value- Returns:
- Builder
-
getDestination
New value to set. Must not be empty.
- Returns:
- destination
-
build
builds SubscriptionChangeDestinationAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<SubscriptionChangeDestinationAction>
- Returns:
- SubscriptionChangeDestinationAction
-
buildUnchecked
builds SubscriptionChangeDestinationAction without checking for non-null required values- Returns:
- SubscriptionChangeDestinationAction
-
of
factory method for an instance of SubscriptionChangeDestinationActionBuilder- Returns:
- builder
-
of
public static SubscriptionChangeDestinationActionBuilder of(SubscriptionChangeDestinationAction template) create builder for SubscriptionChangeDestinationAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-