Interface ProductTypeAddPlainEnumValueAction
- All Superinterfaces:
ProductTypeUpdateAction
,ResourceUpdateAction<ProductTypeUpdateAction>
Adds an enum to the values of AttributeEnumType AttributeDefinition, or AttributeSetType of AttributeEnumType AttributeDefinition.
Example to create an instance using the builder pattern
ProductTypeAddPlainEnumValueAction productTypeAddPlainEnumValueAction = ProductTypeAddPlainEnumValueAction.builder()
.attributeName("{attributeName}")
.value(valueBuilder -> valueBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductTypeAddPlainEnumValueAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductTypeAddPlainEnumValueActionbuilder
(ProductTypeAddPlainEnumValueAction template) create builder for ProductTypeAddPlainEnumValueAction instancedeepCopy
(ProductTypeAddPlainEnumValueAction template) factory method to create a deep copy of ProductTypeAddPlainEnumValueAction@NotNull String
Name of the AttributeDefinition to update.@NotNull @Valid AttributePlainEnumValue
getValue()
Value to append to the array.of()
factory methodof
(ProductTypeAddPlainEnumValueAction template) factory method to create a shallow copy ProductTypeAddPlainEnumValueActionvoid
setAttributeName
(String attributeName) Name of the AttributeDefinition to update.void
setValue
(AttributePlainEnumValue value) Value to append to the array.static com.fasterxml.jackson.core.type.TypeReference<ProductTypeAddPlainEnumValueAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.product_type.ProductTypeUpdateAction
getAction, withProductTypeUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
ADD_PLAIN_ENUM_VALUE
discriminator value for ProductTypeAddPlainEnumValueAction- See Also:
-
-
Method Details
-
getAttributeName
Name of the AttributeDefinition to update.
- Returns:
- attributeName
-
getValue
Value to append to the array.
- Returns:
- value
-
setAttributeName
Name of the AttributeDefinition to update.
- Parameters:
attributeName
- value to be set
-
setValue
Value to append to the array.
- Parameters:
value
- value to be set
-
of
factory method- Returns:
- instance of ProductTypeAddPlainEnumValueAction
-
of
factory method to create a shallow copy ProductTypeAddPlainEnumValueAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductTypeAddPlainEnumValueAction deepCopy(@Nullable ProductTypeAddPlainEnumValueAction template) factory method to create a deep copy of ProductTypeAddPlainEnumValueAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductTypeAddPlainEnumValueAction- Returns:
- builder
-
builder
static ProductTypeAddPlainEnumValueActionBuilder builder(ProductTypeAddPlainEnumValueAction template) create builder for ProductTypeAddPlainEnumValueAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductTypeAddPlainEnumValueAction
default <T> T withProductTypeAddPlainEnumValueAction(Function<ProductTypeAddPlainEnumValueAction, 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<ProductTypeAddPlainEnumValueAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-