Interface ProductLegacySetSkuAction
- All Superinterfaces:
ProductUpdateAction
,ResourceUpdateAction<ProductUpdateAction>
ProductLegacySetSkuAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductLegacySetSkuAction productLegacySetSkuAction = ProductLegacySetSkuAction.builder()
.variantId(1)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductLegacySetSkuAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductLegacySetSkuActionbuilder
(ProductLegacySetSkuAction template) create builder for ProductLegacySetSkuAction instancestatic ProductLegacySetSkuAction
deepCopy
(ProductLegacySetSkuAction template) factory method to create a deep copy of ProductLegacySetSkuActiongetSku()
@NotNull Integer
static ProductLegacySetSkuAction
of()
factory methodstatic ProductLegacySetSkuAction
of
(ProductLegacySetSkuAction template) factory method to create a shallow copy ProductLegacySetSkuActionvoid
set skuvoid
setVariantId
(Integer variantId) set variantIdstatic com.fasterxml.jackson.core.type.TypeReference<ProductLegacySetSkuAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
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
-
LEGACY_SET_SKU
discriminator value for ProductLegacySetSkuAction- See Also:
-
-
Method Details
-
getSku
String getSku()- Returns:
- sku
-
getVariantId
- Returns:
- variantId
-
setSku
set sku- Parameters:
sku
- value to be set
-
setVariantId
set variantId- Parameters:
variantId
- value to be set
-
of
factory method- Returns:
- instance of ProductLegacySetSkuAction
-
of
factory method to create a shallow copy ProductLegacySetSkuAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ProductLegacySetSkuAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductLegacySetSkuAction- Returns:
- builder
-
builder
create builder for ProductLegacySetSkuAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductLegacySetSkuAction
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
-