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