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
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomerImportRequestBuilderbuilder()builder factory method for CustomerImportRequeststatic CustomerImportRequestBuilderbuilder(CustomerImportRequest template) create builder for CustomerImportRequest instancecopyDeep()static CustomerImportRequestdeepCopy(CustomerImportRequest template) factory method to create a deep copy of CustomerImportRequest@NotNull @Valid List<CustomerImport>The customer import resources of this request.static CustomerImportRequestof()factory methodstatic CustomerImportRequestof(CustomerImportRequest template) factory method to create a shallow copy CustomerImportRequestvoidsetResources(CustomerImport... resources) The customer import resources of this request.voidsetResources(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> Taccessor 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
-
copyDeep
CustomerImportRequest copyDeep()- Specified by:
copyDeepin interfaceImportRequest
-
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
-