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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for StateChangeTypeAction -
Method Summary
Modifier and TypeMethodDescriptionstatic StateChangeTypeActionBuilderbuilder()builder factory method for StateChangeTypeActionstatic StateChangeTypeActionBuilderbuilder(StateChangeTypeAction template) create builder for StateChangeTypeAction instancecopyDeep()static StateChangeTypeActiondeepCopy(StateChangeTypeAction template) factory method to create a deep copy of StateChangeTypeAction@NotNull StateTypeEnumgetType()Resource or object types the State shall be assigned to.static StateChangeTypeActionof()factory methodstatic StateChangeTypeActionof(StateChangeTypeAction template) factory method to create a shallow copy StateChangeTypeActionvoidsetType(StateTypeEnum type) Resource or object types the State shall be assigned to.static tools.jackson.core.type.TypeReference<StateChangeTypeAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
getMethods 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.
If the new value is the same as the current value, an InvalidOperation error is returned.
- Returns:
- type
-
setType
Resource or object types the State shall be assigned to. Must not be empty.
If the new value is the same as the current value, an InvalidOperation error is returned.
- 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
-
copyDeep
StateChangeTypeAction copyDeep()- Specified by:
copyDeepin interfaceStateUpdateAction
-
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
-