Interface ImportResponse


public interface ImportResponse

A list of the ID's and validation statuses of newly created ImportOperations. Used as a response at each resource-specific import endpoint, for example, at Import Categories and Import ProductTypes.


Example to create an instance using the builder pattern

     ImportResponse importResponse = ImportResponse.builder()
             .plusOperationStatus(operationStatusBuilder -> operationStatusBuilder)
             .build()
 
  • Method Details

    • getOperationStatus

      @NotNull @Valid @NotNull @Valid List<ImportOperationStatus> getOperationStatus()
      Returns:
      operationStatus
    • setOperationStatus

      void setOperationStatus(ImportOperationStatus... operationStatus)
      set operationStatus
      Parameters:
      operationStatus - values to be set
    • setOperationStatus

      void setOperationStatus(List<ImportOperationStatus> operationStatus)
      set operationStatus
      Parameters:
      operationStatus - values to be set
    • of

      static ImportResponse of()
      factory method
      Returns:
      instance of ImportResponse
    • of

      static ImportResponse of(ImportResponse template)
      factory method to create a shallow copy ImportResponse
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      @Nullable static ImportResponse deepCopy(@Nullable ImportResponse template)
      factory method to create a deep copy of ImportResponse
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static ImportResponseBuilder builder()
      builder factory method for ImportResponse
      Returns:
      builder
    • builder

      static ImportResponseBuilder builder(ImportResponse template)
      create builder for ImportResponse instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withImportResponse

      default <T> T withImportResponse(Function<ImportResponse,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<ImportResponse> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference