Class ProjectChangeProductSearchIndexingEnabledActionBuilder

java.lang.Object
com.commercetools.api.models.project.ProjectChangeProductSearchIndexingEnabledActionBuilder
All Implemented Interfaces:
Builder<ProjectChangeProductSearchIndexingEnabledAction>

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

     ProjectChangeProductSearchIndexingEnabledAction projectChangeProductSearchIndexingEnabledAction = ProjectChangeProductSearchIndexingEnabledAction.builder()
             .enabled(true)
             .build()
 
  • Constructor Details

    • ProjectChangeProductSearchIndexingEnabledActionBuilder

      public ProjectChangeProductSearchIndexingEnabledActionBuilder()
  • Method Details

    • enabled

      • If false, the indexing of Product information will stop and the Product Projection Search as well as the Product Suggestions endpoint will not be available anymore for this Project. The Project's SearchIndexingConfiguration status for products will be changed to "Deactivated".
      • If true, the indexing of Product information will start and the Product Projection Search as well as the Product Suggestions endpoint will become available soon after for this Project. Proportional to the amount of information being indexed, the Project's SearchIndexingConfiguration status for products will be shown as "Indexing" during this time. As soon as the indexing has finished, the configuration status will be changed to "Activated" making the aforementioned endpoints fully available for this Project.
      Parameters:
      enabled - value to be set
      Returns:
      Builder
    • mode

      Controls whether the action should apply to Product Projection Search or to Product Search.

      Parameters:
      mode - value to be set
      Returns:
      Builder
    • getEnabled

      public Boolean getEnabled()
      • If false, the indexing of Product information will stop and the Product Projection Search as well as the Product Suggestions endpoint will not be available anymore for this Project. The Project's SearchIndexingConfiguration status for products will be changed to "Deactivated".
      • If true, the indexing of Product information will start and the Product Projection Search as well as the Product Suggestions endpoint will become available soon after for this Project. Proportional to the amount of information being indexed, the Project's SearchIndexingConfiguration status for products will be shown as "Indexing" during this time. As soon as the indexing has finished, the configuration status will be changed to "Activated" making the aforementioned endpoints fully available for this Project.
      Returns:
      enabled
    • getMode

      Controls whether the action should apply to Product Projection Search or to Product Search.

      Returns:
      mode
    • build

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

      builds ProjectChangeProductSearchIndexingEnabledAction without checking for non-null required values
      Returns:
      ProjectChangeProductSearchIndexingEnabledAction
    • of

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

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