Class ExtensionChangeDestinationActionBuilder
java.lang.Object
com.commercetools.api.models.extension.ExtensionChangeDestinationActionBuilder
- All Implemented Interfaces:
Builder<ExtensionChangeDestinationAction>
public class ExtensionChangeDestinationActionBuilder
extends Object
implements Builder<ExtensionChangeDestinationAction>
ExtensionChangeDestinationActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ExtensionChangeDestinationAction extensionChangeDestinationAction = ExtensionChangeDestinationAction.builder()
.destination(destinationBuilder -> destinationBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ExtensionChangeDestinationAction with checking for non-null required valuesbuilds ExtensionChangeDestinationAction without checking for non-null required valuesdestination
(ExtensionDestination destination) New value to set.destination
(Function<ExtensionDestinationBuilder, Builder<? extends ExtensionDestination>> builder) New value to set.New value to set.of()
factory method for an instance of ExtensionChangeDestinationActionBuilderof
(ExtensionChangeDestinationAction template) create builder for ExtensionChangeDestinationAction instance
-
Constructor Details
-
ExtensionChangeDestinationActionBuilder
public ExtensionChangeDestinationActionBuilder()
-
-
Method Details
-
destination
New value to set. Must not be empty.
- Parameters:
destination
- value to be set- Returns:
- Builder
-
destination
public ExtensionChangeDestinationActionBuilder destination(Function<ExtensionDestinationBuilder, Builder<? extends ExtensionDestination>> 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 ExtensionChangeDestinationAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ExtensionChangeDestinationAction>
- Returns:
- ExtensionChangeDestinationAction
-
buildUnchecked
builds ExtensionChangeDestinationAction without checking for non-null required values- Returns:
- ExtensionChangeDestinationAction
-
of
factory method for an instance of ExtensionChangeDestinationActionBuilder- Returns:
- builder
-
of
create builder for ExtensionChangeDestinationAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-