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
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic PriceImportRequestBuilderbuilder()builder factory method for PriceImportRequeststatic PriceImportRequestBuilderbuilder(PriceImportRequest template) create builder for PriceImportRequest instancecopyDeep()static PriceImportRequestdeepCopy(PriceImportRequest template) factory method to create a deep copy of PriceImportRequest@NotNull @Valid List<PriceImport>The price import resources of this request.static PriceImportRequestof()factory methodstatic PriceImportRequestof(PriceImportRequest template) factory method to create a shallow copy PriceImportRequestvoidsetResources(PriceImport... resources) The price import resources of this request.voidsetResources(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> TwithPriceImportRequest(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
-
copyDeep
PriceImportRequest copyDeep()- Specified by:
copyDeepin interfaceImportRequest
-
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
-