Interface ProductTypeRemoveAttributeDefinitionAction
- All Superinterfaces:
ProductTypeUpdateAction
,ResourceUpdateAction<ProductTypeUpdateAction>
- All Known Implementing Classes:
ProductTypeRemoveAttributeDefinitionActionImpl
Removes an AttributeDefinition and also deletes all corresponding Attributes on all Products with this ProductType. The removal of the Attributes is eventually consistent.
The CombinationUnique
constraint is not checked when an Attribute is removed, and uniqueness violations may occur when you remove an Attribute with a CombinationUnique
constraint.
Example to create an instance using the builder pattern
ProductTypeRemoveAttributeDefinitionAction productTypeRemoveAttributeDefinitionAction = ProductTypeRemoveAttributeDefinitionAction.builder()
.name("{name}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductTypeRemoveAttributeDefinitionAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductTypeRemoveAttributeDefinitionActioncreate builder for ProductTypeRemoveAttributeDefinitionAction instancefactory method to create a deep copy of ProductTypeRemoveAttributeDefinitionAction@NotNull String
getName()
Name of the Attribute to remove.of()
factory methodof
(ProductTypeRemoveAttributeDefinitionAction template) factory method to create a shallow copy ProductTypeRemoveAttributeDefinitionActionvoid
Name of the Attribute to remove.static com.fasterxml.jackson.core.type.TypeReference<ProductTypeRemoveAttributeDefinitionAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withProductTypeRemoveAttributeDefinitionAction
(Function<ProductTypeRemoveAttributeDefinitionAction, 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
-
REMOVE_ATTRIBUTE_DEFINITION
discriminator value for ProductTypeRemoveAttributeDefinitionAction- See Also:
-
-
Method Details
-
getName
Name of the Attribute to remove.
- Returns:
- name
-
setName
Name of the Attribute to remove.
- Parameters:
name
- value to be set
-
of
factory method- Returns:
- instance of ProductTypeRemoveAttributeDefinitionAction
-
of
static ProductTypeRemoveAttributeDefinitionAction of(ProductTypeRemoveAttributeDefinitionAction template) factory method to create a shallow copy ProductTypeRemoveAttributeDefinitionAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductTypeRemoveAttributeDefinitionAction deepCopy(@Nullable ProductTypeRemoveAttributeDefinitionAction template) factory method to create a deep copy of ProductTypeRemoveAttributeDefinitionAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductTypeRemoveAttributeDefinitionAction- Returns:
- builder
-
builder
static ProductTypeRemoveAttributeDefinitionActionBuilder builder(ProductTypeRemoveAttributeDefinitionAction template) create builder for ProductTypeRemoveAttributeDefinitionAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductTypeRemoveAttributeDefinitionAction
default <T> T withProductTypeRemoveAttributeDefinitionAction(Function<ProductTypeRemoveAttributeDefinitionAction, 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<ProductTypeRemoveAttributeDefinitionAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-