Interface StateUpdateAction
- All Superinterfaces:
ResourceUpdateAction<StateUpdateAction>
- All Known Subinterfaces:
StateAddRolesAction
,StateChangeInitialAction
,StateChangeKeyAction
,StateChangeTypeAction
,StateRemoveRolesAction
,StateSetDescriptionAction
,StateSetNameAction
,StateSetRolesAction
,StateSetTransitionsAction
StateUpdateAction
Example to create a subtype instance using the builder pattern
Example to create a subtype instance using the builder pattern
StateUpdateAction stateUpdateAction = StateUpdateAction.addRolesBuilder()
plusRoles(rolesBuilder -> rolesBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic StateAddRolesActionBuilder
builder for addRoles subtypebuilder for changeInitial subtypestatic StateChangeKeyActionBuilder
builder for changeKey subtypestatic StateChangeTypeActionBuilder
builder for changeType subtypestatic StateUpdateAction
deepCopy
(StateUpdateAction template) factory method to create a deep copy of StateUpdateAction@NotNull String
builder for removeRoles subtypebuilder for setDescription subtypestatic StateSetNameActionBuilder
builder for setName subtypestatic StateSetRolesActionBuilder
builder for setRoles subtypebuilder for setTransitions subtypestatic com.fasterxml.jackson.core.type.TypeReference<StateUpdateAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withStateUpdateAction
(Function<StateUpdateAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceResourceUpdateAction<StateUpdateAction>
- Returns:
- action
-
deepCopy
factory method to create a deep copy of StateUpdateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
addRolesBuilder
builder for addRoles subtype- Returns:
- builder
-
changeInitialBuilder
builder for changeInitial subtype- Returns:
- builder
-
changeKeyBuilder
builder for changeKey subtype- Returns:
- builder
-
changeTypeBuilder
builder for changeType subtype- Returns:
- builder
-
removeRolesBuilder
builder for removeRoles subtype- Returns:
- builder
-
setDescriptionBuilder
builder for setDescription subtype- Returns:
- builder
-
setNameBuilder
builder for setName subtype- Returns:
- builder
-
setRolesBuilder
builder for setRoles subtype- Returns:
- builder
-
setTransitionsBuilder
builder for setTransitions subtype- Returns:
- builder
-
withStateUpdateAction
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
-