Interface StateChangeKeyAction
- All Superinterfaces:
ResourceUpdateAction<StateUpdateAction>
,StateUpdateAction
StateChangeKeyAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StateChangeKeyAction stateChangeKeyAction = StateChangeKeyAction.builder()
.key("{key}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StateChangeKeyAction -
Method Summary
Modifier and TypeMethodDescriptionstatic StateChangeKeyActionBuilder
builder()
builder factory method for StateChangeKeyActionstatic StateChangeKeyActionBuilder
builder
(StateChangeKeyAction template) create builder for StateChangeKeyAction instancestatic StateChangeKeyAction
deepCopy
(StateChangeKeyAction template) factory method to create a deep copy of StateChangeKeyAction@NotNull String
getKey()
New value to set.static StateChangeKeyAction
of()
factory methodstatic StateChangeKeyAction
of
(StateChangeKeyAction template) factory method to create a shallow copy StateChangeKeyActionvoid
New value to set.static com.fasterxml.jackson.core.type.TypeReference<StateChangeKeyAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withStateChangeKeyAction
(Function<StateChangeKeyAction, T> helper) 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_KEY
discriminator value for StateChangeKeyAction- See Also:
-
-
Method Details
-
getKey
New value to set. Must not be empty.
- Returns:
- key
-
setKey
New value to set. Must not be empty.
- Parameters:
key
- value to be set
-
of
factory method- Returns:
- instance of StateChangeKeyAction
-
of
factory method to create a shallow copy StateChangeKeyAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of StateChangeKeyAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StateChangeKeyAction- Returns:
- builder
-
builder
create builder for StateChangeKeyAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStateChangeKeyAction
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
-