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

     ShoppingListsConfiguration shoppingListsConfiguration = ShoppingListsConfiguration.builder()
             .build()
 
  • 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

      @Nullable public Long 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 interface Builder<ShoppingListsConfiguration>
      Returns:
      ShoppingListsConfiguration
    • buildUnchecked

      public 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