Interface VariantSkuSetMessagePayload
- All Superinterfaces:
MessagePayload,MessagePayloadMixin
Generated after a successful Set SKU update action.
Example to create an instance using the builder pattern
VariantSkuSetMessagePayload variantSkuSetMessagePayload = VariantSkuSetMessagePayload.builder()
.product(productBuilder -> productBuilder)
.staged(true)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for VariantSkuSetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for VariantSkuSetMessagePayloadbuilder(VariantSkuSetMessagePayload template) create builder for VariantSkuSetMessagePayload instancecopyDeep()static VariantSkuSetMessagePayloaddeepCopy(VariantSkuSetMessagePayload template) factory method to create a deep copy of VariantSkuSetMessagePayloadThe previous SKU of the Variant.@NotNull @Valid ProductReferenceReference to the Product containing the Variant.getSku()The SKU that was set on the Variant.@NotNull BooleanWhether the update was only applied to the staged Variant.static VariantSkuSetMessagePayloadof()factory methodstatic VariantSkuSetMessagePayloadof(VariantSkuSetMessagePayload template) factory method to create a shallow copy VariantSkuSetMessagePayloadvoidThe previous SKU of the Variant.voidsetProduct(ProductReference product) Reference to the Product containing the Variant.voidThe SKU that was set on the Variant.voidWhether the update was only applied to the staged Variant.static tools.jackson.core.type.TypeReference<VariantSkuSetMessagePayload>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayloadMethods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
-
Field Details
-
VARIANT_SKU_SET
discriminator value for VariantSkuSetMessagePayload- See Also:
-
-
Method Details
-
getProduct
Reference to the Product containing the Variant.
- Returns:
- product
-
getSku
String getSku()The SKU that was set on the Variant.
- Returns:
- sku
-
getOldSku
String getOldSku()The previous SKU of the Variant.
- Returns:
- oldSku
-
getStaged
Whether the update was only applied to the staged Variant.
- Returns:
- staged
-
setProduct
Reference to the Product containing the Variant.
- Parameters:
product- value to be set
-
setSku
The SKU that was set on the Variant.
- Parameters:
sku- value to be set
-
setOldSku
The previous SKU of the Variant.
- Parameters:
oldSku- value to be set
-
setStaged
Whether the update was only applied to the staged Variant.
- Parameters:
staged- value to be set
-
of
factory method- Returns:
- instance of VariantSkuSetMessagePayload
-
of
factory method to create a shallow copy VariantSkuSetMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
VariantSkuSetMessagePayload copyDeep()- Specified by:
copyDeepin interfaceMessagePayload
-
deepCopy
@Nullable static VariantSkuSetMessagePayload deepCopy(@Nullable VariantSkuSetMessagePayload template) factory method to create a deep copy of VariantSkuSetMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for VariantSkuSetMessagePayload- Returns:
- builder
-
builder
create builder for VariantSkuSetMessagePayload instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withVariantSkuSetMessagePayload
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
-