Interface StateSetDescriptionAction
- All Superinterfaces:
ResourceUpdateAction<StateUpdateAction>
,StateUpdateAction
StateSetDescriptionAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StateSetDescriptionAction stateSetDescriptionAction = StateSetDescriptionAction.builder()
.description(descriptionBuilder -> descriptionBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StateSetDescriptionAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StateSetDescriptionActionbuilder
(StateSetDescriptionAction template) create builder for StateSetDescriptionAction instancestatic StateSetDescriptionAction
deepCopy
(StateSetDescriptionAction template) factory method to create a deep copy of StateSetDescriptionAction@NotNull @Valid LocalizedString
Value to set.static StateSetDescriptionAction
of()
factory methodstatic StateSetDescriptionAction
of
(StateSetDescriptionAction template) factory method to create a shallow copy StateSetDescriptionActionvoid
setDescription
(LocalizedString description) Value to set.static com.fasterxml.jackson.core.type.TypeReference<StateSetDescriptionAction>
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
-
SET_DESCRIPTION
discriminator value for StateSetDescriptionAction- See Also:
-
-
Method Details
-
getDescription
Value to set. If empty, any existing value will be removed.
- Returns:
- description
-
setDescription
Value to set. If empty, any existing value will be removed.
- Parameters:
description
- value to be set
-
of
factory method- Returns:
- instance of StateSetDescriptionAction
-
of
factory method to create a shallow copy StateSetDescriptionAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of StateSetDescriptionAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StateSetDescriptionAction- Returns:
- builder
-
builder
create builder for StateSetDescriptionAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStateSetDescriptionAction
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
-