Interface PriceImportRequest
- All Superinterfaces:
ImportRequest
The request body to import Embedded Prices. Contains data for Embedded Prices to be created or updated in a Project.
Example to create an instance using the builder pattern
PriceImportRequest priceImportRequest = PriceImportRequest.builder()
.plusResources(resourcesBuilder -> resourcesBuilder)
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PriceImportRequestBuilder
builder()
builder factory method for PriceImportRequeststatic PriceImportRequestBuilder
builder
(PriceImportRequest template) create builder for PriceImportRequest instancestatic PriceImportRequest
deepCopy
(PriceImportRequest template) factory method to create a deep copy of PriceImportRequest@NotNull @Valid List<PriceImport>
The price import resources of this request.static PriceImportRequest
of()
factory methodstatic PriceImportRequest
of
(PriceImportRequest template) factory method to create a shallow copy PriceImportRequestvoid
setResources
(PriceImport... resources) The price import resources of this request.void
setResources
(List<PriceImport> resources) The price import resources of this request.static com.fasterxml.jackson.core.type.TypeReference<PriceImportRequest>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withPriceImportRequest
(Function<PriceImportRequest, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.importrequests.ImportRequest
getType, withImportRequest
-
Field Details
-
PRICE
discriminator value for PriceImportRequest- See Also:
-
-
Method Details
-
getResources
The price import resources of this request.
- Returns:
- resources
-
setResources
The price import resources of this request.
- Parameters:
resources
- values to be set
-
setResources
The price import resources of this request.
- Parameters:
resources
- values to be set
-
of
factory method- Returns:
- instance of PriceImportRequest
-
of
factory method to create a shallow copy PriceImportRequest- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of PriceImportRequest- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PriceImportRequest- Returns:
- builder
-
builder
create builder for PriceImportRequest instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withPriceImportRequest
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
-