Interface ProductTypeUpdate
- All Superinterfaces:
ResourceUpdate<ProductTypeUpdate,
ProductTypeUpdateAction, ProductTypeUpdateBuilder>
- All Known Implementing Classes:
ProductTypeUpdateImpl
public interface ProductTypeUpdate
extends ResourceUpdate<ProductTypeUpdate,ProductTypeUpdateAction,ProductTypeUpdateBuilder>
ProductTypeUpdate
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductTypeUpdate productTypeUpdate = ProductTypeUpdate.builder()
.version(0.3)
.plusActions(actionsBuilder -> actionsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ProductTypeUpdateBuilder
builder()
builder factory method for ProductTypeUpdatestatic ProductTypeUpdateBuilder
builder
(ProductTypeUpdate template) create builder for ProductTypeUpdate instancestatic ProductTypeUpdate
deepCopy
(ProductTypeUpdate template) factory method to create a deep copy of ProductTypeUpdate@NotNull @Valid List<ProductTypeUpdateAction>
Update actions to be performed on the ProductType.@NotNull Long
Expected version of the ProductType on which the changes should be applied.static ProductTypeUpdate
of()
factory methodstatic ProductTypeUpdate
of
(ProductTypeUpdate template) factory method to create a shallow copy ProductTypeUpdatevoid
setActions
(ProductTypeUpdateAction... actions) Update actions to be performed on the ProductType.void
setActions
(List<ProductTypeUpdateAction> actions) Update actions to be performed on the ProductType.void
setVersion
(Long version) Expected version of the ProductType on which the changes should be applied.static com.fasterxml.jackson.core.type.TypeReference<ProductTypeUpdate>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withProductTypeUpdate
(Function<ProductTypeUpdate, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdate
get
-
Method Details
-
getVersion
Expected version of the ProductType on which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error is returned.
- Specified by:
getVersion
in interfaceResourceUpdate<ProductTypeUpdate,
ProductTypeUpdateAction, ProductTypeUpdateBuilder> - Returns:
- version
-
getActions
Update actions to be performed on the ProductType.
- Specified by:
getActions
in interfaceResourceUpdate<ProductTypeUpdate,
ProductTypeUpdateAction, ProductTypeUpdateBuilder> - Returns:
- actions
-
setVersion
Expected version of the ProductType on which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error is returned.
- Specified by:
setVersion
in interfaceResourceUpdate<ProductTypeUpdate,
ProductTypeUpdateAction, ProductTypeUpdateBuilder> - Parameters:
version
- value to be set
-
setActions
Update actions to be performed on the ProductType.
- Parameters:
actions
- values to be set
-
setActions
Update actions to be performed on the ProductType.
- Specified by:
setActions
in interfaceResourceUpdate<ProductTypeUpdate,
ProductTypeUpdateAction, ProductTypeUpdateBuilder> - Parameters:
actions
- values to be set
-
of
factory method- Returns:
- instance of ProductTypeUpdate
-
of
factory method to create a shallow copy ProductTypeUpdate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ProductTypeUpdate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductTypeUpdate- Returns:
- builder
-
builder
create builder for ProductTypeUpdate instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductTypeUpdate
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
-