Class ProductPriceCustomFieldsRemovedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.ProductPriceCustomFieldsRemovedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ProductPriceCustomFieldsRemovedMessagePayload>
public class ProductPriceCustomFieldsRemovedMessagePayloadBuilder
extends Object
implements Builder<ProductPriceCustomFieldsRemovedMessagePayload>
ProductPriceCustomFieldsRemovedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductPriceCustomFieldsRemovedMessagePayload productPriceCustomFieldsRemovedMessagePayload = ProductPriceCustomFieldsRemovedMessagePayload.builder()
.priceId("{priceId}")
.variantId(0.3)
.staged(true)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductPriceCustomFieldsRemovedMessagePayload with checking for non-null required valuesbuilds ProductPriceCustomFieldsRemovedMessagePayload without checking for non-null required valuesUnique identifier of the Price from which the Custom Type was removed.Whether the update was only applied to the staged Product Projection.Unique identifier of the ProductVariant to which the Price belongs.of()
factory method for an instance of ProductPriceCustomFieldsRemovedMessagePayloadBuildercreate builder for ProductPriceCustomFieldsRemovedMessagePayload instanceUnique identifier of the Price from which the Custom Type was removed.Whether the update was only applied to the staged Product Projection.Unique identifier of the ProductVariant to which the Price belongs.
-
Constructor Details
-
ProductPriceCustomFieldsRemovedMessagePayloadBuilder
public ProductPriceCustomFieldsRemovedMessagePayloadBuilder()
-
-
Method Details
-
priceId
Unique identifier of the Price from which the Custom Type was removed.
- Parameters:
priceId
- value to be set- Returns:
- Builder
-
variantId
Unique identifier of the ProductVariant to which the Price belongs.
- Parameters:
variantId
- 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
-
getPriceId
Unique identifier of the Price from which the Custom Type was removed.
- Returns:
- priceId
-
getVariantId
Unique identifier of the ProductVariant to which the Price belongs.
- Returns:
- variantId
-
getStaged
Whether the update was only applied to the staged Product Projection.
- Returns:
- staged
-
build
builds ProductPriceCustomFieldsRemovedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductPriceCustomFieldsRemovedMessagePayload>
- Returns:
- ProductPriceCustomFieldsRemovedMessagePayload
-
buildUnchecked
builds ProductPriceCustomFieldsRemovedMessagePayload without checking for non-null required values- Returns:
- ProductPriceCustomFieldsRemovedMessagePayload
-
of
factory method for an instance of ProductPriceCustomFieldsRemovedMessagePayloadBuilder- Returns:
- builder
-
of
public static ProductPriceCustomFieldsRemovedMessagePayloadBuilder of(ProductPriceCustomFieldsRemovedMessagePayload template) create builder for ProductPriceCustomFieldsRemovedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-