Class SubscriptionSetMessagesActionBuilder
java.lang.Object
com.commercetools.api.models.subscription.SubscriptionSetMessagesActionBuilder
- All Implemented Interfaces:
Builder<SubscriptionSetMessagesAction>
public class SubscriptionSetMessagesActionBuilder
extends Object
implements Builder<SubscriptionSetMessagesAction>
SubscriptionSetMessagesActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SubscriptionSetMessagesAction subscriptionSetMessagesAction = SubscriptionSetMessagesAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionValue to set.build()
builds SubscriptionSetMessagesAction with checking for non-null required valuesbuilds SubscriptionSetMessagesAction without checking for non-null required valuesValue to set.messages
(MessageSubscription... messages) Value to set.messages
(List<MessageSubscription> messages) Value to set.of()
factory method for an instance of SubscriptionSetMessagesActionBuilderof
(SubscriptionSetMessagesAction template) create builder for SubscriptionSetMessagesAction instanceplusMessages
(MessageSubscription... messages) Value to set.Value to set.Value to set.Value to set.
-
Constructor Details
-
SubscriptionSetMessagesActionBuilder
public SubscriptionSetMessagesActionBuilder()
-
-
Method Details
-
messages
Value to set. Can only be unset if
changes
is set.- Parameters:
messages
- value to be set- Returns:
- Builder
-
messages
Value to set. Can only be unset if
changes
is set.- Parameters:
messages
- value to be set- Returns:
- Builder
-
plusMessages
Value to set. Can only be unset if
changes
is set.- Parameters:
messages
- value to be set- Returns:
- Builder
-
plusMessages
public SubscriptionSetMessagesActionBuilder plusMessages(Function<MessageSubscriptionBuilder, MessageSubscriptionBuilder> builder) Value to set. Can only be unset if
changes
is set.- Parameters:
builder
- function to build the messages value- Returns:
- Builder
-
withMessages
public SubscriptionSetMessagesActionBuilder withMessages(Function<MessageSubscriptionBuilder, MessageSubscriptionBuilder> builder) Value to set. Can only be unset if
changes
is set.- Parameters:
builder
- function to build the messages value- Returns:
- Builder
-
addMessages
public SubscriptionSetMessagesActionBuilder addMessages(Function<MessageSubscriptionBuilder, MessageSubscription> builder) Value to set. Can only be unset if
changes
is set.- Parameters:
builder
- function to build the messages value- Returns:
- Builder
-
setMessages
public SubscriptionSetMessagesActionBuilder setMessages(Function<MessageSubscriptionBuilder, MessageSubscription> builder) Value to set. Can only be unset if
changes
is set.- Parameters:
builder
- function to build the messages value- Returns:
- Builder
-
getMessages
Value to set. Can only be unset if
changes
is set.- Returns:
- messages
-
build
builds SubscriptionSetMessagesAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<SubscriptionSetMessagesAction>
- Returns:
- SubscriptionSetMessagesAction
-
buildUnchecked
builds SubscriptionSetMessagesAction without checking for non-null required values- Returns:
- SubscriptionSetMessagesAction
-
of
factory method for an instance of SubscriptionSetMessagesActionBuilder- Returns:
- builder
-
of
create builder for SubscriptionSetMessagesAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-