Interface ProductTailoringKeySetMessagePayload
- All Superinterfaces:
MessagePayload,MessagePayloadMixin
Generated after a successful Product Tailoring Set Key update action.
Example to create an instance using the builder pattern
ProductTailoringKeySetMessagePayload productTailoringKeySetMessagePayload = ProductTailoringKeySetMessagePayload.builder()
.store(storeBuilder -> storeBuilder)
.product(productBuilder -> productBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductTailoringKeySetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductTailoringKeySetMessagePayloadbuilder(ProductTailoringKeySetMessagePayload template) create builder for ProductTailoringKeySetMessagePayload instancecopyDeep()deepCopy(ProductTailoringKeySetMessagePayload template) factory method to create a deep copy of ProductTailoringKeySetMessagePayloadgetKey()@NotNull @Valid ProductReferenceReference to the Product the Product Tailoring belongs to.User-defined unique identifier of the Product this Product Tailoring belongs to.@NotNull @Valid StoreKeyReferencegetStore()The Store to which the Product Tailoring belongs.of()factory methodof(ProductTailoringKeySetMessagePayload template) factory method to create a shallow copy ProductTailoringKeySetMessagePayloadvoidvoidvoidsetProduct(ProductReference product) Reference to the Product the Product Tailoring belongs to.voidsetProductKey(String productKey) User-defined unique identifier of the Product this Product Tailoring belongs to.voidsetStore(StoreKeyReference store) The Store to which the Product Tailoring belongs.static tools.jackson.core.type.TypeReference<ProductTailoringKeySetMessagePayload>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
-
PRODUCT_TAILORING_KEY_SET
discriminator value for ProductTailoringKeySetMessagePayload- See Also:
-
-
Method Details
-
getStore
The Store to which the Product Tailoring belongs.
- Returns:
- store
-
getProductKey
String getProductKey()User-defined unique identifier of the Product this Product Tailoring belongs to.
- Returns:
- productKey
-
getProduct
Reference to the Product the Product Tailoring belongs to.
- Returns:
- product
-
getKey
String getKey()keyvalue of the ProductTailoring after the Set Key update action.- Returns:
- key
-
getOldKey
String getOldKey()keyvalue of the ProductTailoring before the Set Key update action.- Returns:
- oldKey
-
setStore
The Store to which the Product Tailoring belongs.
- Parameters:
store- value to be set
-
setProductKey
User-defined unique identifier of the Product this Product Tailoring belongs to.
- Parameters:
productKey- value to be set
-
setProduct
Reference to the Product the Product Tailoring belongs to.
- Parameters:
product- value to be set
-
setKey
keyvalue of the ProductTailoring after the Set Key update action.- Parameters:
key- value to be set
-
setOldKey
keyvalue of the ProductTailoring before the Set Key update action.- Parameters:
oldKey- value to be set
-
of
factory method- Returns:
- instance of ProductTailoringKeySetMessagePayload
-
of
factory method to create a shallow copy ProductTailoringKeySetMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductTailoringKeySetMessagePayload copyDeep()- Specified by:
copyDeepin interfaceMessagePayload
-
deepCopy
@Nullable static ProductTailoringKeySetMessagePayload deepCopy(@Nullable ProductTailoringKeySetMessagePayload template) factory method to create a deep copy of ProductTailoringKeySetMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductTailoringKeySetMessagePayload- Returns:
- builder
-
builder
static ProductTailoringKeySetMessagePayloadBuilder builder(ProductTailoringKeySetMessagePayload template) create builder for ProductTailoringKeySetMessagePayload instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductTailoringKeySetMessagePayload
default <T> T withProductTailoringKeySetMessagePayload(Function<ProductTailoringKeySetMessagePayload, T> helper) 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
-