Interface TypeChangeEnumValueOrderAction
- All Superinterfaces:
ResourceUpdateAction<TypeUpdateAction>,TypeUpdateAction
Changes the order of EnumValues in an EnumType FieldDefinition. This update action can be used to update an EnumType FieldDefinition and a SetType FieldDefinition of EnumType.
Example to create an instance using the builder pattern
TypeChangeEnumValueOrderAction typeChangeEnumValueOrderAction = TypeChangeEnumValueOrderAction.builder()
.fieldName("{fieldName}")
.plusKeys(keysBuilder -> keysBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for TypeChangeEnumValueOrderAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for TypeChangeEnumValueOrderActionbuilder(TypeChangeEnumValueOrderAction template) create builder for TypeChangeEnumValueOrderAction instancecopyDeep()deepCopy(TypeChangeEnumValueOrderAction template) factory method to create a deep copy of TypeChangeEnumValueOrderAction@NotNull Stringnameof the FieldDefinition to update.getKeys()Must match the set ofkeys of the EnumValues in the FieldDefinition (apart from their order).of()factory methodof(TypeChangeEnumValueOrderAction template) factory method to create a shallow copy TypeChangeEnumValueOrderActionvoidsetFieldName(String fieldName) nameof the FieldDefinition to update.voidMust match the set ofkeys of the EnumValues in the FieldDefinition (apart from their order).voidMust match the set ofkeys of the EnumValues in the FieldDefinition (apart from their order).static com.fasterxml.jackson.core.type.TypeReference<TypeChangeEnumValueOrderAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor 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_ENUM_VALUE_ORDER
discriminator value for TypeChangeEnumValueOrderAction- See Also:
-
-
Method Details
-
getFieldName
nameof the FieldDefinition to update.- Returns:
- fieldName
-
getKeys
Must match the set of
keys of the EnumValues in the FieldDefinition (apart from their order).- Returns:
- keys
-
setFieldName
nameof the FieldDefinition to update.- Parameters:
fieldName- value to be set
-
setKeys
Must match the set of
keys of the EnumValues in the FieldDefinition (apart from their order).- Parameters:
keys- values to be set
-
setKeys
Must match the set of
keys of the EnumValues in the FieldDefinition (apart from their order).- Parameters:
keys- values to be set
-
of
factory method- Returns:
- instance of TypeChangeEnumValueOrderAction
-
of
factory method to create a shallow copy TypeChangeEnumValueOrderAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
TypeChangeEnumValueOrderAction copyDeep()- Specified by:
copyDeepin interfaceTypeUpdateAction
-
deepCopy
@Nullable static TypeChangeEnumValueOrderAction deepCopy(@Nullable TypeChangeEnumValueOrderAction template) factory method to create a deep copy of TypeChangeEnumValueOrderAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for TypeChangeEnumValueOrderAction- Returns:
- builder
-
builder
create builder for TypeChangeEnumValueOrderAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withTypeChangeEnumValueOrderAction
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<TypeChangeEnumValueOrderAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-