Class ProductPriceKeySetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.ProductPriceKeySetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ProductPriceKeySetMessagePayload>
public class ProductPriceKeySetMessagePayloadBuilder
extends Object
implements Builder<ProductPriceKeySetMessagePayload>
ProductPriceKeySetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductPriceKeySetMessagePayload productPriceKeySetMessagePayload = ProductPriceKeySetMessagePayload.builder()
.variantId(0.3)
.staged(true)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductPriceKeySetMessagePayload with checking for non-null required valuesbuilds ProductPriceKeySetMessagePayload without checking for non-null required valuesgetKey()
key
value of the Price after the Set Price Key update action.key
value of the Price before the Set Price Key update action.Unique identifier of the Price.Whether the update was only applied to the staged Product Projection.value of variantId}key
value of the Price after the Set Price Key update action.of()
factory method for an instance of ProductPriceKeySetMessagePayloadBuilderof
(ProductPriceKeySetMessagePayload template) create builder for ProductPriceKeySetMessagePayload instancekey
value of the Price before the Set Price Key update action.Unique identifier of the Price.Whether the update was only applied to the staged Product Projection.set the value to the variantId
-
Constructor Details
-
ProductPriceKeySetMessagePayloadBuilder
public ProductPriceKeySetMessagePayloadBuilder()
-
-
Method Details
-
variantId
set the value to the variantId- Parameters:
variantId
- value to be set- Returns:
- Builder
-
priceId
Unique identifier of the Price.
- Parameters:
priceId
- value to be set- Returns:
- Builder
-
oldKey
key
value of the Price before the Set Price Key update action.- Parameters:
oldKey
- value to be set- Returns:
- Builder
-
key
key
value of the Price after the Set Price Key update action.- Parameters:
key
- value to be set- Returns:
- Builder
-
staged
Whether the update was only applied to the staged Product Projection.
- Parameters:
staged
- value to be set- Returns:
- Builder
-
getVariantId
value of variantId}- Returns:
- variantId
-
getPriceId
Unique identifier of the Price.
- Returns:
- priceId
-
getOldKey
key
value of the Price before the Set Price Key update action.- Returns:
- oldKey
-
getKey
key
value of the Price after the Set Price Key update action.- Returns:
- key
-
getStaged
Whether the update was only applied to the staged Product Projection.
- Returns:
- staged
-
build
builds ProductPriceKeySetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductPriceKeySetMessagePayload>
- Returns:
- ProductPriceKeySetMessagePayload
-
buildUnchecked
builds ProductPriceKeySetMessagePayload without checking for non-null required values- Returns:
- ProductPriceKeySetMessagePayload
-
of
factory method for an instance of ProductPriceKeySetMessagePayloadBuilder- Returns:
- builder
-
of
create builder for ProductPriceKeySetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-