Interface ProductVariantImportRequest
- All Superinterfaces:
ImportRequest
The request body to import ProductVariants. Contains data for ProductVariants to be created or updated in a Project.
Example to create an instance using the builder pattern
ProductVariantImportRequest productVariantImportRequest = ProductVariantImportRequest.builder()
.plusResources(resourcesBuilder -> resourcesBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductVariantImportRequest -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductVariantImportRequestbuilder
(ProductVariantImportRequest template) create builder for ProductVariantImportRequest instancestatic ProductVariantImportRequest
deepCopy
(ProductVariantImportRequest template) factory method to create a deep copy of ProductVariantImportRequest@NotNull @Valid List<ProductVariantImport>
The product variant import resources of this request.static ProductVariantImportRequest
of()
factory methodstatic ProductVariantImportRequest
of
(ProductVariantImportRequest template) factory method to create a shallow copy ProductVariantImportRequestvoid
setResources
(ProductVariantImport... resources) The product variant import resources of this request.void
setResources
(List<ProductVariantImport> resources) The product variant import resources of this request.static com.fasterxml.jackson.core.type.TypeReference<ProductVariantImportRequest>
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
discriminator value for ProductVariantImportRequest- See Also:
-
-
Method Details
-
getResources
The product variant import resources of this request.
- Returns:
- resources
-
setResources
The product variant import resources of this request.
- Parameters:
resources
- values to be set
-
setResources
The product variant import resources of this request.
- Parameters:
resources
- values to be set
-
of
factory method- Returns:
- instance of ProductVariantImportRequest
-
of
factory method to create a shallow copy ProductVariantImportRequest- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductVariantImportRequest deepCopy(@Nullable ProductVariantImportRequest template) factory method to create a deep copy of ProductVariantImportRequest- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductVariantImportRequest- Returns:
- builder
-
builder
create builder for ProductVariantImportRequest instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductVariantImportRequest
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
-