Interface ProductTypeChangePlainEnumValueLabelAction
- All Superinterfaces:
ProductTypeUpdateAction
,ResourceUpdateAction<ProductTypeUpdateAction>
Updates the label of a single enum value
in an AttributeEnumType AttributeDefinition, or AttributeSetType of AttributeEnumType AttributeDefinition.
All Products will be updated to the new label in an eventually consistent way.
Example to create an instance using the builder pattern
ProductTypeChangePlainEnumValueLabelAction productTypeChangePlainEnumValueLabelAction = ProductTypeChangePlainEnumValueLabelAction.builder()
.attributeName("{attributeName}")
.newValue(newValueBuilder -> newValueBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for ProductTypeChangePlainEnumValueLabelAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductTypeChangePlainEnumValueLabelActioncreate builder for ProductTypeChangePlainEnumValueLabelAction instancefactory method to create a deep copy of ProductTypeChangePlainEnumValueLabelAction@NotNull String
Name of the AttributeDefinition to update.@NotNull @Valid AttributePlainEnumValue
New value to set.of()
factory methodof
(ProductTypeChangePlainEnumValueLabelAction template) factory method to create a shallow copy ProductTypeChangePlainEnumValueLabelActionvoid
setAttributeName
(String attributeName) Name of the AttributeDefinition to update.void
setNewValue
(AttributePlainEnumValue newValue) New value to set.static com.fasterxml.jackson.core.type.TypeReference<ProductTypeChangePlainEnumValueLabelAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withProductTypeChangePlainEnumValueLabelAction
(Function<ProductTypeChangePlainEnumValueLabelAction, 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_PLAIN_ENUM_VALUE_LABEL
discriminator value for ProductTypeChangePlainEnumValueLabelAction- 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 ProductTypeChangePlainEnumValueLabelAction
-
of
static ProductTypeChangePlainEnumValueLabelAction of(ProductTypeChangePlainEnumValueLabelAction template) factory method to create a shallow copy ProductTypeChangePlainEnumValueLabelAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductTypeChangePlainEnumValueLabelAction deepCopy(@Nullable ProductTypeChangePlainEnumValueLabelAction template) factory method to create a deep copy of ProductTypeChangePlainEnumValueLabelAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductTypeChangePlainEnumValueLabelAction- Returns:
- builder
-
builder
static ProductTypeChangePlainEnumValueLabelActionBuilder builder(ProductTypeChangePlainEnumValueLabelAction template) create builder for ProductTypeChangePlainEnumValueLabelAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductTypeChangePlainEnumValueLabelAction
default <T> T withProductTypeChangePlainEnumValueLabelAction(Function<ProductTypeChangePlainEnumValueLabelAction, 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<ProductTypeChangePlainEnumValueLabelAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-