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