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
Modifier and TypeFieldDescriptionstatic final String
discriminator value for TypeChangeLocalizedEnumValueLabelAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for TypeChangeLocalizedEnumValueLabelActioncreate builder for TypeChangeLocalizedEnumValueLabelAction instancefactory method to create a deep copy of TypeChangeLocalizedEnumValueLabelAction@NotNull String
name
of the FieldDefinition to update.@NotNull @Valid CustomFieldLocalizedEnumValue
getValue()
New value to set.of()
factory methodof
(TypeChangeLocalizedEnumValueLabelAction template) factory method to create a shallow copy TypeChangeLocalizedEnumValueLabelActionvoid
setFieldName
(String fieldName) name
of the FieldDefinition to update.void
New value to set.static com.fasterxml.jackson.core.type.TypeReference<TypeChangeLocalizedEnumValueLabelAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withTypeChangeLocalizedEnumValueLabelAction
(Function<TypeChangeLocalizedEnumValueLabelAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods 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
name
of the FieldDefinition to update.- Returns:
- fieldName
-
getValue
New value to set. Must not be empty.
- Returns:
- value
-
setFieldName
name
of 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
-
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
-