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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProjectChangeProductSearchIndexingEnabledAction with checking for non-null required valuesbuilds ProjectChangeProductSearchIndexingEnabledAction without checking for non-null required valuesIffalse
, 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.Iffalse
, 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.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
- 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 SearchIndexingConfigurationstatus
forproducts
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 SearchIndexingConfigurationstatus
forproducts
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
- 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
- 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 SearchIndexingConfigurationstatus
forproducts
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 SearchIndexingConfigurationstatus
forproducts
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
- 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:
build
in 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
-