Interface ProductTypeChangeLocalizedEnumValueOrderAction
- All Superinterfaces:
ProductTypeUpdateAction
,ResourceUpdateAction<ProductTypeUpdateAction>
Updates the order of localized enum values
in an AttributeLocalizedEnumType AttributeDefinition. It can update an AttributeLocalizedEnumType AttributeDefinition or an AttributeSetType of AttributeLocalizedEnumType AttributeDefinition.
Example to create an instance using the builder pattern
ProductTypeChangeLocalizedEnumValueOrderAction productTypeChangeLocalizedEnumValueOrderAction = ProductTypeChangeLocalizedEnumValueOrderAction.builder()
.attributeName("{attributeName}")
.plusValues(valuesBuilder -> valuesBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for ProductTypeChangeLocalizedEnumValueOrderAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductTypeChangeLocalizedEnumValueOrderActioncreate builder for ProductTypeChangeLocalizedEnumValueOrderAction instancefactory method to create a deep copy of ProductTypeChangeLocalizedEnumValueOrderAction@NotNull String
Name of the AttributeDefinition to update.@NotNull @Valid List<AttributeLocalizedEnumValue>
Values must be equal to the values of the Attribute enum values (except for the order).of()
factory methodfactory method to create a shallow copy ProductTypeChangeLocalizedEnumValueOrderActionvoid
setAttributeName
(String attributeName) Name of the AttributeDefinition to update.void
setValues
(AttributeLocalizedEnumValue... values) Values must be equal to the values of the Attribute enum values (except for the order).void
setValues
(List<AttributeLocalizedEnumValue> values) Values must be equal to the values of the Attribute enum values (except for the order).static com.fasterxml.jackson.core.type.TypeReference<ProductTypeChangeLocalizedEnumValueOrderAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withProductTypeChangeLocalizedEnumValueOrderAction
(Function<ProductTypeChangeLocalizedEnumValueOrderAction, 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_LOCALIZED_ENUM_VALUE_ORDER
discriminator value for ProductTypeChangeLocalizedEnumValueOrderAction- 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 ProductTypeChangeLocalizedEnumValueOrderAction
-
of
static ProductTypeChangeLocalizedEnumValueOrderAction of(ProductTypeChangeLocalizedEnumValueOrderAction template) factory method to create a shallow copy ProductTypeChangeLocalizedEnumValueOrderAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductTypeChangeLocalizedEnumValueOrderAction deepCopy(@Nullable ProductTypeChangeLocalizedEnumValueOrderAction template) factory method to create a deep copy of ProductTypeChangeLocalizedEnumValueOrderAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductTypeChangeLocalizedEnumValueOrderAction- Returns:
- builder
-
builder
static ProductTypeChangeLocalizedEnumValueOrderActionBuilder builder(ProductTypeChangeLocalizedEnumValueOrderAction template) create builder for ProductTypeChangeLocalizedEnumValueOrderAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductTypeChangeLocalizedEnumValueOrderAction
default <T> T withProductTypeChangeLocalizedEnumValueOrderAction(Function<ProductTypeChangeLocalizedEnumValueOrderAction, 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<ProductTypeChangeLocalizedEnumValueOrderAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-