Interface UpdateAction
- All Superinterfaces:
ResourceUpdateAction<UpdateAction>
UpdateAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
UpdateAction updateAction = UpdateAction.builder()
.action("{action}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic UpdateActionBuilder
builder()
builder factory method for UpdateActionstatic UpdateActionBuilder
builder
(UpdateAction template) create builder for UpdateAction instancestatic UpdateAction
deepCopy
(UpdateAction template) factory method to create a deep copy of UpdateAction@NotNull String
static UpdateAction
of()
factory methodstatic UpdateAction
of
(UpdateAction template) factory method to create a shallow copy UpdateActionvoid
set actionstatic com.fasterxml.jackson.core.type.TypeReference<UpdateAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withUpdateAction
(Function<UpdateAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceResourceUpdateAction<UpdateAction>
- Returns:
- action
-
setAction
set action- Parameters:
action
- value to be set
-
of
factory method- Returns:
- instance of UpdateAction
-
of
factory method to create a shallow copy UpdateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of UpdateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for UpdateAction- Returns:
- builder
-
builder
create builder for UpdateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withUpdateAction
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
-