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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ProductPriceKeySetMessagePayload with checking for non-null required valuesbuilds ProductPriceKeySetMessagePayload without checking for non-null required valuesgetKey()Unique identifier of the Price.Whether the update was only applied to the staged Product Projection.value of variantId}of()factory method for an instance of ProductPriceKeySetMessagePayloadBuilderof(ProductPriceKeySetMessagePayload template) create builder for ProductPriceKeySetMessagePayload instanceUnique 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
keyvalue of the Price before the Set Price Key update action.- Parameters:
oldKey- value to be set- Returns:
- Builder
-
key
keyvalue 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
keyvalue of the Price before the Set Price Key update action.- Returns:
- oldKey
-
getKey
keyvalue 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:
buildin 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
-