Interface TypeChangeLocalizedEnumValueOrderAction
- All Superinterfaces:
ResourceUpdateAction<TypeUpdateAction>,TypeUpdateAction
Changes the order of LocalizedEnumValues in a LocalizedEnumType FieldDefinition. This update action can be used to update a LocalizedEnumType FieldDefinition and a SetType of LocalizedEnumType FieldDefinitions.
Example to create an instance using the builder pattern
TypeChangeLocalizedEnumValueOrderAction typeChangeLocalizedEnumValueOrderAction = TypeChangeLocalizedEnumValueOrderAction.builder()
.fieldName("{fieldName}")
.plusKeys(keysBuilder -> keysBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for TypeChangeLocalizedEnumValueOrderAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for TypeChangeLocalizedEnumValueOrderActioncreate builder for TypeChangeLocalizedEnumValueOrderAction instancecopyDeep()factory method to create a deep copy of TypeChangeLocalizedEnumValueOrderAction@NotNull Stringnameof the Field Definition to update.getKeys()Must match the set ofkeys of the LocalizedEnumValues in the FieldDefinition (up to order).of()factory methodof(TypeChangeLocalizedEnumValueOrderAction template) factory method to create a shallow copy TypeChangeLocalizedEnumValueOrderActionvoidsetFieldName(String fieldName) nameof the Field Definition to update.voidMust match the set ofkeys of the LocalizedEnumValues in the FieldDefinition (up to order).voidMust match the set ofkeys of the LocalizedEnumValues in the FieldDefinition (up to order).static com.fasterxml.jackson.core.type.TypeReference<TypeChangeLocalizedEnumValueOrderAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithTypeChangeLocalizedEnumValueOrderAction(Function<TypeChangeLocalizedEnumValueOrderAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
getMethods inherited from interface com.commercetools.api.models.type.TypeUpdateAction
getAction, withTypeUpdateAction
-
Field Details
-
CHANGE_LOCALIZED_ENUM_VALUE_ORDER
discriminator value for TypeChangeLocalizedEnumValueOrderAction- See Also:
-
-
Method Details
-
getFieldName
nameof the Field Definition to update.- Returns:
- fieldName
-
getKeys
Must match the set of
keys of the LocalizedEnumValues in the FieldDefinition (up to order).- Returns:
- keys
-
setFieldName
nameof the Field Definition to update.- Parameters:
fieldName- value to be set
-
setKeys
Must match the set of
keys of the LocalizedEnumValues in the FieldDefinition (up to order).- Parameters:
keys- values to be set
-
setKeys
Must match the set of
keys of the LocalizedEnumValues in the FieldDefinition (up to order).- Parameters:
keys- values to be set
-
of
factory method- Returns:
- instance of TypeChangeLocalizedEnumValueOrderAction
-
of
factory method to create a shallow copy TypeChangeLocalizedEnumValueOrderAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
TypeChangeLocalizedEnumValueOrderAction copyDeep()- Specified by:
copyDeepin interfaceTypeUpdateAction
-
deepCopy
@Nullable static TypeChangeLocalizedEnumValueOrderAction deepCopy(@Nullable TypeChangeLocalizedEnumValueOrderAction template) factory method to create a deep copy of TypeChangeLocalizedEnumValueOrderAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for TypeChangeLocalizedEnumValueOrderAction- Returns:
- builder
-
builder
static TypeChangeLocalizedEnumValueOrderActionBuilder builder(TypeChangeLocalizedEnumValueOrderAction template) create builder for TypeChangeLocalizedEnumValueOrderAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withTypeChangeLocalizedEnumValueOrderAction
default <T> T withTypeChangeLocalizedEnumValueOrderAction(Function<TypeChangeLocalizedEnumValueOrderAction, 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<TypeChangeLocalizedEnumValueOrderAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-