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
Example to create an instance using the builder pattern
ProjectChangeProductSearchIndexingEnabledAction projectChangeProductSearchIndexingEnabledAction = ProjectChangeProductSearchIndexingEnabledAction.builder()
.enabled(true)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ProjectChangeProductSearchIndexingEnabledAction with checking for non-null required valuesbuilds ProjectChangeProductSearchIndexingEnabledAction without checking for non-null required valuesWhether to enable product indexing for the storefront search APIs selected bymode.Whether to enable product indexing for the storefront search APIs selected bymode.getMode()Controls whether the action should apply to Product Projection Search or to Product Search.Controls whether the action should apply to Product Projection Search or to Product Search.of()factory method for an instance of ProjectChangeProductSearchIndexingEnabledActionBuildercreate builder for ProjectChangeProductSearchIndexingEnabledAction instance
-
Constructor Details
-
ProjectChangeProductSearchIndexingEnabledActionBuilder
public ProjectChangeProductSearchIndexingEnabledActionBuilder()
-
-
Method Details
-
enabled
Whether to enable product indexing for the storefront search APIs selected by
mode.- If
true, indexing starts for the selected API and the corresponding status changes to"Indexing". After indexing finishes, the status changes to"Activated"and the selected API becomes available. - If
false, indexing stops and the selected API become unavailable. The corresponding SearchIndexingConfigurationstatuschanges to"Deactivated".
- Parameters:
enabled- value to be set- Returns:
- Builder
- If
-
mode
public ProjectChangeProductSearchIndexingEnabledActionBuilder mode(@Nullable ProductSearchIndexingMode mode) Controls whether the action should apply to Product Projection Search or to Product Search.
- Parameters:
mode- value to be set- Returns:
- Builder
-
getEnabled
Whether to enable product indexing for the storefront search APIs selected by
mode.- If
true, indexing starts for the selected API and the corresponding status changes to"Indexing". After indexing finishes, the status changes to"Activated"and the selected API becomes available. - If
false, indexing stops and the selected API become unavailable. The corresponding SearchIndexingConfigurationstatuschanges to"Deactivated".
- Returns:
- enabled
- If
-
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:
buildin interfaceBuilder<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
public static ProjectChangeProductSearchIndexingEnabledActionBuilder of(ProjectChangeProductSearchIndexingEnabledAction template) create builder for ProjectChangeProductSearchIndexingEnabledAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-