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

     CustomerIndexingProgress customerIndexingProgress = CustomerIndexingProgress.builder()
             .indexed(0.3)
             .failed(0.3)
             .estimatedTotal(0.3)
             .build()
 
  • Constructor Details

    • CustomerIndexingProgressBuilder

      public CustomerIndexingProgressBuilder()
  • Method Details

    • indexed

      public CustomerIndexingProgressBuilder indexed(Integer indexed)

      The number of Customers successfully indexed.

      Parameters:
      indexed - value to be set
      Returns:
      Builder
    • failed

      public CustomerIndexingProgressBuilder failed(Integer failed)

      The number of Customers that failed to be indexed.

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

      public CustomerIndexingProgressBuilder estimatedTotal(Integer estimatedTotal)

      The estimated total number of Customers to be indexed.

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

      public Integer getIndexed()

      The number of Customers successfully indexed.

      Returns:
      indexed
    • getFailed

      public Integer getFailed()

      The number of Customers that failed to be indexed.

      Returns:
      failed
    • getEstimatedTotal

      public Integer getEstimatedTotal()

      The estimated total number of Customers to be indexed.

      Returns:
      estimatedTotal
    • build

      public CustomerIndexingProgress build()
      builds CustomerIndexingProgress with checking for non-null required values
      Specified by:
      build in interface Builder<CustomerIndexingProgress>
      Returns:
      CustomerIndexingProgress
    • buildUnchecked

      public CustomerIndexingProgress buildUnchecked()
      builds CustomerIndexingProgress without checking for non-null required values
      Returns:
      CustomerIndexingProgress
    • of

      public static CustomerIndexingProgressBuilder 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