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
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ProductSetKeyActionBuilderbuilder()builder factory method for ProductSetKeyActionstatic ProductSetKeyActionBuilderbuilder(ProductSetKeyAction template) create builder for ProductSetKeyAction instancecopyDeep()static ProductSetKeyActiondeepCopy(ProductSetKeyAction template) factory method to create a deep copy of ProductSetKeyActiongetKey()Value to set.static ProductSetKeyActionof()factory methodstatic ProductSetKeyActionof(ProductSetKeyAction template) factory method to create a shallow copy ProductSetKeyActionstatic ProductSetKeyActionofUnset()voidValue to set.static com.fasterxml.jackson.core.type.TypeReference<ProductSetKeyAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithProductSetKeyAction(Function<ProductSetKeyAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.product.ProductUpdateAction
getAction, withProductUpdateActionMethods 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
keymust 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
keymust 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
-
copyDeep
ProductSetKeyAction copyDeep()- Specified by:
copyDeepin interfaceProductUpdateAction
-
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
-