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 Stringdiscriminator value for ProductTypeChangePlainEnumValueLabelAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductTypeChangePlainEnumValueLabelActioncreate builder for ProductTypeChangePlainEnumValueLabelAction instancecopyDeep()factory method to create a deep copy of ProductTypeChangePlainEnumValueLabelAction@NotNull StringName of the AttributeDefinition to update.@NotNull @Valid AttributePlainEnumValueNew value to set.of()factory methodof(ProductTypeChangePlainEnumValueLabelAction template) factory method to create a shallow copy ProductTypeChangePlainEnumValueLabelActionvoidsetAttributeName(String attributeName) Name of the AttributeDefinition to update.voidsetNewValue(AttributePlainEnumValue newValue) New value to set.static com.fasterxml.jackson.core.type.TypeReference<ProductTypeChangePlainEnumValueLabelAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithProductTypeChangePlainEnumValueLabelAction(Function<ProductTypeChangePlainEnumValueLabelAction, 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_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
-
copyDeep
ProductTypeChangePlainEnumValueLabelAction copyDeep()- Specified by:
copyDeepin interfaceProductTypeUpdateAction
-
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
-