Interface CustomerImportRequest
- All Superinterfaces:
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CustomerImportRequestBuilder
builder()
builder factory method for CustomerImportRequeststatic CustomerImportRequestBuilder
builder
(CustomerImportRequest template) create builder for CustomerImportRequest instancestatic CustomerImportRequest
deepCopy
(CustomerImportRequest template) factory method to create a deep copy of CustomerImportRequest@NotNull @Valid List<CustomerImport>
The customer import resources of this request.static CustomerImportRequest
of()
factory methodstatic CustomerImportRequest
of
(CustomerImportRequest template) factory method to create a shallow copy CustomerImportRequestvoid
setResources
(CustomerImport... resources) The customer import resources of this request.void
setResources
(List<CustomerImport> resources) The customer import resources of this request.static com.fasterxml.jackson.core.type.TypeReference<CustomerImportRequest>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.importapi.models.importrequests.ImportRequest
getType, withImportRequest
-
Field Details
-
CUSTOMER
discriminator value for CustomerImportRequest- See Also:
-
-
Method Details
-
getResources
The customer import resources of this request.
- Returns:
- resources
-
setResources
The customer import resources of this request.
- Parameters:
resources
- values to be set
-
setResources
The customer import resources of this request.
- Parameters:
resources
- values to be set
-
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
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
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-