Class OperationStatesBuilder

java.lang.Object
com.commercetools.importapi.models.importsummaries.OperationStatesBuilder
All Implemented Interfaces:
Builder<OperationStates>

public class OperationStatesBuilder extends Object implements Builder<OperationStates>
OperationStatesBuilder
Example to create an instance using the builder pattern

     OperationStates operationStates = OperationStates.builder()
             .processing(1)
             .validationFailed(1)
             .unresolved(1)
             .waitForMasterVariant(1)
             .imported(1)
             .rejected(1)
             .canceled(1)
             .build()
 
  • Constructor Details

    • OperationStatesBuilder

      public OperationStatesBuilder()
  • Method Details

    • processing

      public OperationStatesBuilder processing(Long processing)

      The number of resources in the processing state.

      Parameters:
      processing - value to be set
      Returns:
      Builder
    • validationFailed

      public OperationStatesBuilder validationFailed(Long validationFailed)

      The number of resources in the validationFailed state.

      Parameters:
      validationFailed - value to be set
      Returns:
      Builder
    • unresolved

      public OperationStatesBuilder unresolved(Long unresolved)

      The number of resources in the unresolved state.

      Parameters:
      unresolved - value to be set
      Returns:
      Builder
    • waitForMasterVariant

      public OperationStatesBuilder waitForMasterVariant(Long waitForMasterVariant)

      The number of resources in the waitForMasterVariant state.

      Parameters:
      waitForMasterVariant - value to be set
      Returns:
      Builder
    • imported

      public OperationStatesBuilder imported(Long imported)

      The number of resources in the imported state.

      Parameters:
      imported - value to be set
      Returns:
      Builder
    • rejected

      public OperationStatesBuilder rejected(Long rejected)

      The number of resources in the rejected state.

      Parameters:
      rejected - value to be set
      Returns:
      Builder
    • canceled

      public OperationStatesBuilder canceled(Long canceled)

      The number of resources in the canceled state.

      Parameters:
      canceled - value to be set
      Returns:
      Builder
    • getProcessing

      public Long getProcessing()

      The number of resources in the processing state.

      Returns:
      processing
    • getValidationFailed

      public Long getValidationFailed()

      The number of resources in the validationFailed state.

      Returns:
      validationFailed
    • getUnresolved

      public Long getUnresolved()

      The number of resources in the unresolved state.

      Returns:
      unresolved
    • getWaitForMasterVariant

      public Long getWaitForMasterVariant()

      The number of resources in the waitForMasterVariant state.

      Returns:
      waitForMasterVariant
    • getImported

      public Long getImported()

      The number of resources in the imported state.

      Returns:
      imported
    • getRejected

      public Long getRejected()

      The number of resources in the rejected state.

      Returns:
      rejected
    • getCanceled

      public Long getCanceled()

      The number of resources in the canceled state.

      Returns:
      canceled
    • build

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

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

      public static OperationStatesBuilder of()
      factory method for an instance of OperationStatesBuilder
      Returns:
      builder
    • of

      public static OperationStatesBuilder of(OperationStates template)
      create builder for OperationStates instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder