Interface ProductVariantPatchRequest
- All Superinterfaces:
ImportRequest
The request body to import ProductVariantPatches. The data to be imported are represented by ProductVariantPatch.
Example to create an instance using the builder pattern
ProductVariantPatchRequest productVariantPatchRequest = ProductVariantPatchRequest.builder()
.plusPatches(patchesBuilder -> patchesBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductVariantPatchRequest -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductVariantPatchRequestbuilder(ProductVariantPatchRequest template) create builder for ProductVariantPatchRequest instancecopyDeep()static ProductVariantPatchRequestdeepCopy(ProductVariantPatchRequest template) factory method to create a deep copy of ProductVariantPatchRequest@NotNull @Valid List<ProductVariantPatch>The product variant patches of this request.static ProductVariantPatchRequestof()factory methodstatic ProductVariantPatchRequestof(ProductVariantPatchRequest template) factory method to create a shallow copy ProductVariantPatchRequestvoidsetPatches(ProductVariantPatch... patches) The product variant patches of this request.voidsetPatches(List<ProductVariantPatch> patches) The product variant patches of this request.static com.fasterxml.jackson.core.type.TypeReference<ProductVariantPatchRequest>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
-
PRODUCT_VARIANT_PATCH
discriminator value for ProductVariantPatchRequest- See Also:
-
-
Method Details
-
getPatches
The product variant patches of this request.
- Returns:
- patches
-
setPatches
The product variant patches of this request.
- Parameters:
patches- values to be set
-
setPatches
The product variant patches of this request.
- Parameters:
patches- values to be set
-
of
factory method- Returns:
- instance of ProductVariantPatchRequest
-
of
factory method to create a shallow copy ProductVariantPatchRequest- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductVariantPatchRequest copyDeep()- Specified by:
copyDeepin interfaceImportRequest
-
deepCopy
factory method to create a deep copy of ProductVariantPatchRequest- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductVariantPatchRequest- Returns:
- builder
-
builder
create builder for ProductVariantPatchRequest instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductVariantPatchRequest
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
-