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