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
Modifier and TypeFieldDescriptionstatic final String
discriminator value for TypeAddEnumValueAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for TypeAddEnumValueActionbuilder
(TypeAddEnumValueAction template) create builder for TypeAddEnumValueAction instancestatic TypeAddEnumValueAction
deepCopy
(TypeAddEnumValueAction template) factory method to create a deep copy of TypeAddEnumValueAction@NotNull String
name
of the Field Definition to update.@NotNull @Valid CustomFieldEnumValue
getValue()
Value to append to the array.static TypeAddEnumValueAction
of()
factory methodstatic TypeAddEnumValueAction
of
(TypeAddEnumValueAction template) factory method to create a shallow copy TypeAddEnumValueActionvoid
setFieldName
(String fieldName) name
of the Field Definition to update.void
setValue
(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> T
accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods 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
name
of the Field Definition to update.- Returns:
- fieldName
-
getValue
Value to append to the array.
- Returns:
- value
-
setFieldName
name
of 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
-
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
-