Interface StateSetNameAction
- All Superinterfaces:
ResourceUpdateAction<StateUpdateAction>,StateUpdateAction
StateSetNameAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StateSetNameAction stateSetNameAction = StateSetNameAction.builder()
.name(nameBuilder -> nameBuilder)
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StateSetNameActionBuilderbuilder()builder factory method for StateSetNameActionstatic StateSetNameActionBuilderbuilder(StateSetNameAction template) create builder for StateSetNameAction instancecopyDeep()static StateSetNameActiondeepCopy(StateSetNameAction template) factory method to create a deep copy of StateSetNameAction@NotNull @Valid LocalizedStringgetName()Value to set.static StateSetNameActionof()factory methodstatic StateSetNameActionof(StateSetNameAction template) factory method to create a shallow copy StateSetNameActionvoidsetName(LocalizedString name) Value to set.static com.fasterxml.jackson.core.type.TypeReference<StateSetNameAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithStateSetNameAction(Function<StateSetNameAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
getMethods inherited from interface com.commercetools.api.models.state.StateUpdateAction
getAction, withStateUpdateAction
-
Field Details
-
SET_NAME
discriminator value for StateSetNameAction- See Also:
-
-
Method Details
-
getName
Value to set. If empty, any existing value will be removed.
- Returns:
- name
-
setName
Value to set. If empty, any existing value will be removed.
- Parameters:
name- value to be set
-
of
factory method- Returns:
- instance of StateSetNameAction
-
of
factory method to create a shallow copy StateSetNameAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
StateSetNameAction copyDeep()- Specified by:
copyDeepin interfaceStateUpdateAction
-
deepCopy
factory method to create a deep copy of StateSetNameAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StateSetNameAction- Returns:
- builder
-
builder
create builder for StateSetNameAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withStateSetNameAction
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
-