Interface ProductTypeChangePlainEnumValueOrderAction
- All Superinterfaces:
ProductTypeUpdateAction
,ResourceUpdateAction<ProductTypeUpdateAction>
- All Known Implementing Classes:
ProductTypeChangePlainEnumValueOrderActionImpl
Updates the order of enum values
in an AttributeEnumType AttributeDefinition. It can update an AttributeEnumType AttributeDefinition or an AttributeSetType of AttributeEnumType AttributeDefinition.
Example to create an instance using the builder pattern
ProductTypeChangePlainEnumValueOrderAction productTypeChangePlainEnumValueOrderAction = ProductTypeChangePlainEnumValueOrderAction.builder()
.attributeName("{attributeName}")
.plusValues(valuesBuilder -> valuesBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductTypeChangePlainEnumValueOrderAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductTypeChangePlainEnumValueOrderActioncreate builder for ProductTypeChangePlainEnumValueOrderAction instancefactory method to create a deep copy of ProductTypeChangePlainEnumValueOrderAction@NotNull String
Name of the AttributeDefinition to update.@NotNull @Valid List<AttributePlainEnumValue>
Values must be equal to the values of the Attribute enum values (except for the order).of()
factory methodof
(ProductTypeChangePlainEnumValueOrderAction template) factory method to create a shallow copy ProductTypeChangePlainEnumValueOrderActionvoid
setAttributeName
(String attributeName) Name of the AttributeDefinition to update.void
setValues
(AttributePlainEnumValue... values) Values must be equal to the values of the Attribute enum values (except for the order).void
setValues
(List<AttributePlainEnumValue> values) Values must be equal to the values of the Attribute enum values (except for the order).static com.fasterxml.jackson.core.type.TypeReference<ProductTypeChangePlainEnumValueOrderAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withProductTypeChangePlainEnumValueOrderAction
(Function<ProductTypeChangePlainEnumValueOrderAction, 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_ORDER
discriminator value for ProductTypeChangePlainEnumValueOrderAction- See Also:
-
-
Method Details
-
getAttributeName
Name of the AttributeDefinition to update.
- Returns:
- attributeName
-
getValues
Values must be equal to the values of the Attribute enum values (except for the order). If not, an EnumValuesMustMatch error is returned.
- Returns:
- values
-
setAttributeName
Name of the AttributeDefinition to update.
- Parameters:
attributeName
- value to be set
-
setValues
Values must be equal to the values of the Attribute enum values (except for the order). If not, an EnumValuesMustMatch error is returned.
- Parameters:
values
- values to be set
-
setValues
Values must be equal to the values of the Attribute enum values (except for the order). If not, an EnumValuesMustMatch error is returned.
- Parameters:
values
- values to be set
-
of
factory method- Returns:
- instance of ProductTypeChangePlainEnumValueOrderAction
-
of
static ProductTypeChangePlainEnumValueOrderAction of(ProductTypeChangePlainEnumValueOrderAction template) factory method to create a shallow copy ProductTypeChangePlainEnumValueOrderAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductTypeChangePlainEnumValueOrderAction deepCopy(@Nullable ProductTypeChangePlainEnumValueOrderAction template) factory method to create a deep copy of ProductTypeChangePlainEnumValueOrderAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductTypeChangePlainEnumValueOrderAction- Returns:
- builder
-
builder
static ProductTypeChangePlainEnumValueOrderActionBuilder builder(ProductTypeChangePlainEnumValueOrderAction template) create builder for ProductTypeChangePlainEnumValueOrderAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductTypeChangePlainEnumValueOrderAction
default <T> T withProductTypeChangePlainEnumValueOrderAction(Function<ProductTypeChangePlainEnumValueOrderAction, 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<ProductTypeChangePlainEnumValueOrderAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-