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
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductVariantPatchRequest -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductVariantPatchRequestbuilder
(ProductVariantPatchRequest template) create builder for ProductVariantPatchRequest instancestatic ProductVariantPatchRequest
deepCopy
(ProductVariantPatchRequest template) factory method to create a deep copy of ProductVariantPatchRequest@NotNull @Valid List<ProductVariantPatch>
The product variant patches of this request.static ProductVariantPatchRequest
of()
factory methodstatic ProductVariantPatchRequest
of
(ProductVariantPatchRequest template) factory method to create a shallow copy ProductVariantPatchRequestvoid
setPatches
(ProductVariantPatch... patches) The product variant patches of this request.void
setPatches
(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> T
accessor 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
-
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
-