Class ProductPriceCustomFieldsSetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.ProductPriceCustomFieldsSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ProductPriceCustomFieldsSetMessagePayload>
public class ProductPriceCustomFieldsSetMessagePayloadBuilder
extends Object
implements Builder<ProductPriceCustomFieldsSetMessagePayload>
ProductPriceCustomFieldsSetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductPriceCustomFieldsSetMessagePayload productPriceCustomFieldsSetMessagePayload = ProductPriceCustomFieldsSetMessagePayload.builder()
.priceId("{priceId}")
.variantId(0.3)
.staged(true)
.customField(customFieldBuilder -> customFieldBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductPriceCustomFieldsSetMessagePayload with checking for non-null required valuesbuilds ProductPriceCustomFieldsSetMessagePayload without checking for non-null required valuescustomField
(CustomFields customField) Custom Fields that were set.Custom Fields that were set.Custom Fields that were set.id
of the previous Custom Type.Unique identifier of the Price on which the Custom Type was set.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 ProductPriceCustomFieldsSetMessagePayloadBuilderof
(ProductPriceCustomFieldsSetMessagePayload template) create builder for ProductPriceCustomFieldsSetMessagePayload instanceid
of the previous Custom Type.Unique identifier of the Price on which the Custom Type was set.Whether the update was only applied to the staged Product Projection.Unique identifier of the ProductVariant to which the Price belongs.Custom Fields that were set.
-
Constructor Details
-
ProductPriceCustomFieldsSetMessagePayloadBuilder
public ProductPriceCustomFieldsSetMessagePayloadBuilder()
-
-
Method Details
-
priceId
Unique identifier of the Price on which the Custom Type was set.
- 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
-
customField
public ProductPriceCustomFieldsSetMessagePayloadBuilder customField(Function<CustomFieldsBuilder, CustomFieldsBuilder> builder) Custom Fields that were set.
- Parameters:
builder
- function to build the customField value- Returns:
- Builder
-
withCustomField
public ProductPriceCustomFieldsSetMessagePayloadBuilder withCustomField(Function<CustomFieldsBuilder, CustomFields> builder) Custom Fields that were set.
- Parameters:
builder
- function to build the customField value- Returns:
- Builder
-
customField
Custom Fields that were set.
- Parameters:
customField
- value to be set- Returns:
- Builder
-
oldTypeId
id
of the previous Custom Type. Absent if there was no previous Custom Type present.- Parameters:
oldTypeId
- value to be set- Returns:
- Builder
-
getPriceId
Unique identifier of the Price on which the Custom Type was set.
- 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
-
getCustomField
Custom Fields that were set.
- Returns:
- customField
-
getOldTypeId
id
of the previous Custom Type. Absent if there was no previous Custom Type present.- Returns:
- oldTypeId
-
build
builds ProductPriceCustomFieldsSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductPriceCustomFieldsSetMessagePayload>
- Returns:
- ProductPriceCustomFieldsSetMessagePayload
-
buildUnchecked
builds ProductPriceCustomFieldsSetMessagePayload without checking for non-null required values- Returns:
- ProductPriceCustomFieldsSetMessagePayload
-
of
factory method for an instance of ProductPriceCustomFieldsSetMessagePayloadBuilder- Returns:
- builder
-
of
public static ProductPriceCustomFieldsSetMessagePayloadBuilder of(ProductPriceCustomFieldsSetMessagePayload template) create builder for ProductPriceCustomFieldsSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-