Interface ProductTypeChangeLocalizedEnumValueLabelAction
- All Superinterfaces:
ProductTypeUpdateAction
,ResourceUpdateAction<ProductTypeUpdateAction>
- All Known Implementing Classes:
ProductTypeChangeLocalizedEnumValueLabelActionImpl
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
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductTypeChangeLocalizedEnumValueLabelAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductTypeChangeLocalizedEnumValueLabelActioncreate builder for ProductTypeChangeLocalizedEnumValueLabelAction instancefactory method to create a deep copy of ProductTypeChangeLocalizedEnumValueLabelAction@NotNull String
Name of the AttributeDefinition to update.@NotNull @Valid AttributeLocalizedEnumValue
New value to set.of()
factory methodfactory method to create a shallow copy ProductTypeChangeLocalizedEnumValueLabelActionvoid
setAttributeName
(String attributeName) Name of the AttributeDefinition to update.void
setNewValue
(AttributeLocalizedEnumValue newValue) New value to set.static com.fasterxml.jackson.core.type.TypeReference<ProductTypeChangeLocalizedEnumValueLabelAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withProductTypeChangeLocalizedEnumValueLabelAction
(Function<ProductTypeChangeLocalizedEnumValueLabelAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.product_type.ProductTypeUpdateAction
getAction, withProductTypeUpdateAction
Methods 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
-
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 com.fasterxml.jackson.core.type.TypeReference<ProductTypeChangeLocalizedEnumValueLabelAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-