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

     BusinessUnitIndexingProgress businessUnitIndexingProgress = BusinessUnitIndexingProgress.builder()
             .indexed(0.3)
             .failed(0.3)
             .estimatedTotal(0.3)
             .build()
 
  • Constructor Details

    • BusinessUnitIndexingProgressBuilder

      public BusinessUnitIndexingProgressBuilder()
  • Method Details

    • indexed

      public BusinessUnitIndexingProgressBuilder indexed(Integer 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

      public BusinessUnitIndexingProgressBuilder estimatedTotal(Integer estimatedTotal)

      The estimated total number of Business Units to be indexed.

      Parameters:
      estimatedTotal - value to be set
      Returns:
      Builder
    • getIndexed

      public Integer getIndexed()

      The number of Business Units successfully indexed.

      Returns:
      indexed
    • getFailed

      public Integer getFailed()

      The number of Business Units that failed to be indexed.

      Returns:
      failed
    • getEstimatedTotal

      public Integer 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 interface Builder<BusinessUnitIndexingProgress>
      Returns:
      BusinessUnitIndexingProgress
    • buildUnchecked

      public 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