Class ShoppingListsConfigurationBuilder
java.lang.Object
com.commercetools.api.models.project.ShoppingListsConfigurationBuilder
- All Implemented Interfaces:
Builder<ShoppingListsConfiguration>
public class ShoppingListsConfigurationBuilder
extends Object
implements Builder<ShoppingListsConfiguration>
ShoppingListsConfigurationBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShoppingListsConfiguration shoppingListsConfiguration = ShoppingListsConfiguration.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ShoppingListsConfiguration with checking for non-null required valuesbuilds ShoppingListsConfiguration without checking for non-null required valuesdeleteDaysAfterLastModification
(Long deleteDaysAfterLastModification) Default value for thedeleteDaysAfterLastModification
parameter of the ShoppingListDraft.Default value for thedeleteDaysAfterLastModification
parameter of the ShoppingListDraft.of()
factory method for an instance of ShoppingListsConfigurationBuilderof
(ShoppingListsConfiguration template) create builder for ShoppingListsConfiguration instance
-
Constructor Details
-
ShoppingListsConfigurationBuilder
public ShoppingListsConfigurationBuilder()
-
-
Method Details
-
deleteDaysAfterLastModification
public ShoppingListsConfigurationBuilder deleteDaysAfterLastModification(@Nullable Long deleteDaysAfterLastModification) Default value for the
deleteDaysAfterLastModification
parameter of the ShoppingListDraft. This field may not be present on Projects created before January 2020.- Parameters:
deleteDaysAfterLastModification
- value to be set- Returns:
- Builder
-
getDeleteDaysAfterLastModification
Default value for the
deleteDaysAfterLastModification
parameter of the ShoppingListDraft. This field may not be present on Projects created before January 2020.- Returns:
- deleteDaysAfterLastModification
-
build
builds ShoppingListsConfiguration with checking for non-null required values- Specified by:
build
in interfaceBuilder<ShoppingListsConfiguration>
- Returns:
- ShoppingListsConfiguration
-
buildUnchecked
builds ShoppingListsConfiguration without checking for non-null required values- Returns:
- ShoppingListsConfiguration
-
of
factory method for an instance of ShoppingListsConfigurationBuilder- Returns:
- builder
-
of
create builder for ShoppingListsConfiguration instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-