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