Interface ProductSelectionUpdate
- All Superinterfaces:
ResourceUpdate<ProductSelectionUpdate,
ProductSelectionUpdateAction, ProductSelectionUpdateBuilder>
public interface ProductSelectionUpdate
extends ResourceUpdate<ProductSelectionUpdate,ProductSelectionUpdateAction,ProductSelectionUpdateBuilder>
ProductSelectionUpdate
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSelectionUpdate productSelectionUpdate = ProductSelectionUpdate.builder()
.version(0.3)
.plusActions(actionsBuilder -> actionsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductSelectionUpdatebuilder
(ProductSelectionUpdate template) create builder for ProductSelectionUpdate instancestatic ProductSelectionUpdate
deepCopy
(ProductSelectionUpdate template) factory method to create a deep copy of ProductSelectionUpdate@NotNull @Valid List<ProductSelectionUpdateAction>
@NotNull Long
static ProductSelectionUpdate
of()
factory methodstatic ProductSelectionUpdate
of
(ProductSelectionUpdate template) factory method to create a shallow copy ProductSelectionUpdatevoid
setActions
(ProductSelectionUpdateAction... actions) set actionsvoid
setActions
(List<ProductSelectionUpdateAction> actions) set actionsvoid
setVersion
(Long version) set versionstatic com.fasterxml.jackson.core.type.TypeReference<ProductSelectionUpdate>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdate
get
-
Method Details
-
getVersion
- Specified by:
getVersion
in interfaceResourceUpdate<ProductSelectionUpdate,
ProductSelectionUpdateAction, ProductSelectionUpdateBuilder> - Returns:
- version
-
getActions
- Specified by:
getActions
in interfaceResourceUpdate<ProductSelectionUpdate,
ProductSelectionUpdateAction, ProductSelectionUpdateBuilder> - Returns:
- actions
-
setVersion
set version- Specified by:
setVersion
in interfaceResourceUpdate<ProductSelectionUpdate,
ProductSelectionUpdateAction, ProductSelectionUpdateBuilder> - Parameters:
version
- value to be set
-
setActions
set actions- Parameters:
actions
- values to be set
-
setActions
set actions- Specified by:
setActions
in interfaceResourceUpdate<ProductSelectionUpdate,
ProductSelectionUpdateAction, ProductSelectionUpdateBuilder> - Parameters:
actions
- values to be set
-
of
factory method- Returns:
- instance of ProductSelectionUpdate
-
of
factory method to create a shallow copy ProductSelectionUpdate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ProductSelectionUpdate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductSelectionUpdate- Returns:
- builder
-
builder
create builder for ProductSelectionUpdate instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductSelectionUpdate
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
-