Class SubscriptionSetChangesActionBuilder
java.lang.Object
com.commercetools.api.models.subscription.SubscriptionSetChangesActionBuilder
- All Implemented Interfaces:
Builder<SubscriptionSetChangesAction>
public class SubscriptionSetChangesActionBuilder
extends Object
implements Builder<SubscriptionSetChangesAction>
SubscriptionSetChangesActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SubscriptionSetChangesAction subscriptionSetChangesAction = SubscriptionSetChangesAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionValue to set.build()
builds SubscriptionSetChangesAction with checking for non-null required valuesbuilds SubscriptionSetChangesAction without checking for non-null required valueschanges
(ChangeSubscription... changes) Value to set.changes
(List<ChangeSubscription> changes) Value to set.Value to set.of()
factory method for an instance of SubscriptionSetChangesActionBuilderof
(SubscriptionSetChangesAction template) create builder for SubscriptionSetChangesAction instanceplusChanges
(ChangeSubscription... changes) Value to set.Value to set.Value to set.Value to set.
-
Constructor Details
-
SubscriptionSetChangesActionBuilder
public SubscriptionSetChangesActionBuilder()
-
-
Method Details
-
changes
Value to set. Can only be unset if
messages
is set.- Parameters:
changes
- value to be set- Returns:
- Builder
-
changes
Value to set. Can only be unset if
messages
is set.- Parameters:
changes
- value to be set- Returns:
- Builder
-
plusChanges
Value to set. Can only be unset if
messages
is set.- Parameters:
changes
- value to be set- Returns:
- Builder
-
plusChanges
public SubscriptionSetChangesActionBuilder plusChanges(Function<ChangeSubscriptionBuilder, ChangeSubscriptionBuilder> builder) Value to set. Can only be unset if
messages
is set.- Parameters:
builder
- function to build the changes value- Returns:
- Builder
-
withChanges
public SubscriptionSetChangesActionBuilder withChanges(Function<ChangeSubscriptionBuilder, ChangeSubscriptionBuilder> builder) Value to set. Can only be unset if
messages
is set.- Parameters:
builder
- function to build the changes value- Returns:
- Builder
-
addChanges
public SubscriptionSetChangesActionBuilder addChanges(Function<ChangeSubscriptionBuilder, ChangeSubscription> builder) Value to set. Can only be unset if
messages
is set.- Parameters:
builder
- function to build the changes value- Returns:
- Builder
-
setChanges
public SubscriptionSetChangesActionBuilder setChanges(Function<ChangeSubscriptionBuilder, ChangeSubscription> builder) Value to set. Can only be unset if
messages
is set.- Parameters:
builder
- function to build the changes value- Returns:
- Builder
-
getChanges
Value to set. Can only be unset if
messages
is set.- Returns:
- changes
-
build
builds SubscriptionSetChangesAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<SubscriptionSetChangesAction>
- Returns:
- SubscriptionSetChangesAction
-
buildUnchecked
builds SubscriptionSetChangesAction without checking for non-null required values- Returns:
- SubscriptionSetChangesAction
-
of
factory method for an instance of SubscriptionSetChangesActionBuilder- Returns:
- builder
-
of
create builder for SubscriptionSetChangesAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-