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 ExtensionUpdateBuilderbuilder()builder factory method for ExtensionUpdatestatic ExtensionUpdateBuilderbuilder(ExtensionUpdate template) create builder for ExtensionUpdate instancecopyDeep()static ExtensionUpdatedeepCopy(ExtensionUpdate template) factory method to create a deep copy of ExtensionUpdate@NotNull @Valid List<ExtensionUpdateAction>Update actions to be performed on the Extension.@NotNull LongExpected version of the Extension on which the changes should be applied.static ExtensionUpdateof()factory methodstatic ExtensionUpdateof(ExtensionUpdate template) factory method to create a shallow copy ExtensionUpdatevoidsetActions(ExtensionUpdateAction... actions) Update actions to be performed on the Extension.voidsetActions(List<ExtensionUpdateAction> actions) Update actions to be performed on the Extension.voidsetVersion(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> TwithExtensionUpdate(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:
getVersionin interfaceResourceUpdate<ExtensionUpdate,ExtensionUpdateAction, ExtensionUpdateBuilder> - Returns:
- version
-
getActions
Update actions to be performed on the Extension.
- Specified by:
getActionsin 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:
setVersionin 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:
setActionsin 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
-
copyDeep
ExtensionUpdate copyDeep() -
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
-