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