Interface VariantSkuSetMessage
- All Superinterfaces:
BaseResource,DomainResource<Message>,Identifiable<Message>,Message,Versioned<Message>
Generated after a successful Set SKU update action.
Example to create an instance using the builder pattern
VariantSkuSetMessage variantSkuSetMessage = VariantSkuSetMessage.builder()
.id("{id}")
.version(0.3)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.sequenceNumber(0.3)
.resource(resourceBuilder -> resourceBuilder)
.resourceVersion(0.3)
.staged(true)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for VariantSkuSetMessage -
Method Summary
Modifier and TypeMethodDescriptionstatic VariantSkuSetMessageBuilderbuilder()builder factory method for VariantSkuSetMessagestatic VariantSkuSetMessageBuilderbuilder(VariantSkuSetMessage template) create builder for VariantSkuSetMessage instancecopyDeep()static VariantSkuSetMessagedeepCopy(VariantSkuSetMessage template) factory method to create a deep copy of VariantSkuSetMessageThe previous SKU of the Variant.getSku()The SKU that was set on the Variant.@NotNull BooleanWhether the update was only applied to the staged Variant.static VariantSkuSetMessageof()factory methodstatic VariantSkuSetMessageof(VariantSkuSetMessage template) factory method to create a shallow copy VariantSkuSetMessagevoidThe previous SKU of 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<VariantSkuSetMessage>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithVariantSkuSetMessage(Function<VariantSkuSetMessage, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResourceMethods inherited from interface com.commercetools.api.models.DomainResource
getMethods inherited from interface com.commercetools.api.models.message.Message
getCreatedAt, getCreatedBy, getId, getLastModifiedAt, getLastModifiedBy, getResource, getResourceUserProvidedIdentifiers, getResourceVersion, getSequenceNumber, getType, getVersion, setCreatedAt, setCreatedBy, setId, setLastModifiedAt, setLastModifiedBy, setResource, setResourceUserProvidedIdentifiers, setResourceVersion, setSequenceNumber, setVersion, withMessage
-
Field Details
-
VARIANT_SKU_SET
discriminator value for VariantSkuSetMessage- See Also:
-
-
Method Details
-
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
-
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 VariantSkuSetMessage
-
of
factory method to create a shallow copy VariantSkuSetMessage- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
VariantSkuSetMessage copyDeep()- Specified by:
copyDeepin interfaceBaseResource- Specified by:
copyDeepin interfaceMessage
-
deepCopy
factory method to create a deep copy of VariantSkuSetMessage- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for VariantSkuSetMessage- Returns:
- builder
-
builder
create builder for VariantSkuSetMessage instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withVariantSkuSetMessage
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
-