Interface ProductSetKeyAction
- All Superinterfaces:
ProductUpdateAction
,ResourceUpdateAction<ProductUpdateAction>
ProductSetKeyAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSetKeyAction productSetKeyAction = ProductSetKeyAction.builder()
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ProductSetKeyActionBuilder
builder()
builder factory method for ProductSetKeyActionstatic ProductSetKeyActionBuilder
builder
(ProductSetKeyAction template) create builder for ProductSetKeyAction instancestatic ProductSetKeyAction
deepCopy
(ProductSetKeyAction template) factory method to create a deep copy of ProductSetKeyActiongetKey()
Value to set.static ProductSetKeyAction
of()
factory methodstatic ProductSetKeyAction
of
(ProductSetKeyAction template) factory method to create a shallow copy ProductSetKeyActionstatic ProductSetKeyAction
ofUnset()
void
Value to set.static com.fasterxml.jackson.core.type.TypeReference<ProductSetKeyAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withProductSetKeyAction
(Function<ProductSetKeyAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.product.ProductUpdateAction
getAction, withProductUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_KEY
discriminator value for ProductSetKeyAction- See Also:
-
-
Method Details
-
getKey
String getKey()Value to set. If empty, any existing value will be removed.
To update a Product using the Import API and the Merchant Center, the Product
key
must match the pattern^[A-Za-z0-9_-]{2,256}$
.- Returns:
- key
-
setKey
Value to set. If empty, any existing value will be removed.
To update a Product using the Import API and the Merchant Center, the Product
key
must match the pattern^[A-Za-z0-9_-]{2,256}$
.- Parameters:
key
- value to be set
-
of
factory method- Returns:
- instance of ProductSetKeyAction
-
of
factory method to create a shallow copy ProductSetKeyAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ProductSetKeyAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductSetKeyAction- Returns:
- builder
-
builder
create builder for ProductSetKeyAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductSetKeyAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
ofUnset
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-