Class BusinessUnitIndexingProgressBuilder
java.lang.Object
com.commercetools.api.models.business_unit_search.BusinessUnitIndexingProgressBuilder
- All Implemented Interfaces:
Builder<BusinessUnitIndexingProgress>
public class BusinessUnitIndexingProgressBuilder
extends Object
implements Builder<BusinessUnitIndexingProgress>
BusinessUnitIndexingProgressBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BusinessUnitIndexingProgress businessUnitIndexingProgress = BusinessUnitIndexingProgress.builder()
.indexed(0.3)
.failed(0.3)
.estimatedTotal(0.3)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds BusinessUnitIndexingProgress with checking for non-null required valuesbuilds BusinessUnitIndexingProgress without checking for non-null required valuesestimatedTotal
(Integer estimatedTotal) The estimated total number of Business Units to be indexed.The number of Business Units that failed to be indexed.The estimated total number of Business Units to be indexed.The number of Business Units that failed to be indexed.The number of Business Units successfully indexed.The number of Business Units successfully indexed.of()
factory method for an instance of BusinessUnitIndexingProgressBuilderof
(BusinessUnitIndexingProgress template) create builder for BusinessUnitIndexingProgress instance
-
Constructor Details
-
BusinessUnitIndexingProgressBuilder
public BusinessUnitIndexingProgressBuilder()
-
-
Method Details
-
indexed
The number of Business Units successfully indexed.
- Parameters:
indexed
- value to be set- Returns:
- Builder
-
failed
The number of Business Units that failed to be indexed.
- Parameters:
failed
- value to be set- Returns:
- Builder
-
estimatedTotal
The estimated total number of Business Units to be indexed.
- Parameters:
estimatedTotal
- value to be set- Returns:
- Builder
-
getIndexed
The number of Business Units successfully indexed.
- Returns:
- indexed
-
getFailed
The number of Business Units that failed to be indexed.
- Returns:
- failed
-
getEstimatedTotal
The estimated total number of Business Units to be indexed.
- Returns:
- estimatedTotal
-
build
builds BusinessUnitIndexingProgress with checking for non-null required values- Specified by:
build
in interfaceBuilder<BusinessUnitIndexingProgress>
- Returns:
- BusinessUnitIndexingProgress
-
buildUnchecked
builds BusinessUnitIndexingProgress without checking for non-null required values- Returns:
- BusinessUnitIndexingProgress
-
of
factory method for an instance of BusinessUnitIndexingProgressBuilder- Returns:
- builder
-
of
create builder for BusinessUnitIndexingProgress instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-