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