Interface VariantSetSkuAction
- All Superinterfaces:
VariantUpdateAction
Sets the SKU of the Variant. SKU cannot be changed or removed if it is associated with an InventoryEntry.
Example to create an instance using the builder pattern
VariantSetSkuAction variantSetSkuAction = VariantSetSkuAction.builder()
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic VariantSetSkuActionBuilderbuilder()builder factory method for VariantSetSkuActionstatic VariantSetSkuActionBuilderbuilder(VariantSetSkuAction template) create builder for VariantSetSkuAction instancecopyDeep()static VariantSetSkuActiondeepCopy(VariantSetSkuAction template) factory method to create a deep copy of VariantSetSkuActiongetSku()Value to set.Iftrue, only the stagedskuis updated.static VariantSetSkuActionof()factory methodstatic VariantSetSkuActionof(VariantSetSkuAction template) factory method to create a shallow copy VariantSetSkuActionvoidValue to set.voidIftrue, only the stagedskuis updated.static tools.jackson.core.type.TypeReference<VariantSetSkuAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithVariantSetSkuAction(Function<VariantSetSkuAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.variant.VariantUpdateAction
getAction, withVariantUpdateAction
-
Field Details
-
SET_SKU
discriminator value for VariantSetSkuAction- See Also:
-
-
Method Details
-
getSku
String getSku()Value to set. Must be unique.
- Returns:
- sku
-
getStaged
Boolean getStaged()If
true, only the stagedskuis updated. Iffalse, both the current and stagedskuare updated.- Returns:
- staged
-
setSku
Value to set. Must be unique.
- Parameters:
sku- value to be set
-
setStaged
If
true, only the stagedskuis updated. Iffalse, both the current and stagedskuare updated.- Parameters:
staged- value to be set
-
of
factory method- Returns:
- instance of VariantSetSkuAction
-
of
factory method to create a shallow copy VariantSetSkuAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
VariantSetSkuAction copyDeep()- Specified by:
copyDeepin interfaceVariantUpdateAction
-
deepCopy
factory method to create a deep copy of VariantSetSkuAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for VariantSetSkuAction- Returns:
- builder
-
builder
create builder for VariantSetSkuAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withVariantSetSkuAction
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
-