Interface VariantBulkUpdate
The request body for a bulk update of Variants.
Example to create an instance using the builder pattern
VariantBulkUpdate variantBulkUpdate = VariantBulkUpdate.builder()
.plusItems(itemsBuilder -> itemsBuilder)
.plusActions(actionsBuilder -> actionsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic VariantBulkUpdateBuilderbuilder()builder factory method for VariantBulkUpdatestatic VariantBulkUpdateBuilderbuilder(VariantBulkUpdate template) create builder for VariantBulkUpdate instancecopyDeep()static VariantBulkUpdatedeepCopy(VariantBulkUpdate template) factory method to create a deep copy of VariantBulkUpdate@NotNull @Valid List<VariantUpdateAction>The update action to apply to each Variant.@NotNull @Valid List<VariantBulkUpdateItem>getItems()List of Variants to update.static VariantBulkUpdateof()factory methodstatic VariantBulkUpdateof(VariantBulkUpdate template) factory method to create a shallow copy VariantBulkUpdatevoidsetActions(VariantUpdateAction... actions) The update action to apply to each Variant.voidsetActions(List<VariantUpdateAction> actions) The update action to apply to each Variant.voidsetItems(VariantBulkUpdateItem... items) List of Variants to update.voidsetItems(List<VariantBulkUpdateItem> items) List of Variants to update.static tools.jackson.core.type.TypeReference<VariantBulkUpdate>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithVariantBulkUpdate(Function<VariantBulkUpdate, T> helper) accessor map function
-
Method Details
-
getItems
List of Variants to update. Each item must identify the Variant by
idorkey.- Returns:
- items
-
getActions
The update action to apply to each Variant. Only Publish and Unpublish actions are supported. An empty array results in a no-op: all items are returned as successful with no changes applied.
- Returns:
- actions
-
setItems
List of Variants to update. Each item must identify the Variant by
idorkey.- Parameters:
items- values to be set
-
setItems
List of Variants to update. Each item must identify the Variant by
idorkey.- Parameters:
items- values to be set
-
setActions
The update action to apply to each Variant. Only Publish and Unpublish actions are supported. An empty array results in a no-op: all items are returned as successful with no changes applied.
- Parameters:
actions- values to be set
-
setActions
The update action to apply to each Variant. Only Publish and Unpublish actions are supported. An empty array results in a no-op: all items are returned as successful with no changes applied.
- Parameters:
actions- values to be set
-
of
factory method- Returns:
- instance of VariantBulkUpdate
-
of
factory method to create a shallow copy VariantBulkUpdate- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
VariantBulkUpdate copyDeep() -
deepCopy
factory method to create a deep copy of VariantBulkUpdate- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for VariantBulkUpdate- Returns:
- builder
-
builder
create builder for VariantBulkUpdate instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withVariantBulkUpdate
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
-