Interface VariantSetKeyAction
- All Superinterfaces:
VariantUpdateAction
Sets the key of the Variant. Generates the VariantKeySet Message.
Example to create an instance using the builder pattern
VariantSetKeyAction variantSetKeyAction = VariantSetKeyAction.builder()
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic VariantSetKeyActionBuilderbuilder()builder factory method for VariantSetKeyActionstatic VariantSetKeyActionBuilderbuilder(VariantSetKeyAction template) create builder for VariantSetKeyAction instancecopyDeep()static VariantSetKeyActiondeepCopy(VariantSetKeyAction template) factory method to create a deep copy of VariantSetKeyActiongetKey()Value to set.static VariantSetKeyActionof()factory methodstatic VariantSetKeyActionof(VariantSetKeyAction template) factory method to create a shallow copy VariantSetKeyActionvoidValue to set.static tools.jackson.core.type.TypeReference<VariantSetKeyAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithVariantSetKeyAction(Function<VariantSetKeyAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.variant.VariantUpdateAction
getAction, withVariantUpdateAction
-
Field Details
-
SET_KEY
discriminator value for VariantSetKeyAction- See Also:
-
-
Method Details
-
getKey
String getKey()Value to set. Must be unique.
- Returns:
- key
-
setKey
Value to set. Must be unique.
- Parameters:
key- value to be set
-
of
factory method- Returns:
- instance of VariantSetKeyAction
-
of
factory method to create a shallow copy VariantSetKeyAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
VariantSetKeyAction copyDeep()- Specified by:
copyDeepin interfaceVariantUpdateAction
-
deepCopy
factory method to create a deep copy of VariantSetKeyAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for VariantSetKeyAction- Returns:
- builder
-
builder
create builder for VariantSetKeyAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withVariantSetKeyAction
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
-