Interface TypeAddEnumValueAction
- All Superinterfaces:
ResourceUpdateAction<TypeUpdateAction>,TypeUpdateAction
Adds a value to an EnumType. 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
TypeAddEnumValueAction typeAddEnumValueAction = TypeAddEnumValueAction.builder()
.fieldName("{fieldName}")
.value(valueBuilder -> valueBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for TypeAddEnumValueAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for TypeAddEnumValueActionbuilder(TypeAddEnumValueAction template) create builder for TypeAddEnumValueAction instancecopyDeep()static TypeAddEnumValueActiondeepCopy(TypeAddEnumValueAction template) factory method to create a deep copy of TypeAddEnumValueAction@NotNull Stringnameof the Field Definition to update.@NotNull @Valid CustomFieldEnumValuegetValue()Value to append to the array.static TypeAddEnumValueActionof()factory methodstatic TypeAddEnumValueActionof(TypeAddEnumValueAction template) factory method to create a shallow copy TypeAddEnumValueActionvoidsetFieldName(String fieldName) nameof the Field Definition to update.voidsetValue(CustomFieldEnumValue value) Value to append to the array.static com.fasterxml.jackson.core.type.TypeReference<TypeAddEnumValueAction>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
-
ADD_ENUM_VALUE
discriminator value for TypeAddEnumValueAction- See Also:
-
-
Method Details
-
getFieldName
nameof the Field Definition to update.- Returns:
- fieldName
-
getValue
Value to append to the array.
- Returns:
- value
-
setFieldName
nameof the Field Definition to update.- Parameters:
fieldName- value to be set
-
setValue
Value to append to the array.
- Parameters:
value- value to be set
-
of
factory method- Returns:
- instance of TypeAddEnumValueAction
-
of
factory method to create a shallow copy TypeAddEnumValueAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
TypeAddEnumValueAction copyDeep()- Specified by:
copyDeepin interfaceTypeUpdateAction
-
deepCopy
factory method to create a deep copy of TypeAddEnumValueAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for TypeAddEnumValueAction- Returns:
- builder
-
builder
create builder for TypeAddEnumValueAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withTypeAddEnumValueAction
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-