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