Class ExtensionChangeTriggersActionBuilder
java.lang.Object
com.commercetools.api.models.extension.ExtensionChangeTriggersActionBuilder
- All Implemented Interfaces:
Builder<ExtensionChangeTriggersAction>
public class ExtensionChangeTriggersActionBuilder
extends Object
implements Builder<ExtensionChangeTriggersAction>
ExtensionChangeTriggersActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ExtensionChangeTriggersAction extensionChangeTriggersAction = ExtensionChangeTriggersAction.builder()
.plusTriggers(triggersBuilder -> triggersBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionNew value to set.build()
builds ExtensionChangeTriggersAction with checking for non-null required valuesbuilds ExtensionChangeTriggersAction without checking for non-null required valuesNew value to set.of()
factory method for an instance of ExtensionChangeTriggersActionBuilderof
(ExtensionChangeTriggersAction template) create builder for ExtensionChangeTriggersAction instanceplusTriggers
(ExtensionTrigger... triggers) New value to set.New value to set.New value to set.triggers
(ExtensionTrigger... triggers) New value to set.triggers
(List<ExtensionTrigger> triggers) New value to set.New value to set.
-
Constructor Details
-
ExtensionChangeTriggersActionBuilder
public ExtensionChangeTriggersActionBuilder()
-
-
Method Details
-
triggers
New value to set. Must not be empty.
- Parameters:
triggers
- value to be set- Returns:
- Builder
-
triggers
New value to set. Must not be empty.
- Parameters:
triggers
- value to be set- Returns:
- Builder
-
plusTriggers
New value to set. Must not be empty.
- Parameters:
triggers
- value to be set- Returns:
- Builder
-
plusTriggers
public ExtensionChangeTriggersActionBuilder plusTriggers(Function<ExtensionTriggerBuilder, ExtensionTriggerBuilder> builder) New value to set. Must not be empty.
- Parameters:
builder
- function to build the triggers value- Returns:
- Builder
-
withTriggers
public ExtensionChangeTriggersActionBuilder withTriggers(Function<ExtensionTriggerBuilder, ExtensionTriggerBuilder> builder) New value to set. Must not be empty.
- Parameters:
builder
- function to build the triggers value- Returns:
- Builder
-
addTriggers
public ExtensionChangeTriggersActionBuilder addTriggers(Function<ExtensionTriggerBuilder, ExtensionTrigger> builder) New value to set. Must not be empty.
- Parameters:
builder
- function to build the triggers value- Returns:
- Builder
-
setTriggers
public ExtensionChangeTriggersActionBuilder setTriggers(Function<ExtensionTriggerBuilder, ExtensionTrigger> builder) New value to set. Must not be empty.
- Parameters:
builder
- function to build the triggers value- Returns:
- Builder
-
getTriggers
New value to set. Must not be empty.
- Returns:
- triggers
-
build
builds ExtensionChangeTriggersAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ExtensionChangeTriggersAction>
- Returns:
- ExtensionChangeTriggersAction
-
buildUnchecked
builds ExtensionChangeTriggersAction without checking for non-null required values- Returns:
- ExtensionChangeTriggersAction
-
of
factory method for an instance of ExtensionChangeTriggersActionBuilder- Returns:
- builder
-
of
create builder for ExtensionChangeTriggersAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-