Interface TypeChangeEnumValueLabelAction
- All Superinterfaces:
ResourceUpdateAction<TypeUpdateAction>
,TypeUpdateAction
Changes the label
of an EnumValue of an EnumType FieldDefinition.
Example to create an instance using the builder pattern
TypeChangeEnumValueLabelAction typeChangeEnumValueLabelAction = TypeChangeEnumValueLabelAction.builder()
.fieldName("{fieldName}")
.value(valueBuilder -> valueBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for TypeChangeEnumValueLabelAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for TypeChangeEnumValueLabelActionbuilder
(TypeChangeEnumValueLabelAction template) create builder for TypeChangeEnumValueLabelAction instancedeepCopy
(TypeChangeEnumValueLabelAction template) factory method to create a deep copy of TypeChangeEnumValueLabelAction@NotNull String
name
of the FieldDefinition to update.@NotNull @Valid CustomFieldEnumValue
getValue()
New value to set.of()
factory methodof
(TypeChangeEnumValueLabelAction template) factory method to create a shallow copy TypeChangeEnumValueLabelActionvoid
setFieldName
(String fieldName) name
of the FieldDefinition to update.void
setValue
(CustomFieldEnumValue value) New value to set.static com.fasterxml.jackson.core.type.TypeReference<TypeChangeEnumValueLabelAction>
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.type.TypeUpdateAction
getAction, withTypeUpdateAction
-
Field Details
-
CHANGE_ENUM_VALUE_LABEL
discriminator value for TypeChangeEnumValueLabelAction- 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 TypeChangeEnumValueLabelAction
-
of
factory method to create a shallow copy TypeChangeEnumValueLabelAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static TypeChangeEnumValueLabelAction deepCopy(@Nullable TypeChangeEnumValueLabelAction template) factory method to create a deep copy of TypeChangeEnumValueLabelAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for TypeChangeEnumValueLabelAction- Returns:
- builder
-
builder
create builder for TypeChangeEnumValueLabelAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withTypeChangeEnumValueLabelAction
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<TypeChangeEnumValueLabelAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-