Interface ProductTypeChangeLocalizedEnumValueLabelAction
- All Superinterfaces:
ProductTypeUpdateAction,ResourceUpdateAction<ProductTypeUpdateAction>
Updates the label of a single enum value in an AttributeLocalizedEnumType AttributeDefinition, or AttributeSetType of AttributeLocalizedEnumType AttributeDefinition.
All Products will be updated to the new label in an eventually consistent way.
Example to create an instance using the builder pattern
ProductTypeChangeLocalizedEnumValueLabelAction productTypeChangeLocalizedEnumValueLabelAction = ProductTypeChangeLocalizedEnumValueLabelAction.builder()
.attributeName("{attributeName}")
.newValue(newValueBuilder -> newValueBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductTypeChangeLocalizedEnumValueLabelAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductTypeChangeLocalizedEnumValueLabelActioncreate builder for ProductTypeChangeLocalizedEnumValueLabelAction instancecopyDeep()factory method to create a deep copy of ProductTypeChangeLocalizedEnumValueLabelAction@NotNull StringName of the AttributeDefinition to update.@NotNull @Valid AttributeLocalizedEnumValueNew value to set.of()factory methodfactory method to create a shallow copy ProductTypeChangeLocalizedEnumValueLabelActionvoidsetAttributeName(String attributeName) Name of the AttributeDefinition to update.voidsetNewValue(AttributeLocalizedEnumValue newValue) New value to set.static tools.jackson.core.type.TypeReference<ProductTypeChangeLocalizedEnumValueLabelAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithProductTypeChangeLocalizedEnumValueLabelAction(Function<ProductTypeChangeLocalizedEnumValueLabelAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.product_type.ProductTypeUpdateAction
getAction, withProductTypeUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
CHANGE_LOCALIZED_ENUM_VALUE_LABEL
discriminator value for ProductTypeChangeLocalizedEnumValueLabelAction- See Also:
-
-
Method Details
-
getAttributeName
Name of the AttributeDefinition to update.
- Returns:
- attributeName
-
getNewValue
New value to set. Must be different from the existing value.
- Returns:
- newValue
-
setAttributeName
Name of the AttributeDefinition to update.
- Parameters:
attributeName- value to be set
-
setNewValue
New value to set. Must be different from the existing value.
- Parameters:
newValue- value to be set
-
of
factory method- Returns:
- instance of ProductTypeChangeLocalizedEnumValueLabelAction
-
of
static ProductTypeChangeLocalizedEnumValueLabelAction of(ProductTypeChangeLocalizedEnumValueLabelAction template) factory method to create a shallow copy ProductTypeChangeLocalizedEnumValueLabelAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
- Specified by:
copyDeepin interfaceProductTypeUpdateAction
-
deepCopy
@Nullable static ProductTypeChangeLocalizedEnumValueLabelAction deepCopy(@Nullable ProductTypeChangeLocalizedEnumValueLabelAction template) factory method to create a deep copy of ProductTypeChangeLocalizedEnumValueLabelAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductTypeChangeLocalizedEnumValueLabelAction- Returns:
- builder
-
builder
static ProductTypeChangeLocalizedEnumValueLabelActionBuilder builder(ProductTypeChangeLocalizedEnumValueLabelAction template) create builder for ProductTypeChangeLocalizedEnumValueLabelAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductTypeChangeLocalizedEnumValueLabelAction
default <T> T withProductTypeChangeLocalizedEnumValueLabelAction(Function<ProductTypeChangeLocalizedEnumValueLabelAction, T> helper) accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
static tools.jackson.core.type.TypeReference<ProductTypeChangeLocalizedEnumValueLabelAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-