Interface ProductTypeRemoveEnumValuesAction
- All Superinterfaces:
ProductTypeUpdateAction,ResourceUpdateAction<ProductTypeUpdateAction>
Removes enum values from an AttributeDefinition of AttributeEnumType, AttributeLocalizedEnumType, AttributeSetType of AttributeEnumType, or AttributeSetType of AttributeLocalizedEnumType.
If the Attribute is not required, the Attributes of all Products using those enum keys will also be removed in an eventually consistent way. If the Attribute is required, the operation returns an EnumValueIsUsed error.
Example to create an instance using the builder pattern
ProductTypeRemoveEnumValuesAction productTypeRemoveEnumValuesAction = ProductTypeRemoveEnumValuesAction.builder()
.attributeName("{attributeName}")
.plusKeys(keysBuilder -> keysBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductTypeRemoveEnumValuesAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductTypeRemoveEnumValuesActionbuilder(ProductTypeRemoveEnumValuesAction template) create builder for ProductTypeRemoveEnumValuesAction instancecopyDeep()deepCopy(ProductTypeRemoveEnumValuesAction template) factory method to create a deep copy of ProductTypeRemoveEnumValuesAction@NotNull StringName of the AttributeDefinition to update.getKeys()Keys of AttributeEnumType or AttributeLocalizedEnumType to remove.of()factory methodof(ProductTypeRemoveEnumValuesAction template) factory method to create a shallow copy ProductTypeRemoveEnumValuesActionvoidsetAttributeName(String attributeName) Name of the AttributeDefinition to update.voidKeys of AttributeEnumType or AttributeLocalizedEnumType to remove.voidKeys of AttributeEnumType or AttributeLocalizedEnumType to remove.static com.fasterxml.jackson.core.type.TypeReference<ProductTypeRemoveEnumValuesAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor 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
-
REMOVE_ENUM_VALUES
discriminator value for ProductTypeRemoveEnumValuesAction- See Also:
-
-
Method Details
-
getAttributeName
Name of the AttributeDefinition to update.
- Returns:
- attributeName
-
getKeys
Keys of AttributeEnumType or AttributeLocalizedEnumType to remove.
- Returns:
- keys
-
setAttributeName
Name of the AttributeDefinition to update.
- Parameters:
attributeName- value to be set
-
setKeys
Keys of AttributeEnumType or AttributeLocalizedEnumType to remove.
- Parameters:
keys- values to be set
-
setKeys
Keys of AttributeEnumType or AttributeLocalizedEnumType to remove.
- Parameters:
keys- values to be set
-
of
factory method- Returns:
- instance of ProductTypeRemoveEnumValuesAction
-
of
factory method to create a shallow copy ProductTypeRemoveEnumValuesAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductTypeRemoveEnumValuesAction copyDeep()- Specified by:
copyDeepin interfaceProductTypeUpdateAction
-
deepCopy
@Nullable static ProductTypeRemoveEnumValuesAction deepCopy(@Nullable ProductTypeRemoveEnumValuesAction template) factory method to create a deep copy of ProductTypeRemoveEnumValuesAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductTypeRemoveEnumValuesAction- Returns:
- builder
-
builder
create builder for ProductTypeRemoveEnumValuesAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductTypeRemoveEnumValuesAction
default <T> T withProductTypeRemoveEnumValuesAction(Function<ProductTypeRemoveEnumValuesAction, 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<ProductTypeRemoveEnumValuesAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-