Interface TypeAddLocalizedEnumValueAction
- All Superinterfaces:
ResourceUpdateAction<TypeUpdateAction>
,TypeUpdateAction
Adds a value to a LocalizedEnumType. This update action can be used to update a LocalizedEnumType FieldDefinition and a SetType FieldDefinition of CustomFieldLocalizedEnumType.
Example to create an instance using the builder pattern
TypeAddLocalizedEnumValueAction typeAddLocalizedEnumValueAction = TypeAddLocalizedEnumValueAction.builder()
.fieldName("{fieldName}")
.value(valueBuilder -> valueBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for TypeAddLocalizedEnumValueAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for TypeAddLocalizedEnumValueActionbuilder
(TypeAddLocalizedEnumValueAction template) create builder for TypeAddLocalizedEnumValueAction instancedeepCopy
(TypeAddLocalizedEnumValueAction template) factory method to create a deep copy of TypeAddLocalizedEnumValueAction@NotNull String
name
of the FieldDefinition to update.@NotNull @Valid CustomFieldLocalizedEnumValue
getValue()
Value to append to the array.of()
factory methodof
(TypeAddLocalizedEnumValueAction template) factory method to create a shallow copy TypeAddLocalizedEnumValueActionvoid
setFieldName
(String fieldName) name
of the FieldDefinition to update.void
Value to append to the array.static com.fasterxml.jackson.core.type.TypeReference<TypeAddLocalizedEnumValueAction>
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_LOCALIZED_ENUM_VALUE
discriminator value for TypeAddLocalizedEnumValueAction- See Also:
-
-
Method Details
-
getFieldName
name
of the FieldDefinition to update.- Returns:
- fieldName
-
getValue
Value to append to the array.
- Returns:
- value
-
setFieldName
name
of the FieldDefinition 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 TypeAddLocalizedEnumValueAction
-
of
factory method to create a shallow copy TypeAddLocalizedEnumValueAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static TypeAddLocalizedEnumValueAction deepCopy(@Nullable TypeAddLocalizedEnumValueAction template) factory method to create a deep copy of TypeAddLocalizedEnumValueAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for TypeAddLocalizedEnumValueAction- Returns:
- builder
-
builder
create builder for TypeAddLocalizedEnumValueAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withTypeAddLocalizedEnumValueAction
default <T> T withTypeAddLocalizedEnumValueAction(Function<TypeAddLocalizedEnumValueAction, 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<TypeAddLocalizedEnumValueAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-