Class ProductPriceModeSetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.ProductPriceModeSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ProductPriceModeSetMessagePayload>
public class ProductPriceModeSetMessagePayloadBuilder
extends Object
implements Builder<ProductPriceModeSetMessagePayload>
ProductPriceModeSetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductPriceModeSetMessagePayload productPriceModeSetMessagePayload = ProductPriceModeSetMessagePayload.builder()
.to(ProductPriceModeEnum.EMBEDDED)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductPriceModeSetMessagePayload with checking for non-null required valuesbuilds ProductPriceModeSetMessagePayload without checking for non-null required valuesgetTo()
The PriceMode that was set.of()
factory method for an instance of ProductPriceModeSetMessagePayloadBuilderof
(ProductPriceModeSetMessagePayload template) create builder for ProductPriceModeSetMessagePayload instanceThe PriceMode that was set.
-
Constructor Details
-
ProductPriceModeSetMessagePayloadBuilder
public ProductPriceModeSetMessagePayloadBuilder()
-
-
Method Details
-
to
The PriceMode that was set.
- Parameters:
to
- value to be set- Returns:
- Builder
-
getTo
The PriceMode that was set.
- Returns:
- to
-
build
builds ProductPriceModeSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductPriceModeSetMessagePayload>
- Returns:
- ProductPriceModeSetMessagePayload
-
buildUnchecked
builds ProductPriceModeSetMessagePayload without checking for non-null required values- Returns:
- ProductPriceModeSetMessagePayload
-
of
factory method for an instance of ProductPriceModeSetMessagePayloadBuilder- Returns:
- builder
-
of
public static ProductPriceModeSetMessagePayloadBuilder of(ProductPriceModeSetMessagePayload template) create builder for ProductPriceModeSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-