Class ProjectChangeCartsConfigurationActionBuilder
java.lang.Object
com.commercetools.api.models.project.ProjectChangeCartsConfigurationActionBuilder
- All Implemented Interfaces:
Builder<ProjectChangeCartsConfigurationAction>
public class ProjectChangeCartsConfigurationActionBuilder
extends Object
implements Builder<ProjectChangeCartsConfigurationAction>
ProjectChangeCartsConfigurationActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProjectChangeCartsConfigurationAction projectChangeCartsConfigurationAction = ProjectChangeCartsConfigurationAction.builder()
.cartsConfiguration(cartsConfigurationBuilder -> cartsConfigurationBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProjectChangeCartsConfigurationAction with checking for non-null required valuesbuilds ProjectChangeCartsConfigurationAction without checking for non-null required valuescartsConfiguration
(CartsConfiguration cartsConfiguration) Configuration for the Carts feature.Configuration for the Carts feature.Configuration for the Carts feature.of()
factory method for an instance of ProjectChangeCartsConfigurationActionBuilderof
(ProjectChangeCartsConfigurationAction template) create builder for ProjectChangeCartsConfigurationAction instanceConfiguration for the Carts feature.
-
Constructor Details
-
ProjectChangeCartsConfigurationActionBuilder
public ProjectChangeCartsConfigurationActionBuilder()
-
-
Method Details
-
cartsConfiguration
public ProjectChangeCartsConfigurationActionBuilder cartsConfiguration(Function<CartsConfigurationBuilder, CartsConfigurationBuilder> builder) Configuration for the Carts feature.
- Parameters:
builder
- function to build the cartsConfiguration value- Returns:
- Builder
-
withCartsConfiguration
public ProjectChangeCartsConfigurationActionBuilder withCartsConfiguration(Function<CartsConfigurationBuilder, CartsConfiguration> builder) Configuration for the Carts feature.
- Parameters:
builder
- function to build the cartsConfiguration value- Returns:
- Builder
-
cartsConfiguration
public ProjectChangeCartsConfigurationActionBuilder cartsConfiguration(CartsConfiguration cartsConfiguration) Configuration for the Carts feature.
- Parameters:
cartsConfiguration
- value to be set- Returns:
- Builder
-
getCartsConfiguration
Configuration for the Carts feature.
- Returns:
- cartsConfiguration
-
build
builds ProjectChangeCartsConfigurationAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProjectChangeCartsConfigurationAction>
- Returns:
- ProjectChangeCartsConfigurationAction
-
buildUnchecked
builds ProjectChangeCartsConfigurationAction without checking for non-null required values- Returns:
- ProjectChangeCartsConfigurationAction
-
of
factory method for an instance of ProjectChangeCartsConfigurationActionBuilder- Returns:
- builder
-
of
public static ProjectChangeCartsConfigurationActionBuilder of(ProjectChangeCartsConfigurationAction template) create builder for ProjectChangeCartsConfigurationAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-