Interface ProductTypeAddLocalizedEnumValueAction
- All Superinterfaces:
ProductTypeUpdateAction,ResourceUpdateAction<ProductTypeUpdateAction>
Adds a localizable enum to the values of AttributeLocalizedEnumType. It can update an AttributeLocalizedEnumType AttributeDefinition or an AttributeSetType of AttributeLocalizedEnumType AttributeDefinition.
Example to create an instance using the builder pattern
ProductTypeAddLocalizedEnumValueAction productTypeAddLocalizedEnumValueAction = ProductTypeAddLocalizedEnumValueAction.builder()
.attributeName("{attributeName}")
.value(valueBuilder -> valueBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductTypeAddLocalizedEnumValueAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductTypeAddLocalizedEnumValueActioncreate builder for ProductTypeAddLocalizedEnumValueAction instancecopyDeep()factory method to create a deep copy of ProductTypeAddLocalizedEnumValueAction@NotNull StringName of the AttributeDefinition to update.@NotNull @Valid AttributeLocalizedEnumValuegetValue()Value to append to the array.of()factory methodof(ProductTypeAddLocalizedEnumValueAction template) factory method to create a shallow copy ProductTypeAddLocalizedEnumValueActionvoidsetAttributeName(String attributeName) Name of the AttributeDefinition to update.voidValue to append to the array.static com.fasterxml.jackson.core.type.TypeReference<ProductTypeAddLocalizedEnumValueAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithProductTypeAddLocalizedEnumValueAction(Function<ProductTypeAddLocalizedEnumValueAction, 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
-
ADD_LOCALIZED_ENUM_VALUE
discriminator value for ProductTypeAddLocalizedEnumValueAction- See Also:
-
-
Method Details
-
getAttributeName
Name of the AttributeDefinition to update.
- Returns:
- attributeName
-
getValue
Value to append to the array.
- Returns:
- value
-
setAttributeName
Name of the AttributeDefinition to update.
- Parameters:
attributeName- value to be set
-
setValue
Value to append to the array.
- Parameters:
value- value to be set
-
of
factory method- Returns:
- instance of ProductTypeAddLocalizedEnumValueAction
-
of
factory method to create a shallow copy ProductTypeAddLocalizedEnumValueAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductTypeAddLocalizedEnumValueAction copyDeep()- Specified by:
copyDeepin interfaceProductTypeUpdateAction
-
deepCopy
@Nullable static ProductTypeAddLocalizedEnumValueAction deepCopy(@Nullable ProductTypeAddLocalizedEnumValueAction template) factory method to create a deep copy of ProductTypeAddLocalizedEnumValueAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductTypeAddLocalizedEnumValueAction- Returns:
- builder
-
builder
static ProductTypeAddLocalizedEnumValueActionBuilder builder(ProductTypeAddLocalizedEnumValueAction template) create builder for ProductTypeAddLocalizedEnumValueAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductTypeAddLocalizedEnumValueAction
default <T> T withProductTypeAddLocalizedEnumValueAction(Function<ProductTypeAddLocalizedEnumValueAction, 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<ProductTypeAddLocalizedEnumValueAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-