Interface StateChangeTypeAction
- All Superinterfaces:
ResourceUpdateAction<StateUpdateAction>
,StateUpdateAction
StateChangeTypeAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StateChangeTypeAction stateChangeTypeAction = StateChangeTypeAction.builder()
.type(StateTypeEnum.ORDER_STATE)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StateChangeTypeAction -
Method Summary
Modifier and TypeMethodDescriptionstatic StateChangeTypeActionBuilder
builder()
builder factory method for StateChangeTypeActionstatic StateChangeTypeActionBuilder
builder
(StateChangeTypeAction template) create builder for StateChangeTypeAction instancestatic StateChangeTypeAction
deepCopy
(StateChangeTypeAction template) factory method to create a deep copy of StateChangeTypeAction@NotNull StateTypeEnum
getType()
Resource or object types the State shall be assigned to.static StateChangeTypeAction
of()
factory methodstatic StateChangeTypeAction
of
(StateChangeTypeAction template) factory method to create a shallow copy StateChangeTypeActionvoid
setType
(StateTypeEnum type) Resource or object types the State shall be assigned to.static com.fasterxml.jackson.core.type.TypeReference<StateChangeTypeAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.state.StateUpdateAction
getAction, withStateUpdateAction
-
Field Details
-
CHANGE_TYPE
discriminator value for StateChangeTypeAction- See Also:
-
-
Method Details
-
getType
Resource or object types the State shall be assigned to. Must not be empty.
- Returns:
- type
-
setType
Resource or object types the State shall be assigned to. Must not be empty.
- Parameters:
type
- value to be set
-
of
factory method- Returns:
- instance of StateChangeTypeAction
-
of
factory method to create a shallow copy StateChangeTypeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of StateChangeTypeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StateChangeTypeAction- Returns:
- builder
-
builder
create builder for StateChangeTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStateChangeTypeAction
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
-