Class StoreSetProductSelectionsActionBuilder

java.lang.Object
com.commercetools.api.models.store.StoreSetProductSelectionsActionBuilder
All Implemented Interfaces:
Builder<StoreSetProductSelectionsAction>

public class StoreSetProductSelectionsActionBuilder extends Object implements Builder<StoreSetProductSelectionsAction>
StoreSetProductSelectionsActionBuilder
Example to create an instance using the builder pattern

     StoreSetProductSelectionsAction storeSetProductSelectionsAction = StoreSetProductSelectionsAction.builder()
             .build()
 
  • Constructor Details

    • StoreSetProductSelectionsActionBuilder

      public StoreSetProductSelectionsActionBuilder()
  • Method Details

    • productSelections

      public StoreSetProductSelectionsActionBuilder productSelections(@Nullable ProductSelectionSettingDraft... productSelections)

      Value to set.

      • If provided, Product Selections for which active is set to true are available in the Store.
      • If not provided or provided as empty array, the action removes all Product Selections from this Store, meaning all Products in the Project are available in this Store.
      Parameters:
      productSelections - value to be set
      Returns:
      Builder
    • productSelections

      Value to set.

      • If provided, Product Selections for which active is set to true are available in the Store.
      • If not provided or provided as empty array, the action removes all Product Selections from this Store, meaning all Products in the Project are available in this Store.
      Parameters:
      productSelections - value to be set
      Returns:
      Builder
    • plusProductSelections

      public StoreSetProductSelectionsActionBuilder plusProductSelections(@Nullable ProductSelectionSettingDraft... productSelections)

      Value to set.

      • If provided, Product Selections for which active is set to true are available in the Store.
      • If not provided or provided as empty array, the action removes all Product Selections from this Store, meaning all Products in the Project are available in this Store.
      Parameters:
      productSelections - value to be set
      Returns:
      Builder
    • plusProductSelections

      Value to set.

      • If provided, Product Selections for which active is set to true are available in the Store.
      • If not provided or provided as empty array, the action removes all Product Selections from this Store, meaning all Products in the Project are available in this Store.
      Parameters:
      builder - function to build the productSelections value
      Returns:
      Builder
    • withProductSelections

      Value to set.

      • If provided, Product Selections for which active is set to true are available in the Store.
      • If not provided or provided as empty array, the action removes all Product Selections from this Store, meaning all Products in the Project are available in this Store.
      Parameters:
      builder - function to build the productSelections value
      Returns:
      Builder
    • addProductSelections

      Value to set.

      • If provided, Product Selections for which active is set to true are available in the Store.
      • If not provided or provided as empty array, the action removes all Product Selections from this Store, meaning all Products in the Project are available in this Store.
      Parameters:
      builder - function to build the productSelections value
      Returns:
      Builder
    • setProductSelections

      Value to set.

      • If provided, Product Selections for which active is set to true are available in the Store.
      • If not provided or provided as empty array, the action removes all Product Selections from this Store, meaning all Products in the Project are available in this Store.
      Parameters:
      builder - function to build the productSelections value
      Returns:
      Builder
    • getProductSelections

      @Nullable public List<ProductSelectionSettingDraft> getProductSelections()

      Value to set.

      • If provided, Product Selections for which active is set to true are available in the Store.
      • If not provided or provided as empty array, the action removes all Product Selections from this Store, meaning all Products in the Project are available in this Store.
      Returns:
      productSelections
    • build

      builds StoreSetProductSelectionsAction with checking for non-null required values
      Specified by:
      build in interface Builder<StoreSetProductSelectionsAction>
      Returns:
      StoreSetProductSelectionsAction
    • buildUnchecked

      public StoreSetProductSelectionsAction buildUnchecked()
      builds StoreSetProductSelectionsAction without checking for non-null required values
      Returns:
      StoreSetProductSelectionsAction
    • of

      factory method for an instance of StoreSetProductSelectionsActionBuilder
      Returns:
      builder
    • of

      create builder for StoreSetProductSelectionsAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder