Interface TypeChangeLocalizedEnumValueLabelAction
- All Superinterfaces:
ResourceUpdateAction<TypeUpdateAction>,TypeUpdateAction
Changes the label of a LocalizedEnumValue of a LocalizedEnumType FieldDefinition.
Example to create an instance using the builder pattern
TypeChangeLocalizedEnumValueLabelAction typeChangeLocalizedEnumValueLabelAction = TypeChangeLocalizedEnumValueLabelAction.builder()
.fieldName("{fieldName}")
.value(valueBuilder -> valueBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for TypeChangeLocalizedEnumValueLabelAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for TypeChangeLocalizedEnumValueLabelActioncreate builder for TypeChangeLocalizedEnumValueLabelAction instancecopyDeep()factory method to create a deep copy of TypeChangeLocalizedEnumValueLabelAction@NotNull Stringnameof the FieldDefinition to update.@NotNull @Valid CustomFieldLocalizedEnumValuegetValue()New value to set.of()factory methodof(TypeChangeLocalizedEnumValueLabelAction template) factory method to create a shallow copy TypeChangeLocalizedEnumValueLabelActionvoidsetFieldName(String fieldName) nameof the FieldDefinition to update.voidNew value to set.static com.fasterxml.jackson.core.type.TypeReference<TypeChangeLocalizedEnumValueLabelAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithTypeChangeLocalizedEnumValueLabelAction(Function<TypeChangeLocalizedEnumValueLabelAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
getMethods inherited from interface com.commercetools.api.models.type.TypeUpdateAction
getAction, withTypeUpdateAction
-
Field Details
-
CHANGE_LOCALIZED_ENUM_VALUE_LABEL
discriminator value for TypeChangeLocalizedEnumValueLabelAction- See Also:
-
-
Method Details
-
getFieldName
nameof the FieldDefinition to update.- Returns:
- fieldName
-
getValue
New value to set. Must not be empty.
- Returns:
- value
-
setFieldName
nameof the FieldDefinition to update.- Parameters:
fieldName- value to be set
-
setValue
New value to set. Must not be empty.
- Parameters:
value- value to be set
-
of
factory method- Returns:
- instance of TypeChangeLocalizedEnumValueLabelAction
-
of
factory method to create a shallow copy TypeChangeLocalizedEnumValueLabelAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
TypeChangeLocalizedEnumValueLabelAction copyDeep()- Specified by:
copyDeepin interfaceTypeUpdateAction
-
deepCopy
@Nullable static TypeChangeLocalizedEnumValueLabelAction deepCopy(@Nullable TypeChangeLocalizedEnumValueLabelAction template) factory method to create a deep copy of TypeChangeLocalizedEnumValueLabelAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for TypeChangeLocalizedEnumValueLabelAction- Returns:
- builder
-
builder
static TypeChangeLocalizedEnumValueLabelActionBuilder builder(TypeChangeLocalizedEnumValueLabelAction template) create builder for TypeChangeLocalizedEnumValueLabelAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withTypeChangeLocalizedEnumValueLabelAction
default <T> T withTypeChangeLocalizedEnumValueLabelAction(Function<TypeChangeLocalizedEnumValueLabelAction, T> helper) accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<TypeChangeLocalizedEnumValueLabelAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-