Interface CustomerImportRequest

All Superinterfaces:
ImportRequest

public interface CustomerImportRequest extends ImportRequest

The request body to import Customers. Contains data for Customers to be created or updated in a Project.


Example to create an instance using the builder pattern

     CustomerImportRequest customerImportRequest = CustomerImportRequest.builder()
             .plusResources(resourcesBuilder -> resourcesBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getResources

      @NotNull @Valid @NotNull @Valid List<CustomerImport> getResources()

      The customer import resources of this request.

      Returns:
      resources
    • setResources

      void setResources(CustomerImport... resources)

      The customer import resources of this request.

      Parameters:
      resources - values to be set
    • setResources

      void setResources(List<CustomerImport> resources)

      The customer import resources of this request.

      Parameters:
      resources - values to be set
    • of

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

      factory method to create a shallow copy CustomerImportRequest
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of CustomerImportRequest
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static CustomerImportRequestBuilder builder()
      builder factory method for CustomerImportRequest
      Returns:
      builder
    • builder

      create builder for CustomerImportRequest instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCustomerImportRequest

      default <T> T withCustomerImportRequest(Function<CustomerImportRequest,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<CustomerImportRequest> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference