Interface ProductSelectionUpdateAction
- All Superinterfaces:
ResourceUpdateAction<ProductSelectionUpdateAction>
- All Known Subinterfaces:
ProductSelectionAddProductAction
,ProductSelectionChangeNameAction
,ProductSelectionExcludeProductAction
,ProductSelectionRemoveProductAction
,ProductSelectionSetCustomFieldAction
,ProductSelectionSetCustomTypeAction
,ProductSelectionSetKeyAction
,ProductSelectionSetVariantExclusionAction
,ProductSelectionSetVariantSelectionAction
public interface ProductSelectionUpdateAction
extends ResourceUpdateAction<ProductSelectionUpdateAction>
ProductSelectionUpdateAction
Example to create a subtype instance using the builder pattern
Example to create a subtype instance using the builder pattern
ProductSelectionUpdateAction productSelectionUpdateAction = ProductSelectionUpdateAction.addProductBuilder()
product(productBuilder -> productBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder for addProduct subtypebuilder for changeName subtypestatic ProductSelectionUpdateAction
deepCopy
(ProductSelectionUpdateAction template) factory method to create a deep copy of ProductSelectionUpdateActionbuilder for excludeProduct subtype@NotNull String
builder for removeProduct subtypebuilder for setCustomField subtypebuilder for setCustomType subtypebuilder for setKey subtypebuilder for setVariantExclusion subtypebuilder for setVariantSelection subtypestatic com.fasterxml.jackson.core.type.TypeReference<ProductSelectionUpdateAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceResourceUpdateAction<ProductSelectionUpdateAction>
- Returns:
- action
-
deepCopy
@Nullable static ProductSelectionUpdateAction deepCopy(@Nullable ProductSelectionUpdateAction template) factory method to create a deep copy of ProductSelectionUpdateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
addProductBuilder
builder for addProduct subtype- Returns:
- builder
-
changeNameBuilder
builder for changeName subtype- Returns:
- builder
-
excludeProductBuilder
builder for excludeProduct subtype- Returns:
- builder
-
removeProductBuilder
builder for removeProduct subtype- Returns:
- builder
-
setCustomFieldBuilder
builder for setCustomField subtype- Returns:
- builder
-
setCustomTypeBuilder
builder for setCustomType subtype- Returns:
- builder
-
setKeyBuilder
builder for setKey subtype- Returns:
- builder
-
setVariantExclusionBuilder
builder for setVariantExclusion subtype- Returns:
- builder
-
setVariantSelectionBuilder
builder for setVariantSelection subtype- Returns:
- builder
-
withProductSelectionUpdateAction
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
-