Class ProductSelectionCreatedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.ProductSelectionCreatedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ProductSelectionCreatedMessagePayload>
public class ProductSelectionCreatedMessagePayloadBuilder
extends Object
implements Builder<ProductSelectionCreatedMessagePayload>
ProductSelectionCreatedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSelectionCreatedMessagePayload productSelectionCreatedMessagePayload = ProductSelectionCreatedMessagePayload.builder()
.productSelection(productSelectionBuilder -> productSelectionBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductSelectionCreatedMessagePayload with checking for non-null required valuesbuilds ProductSelectionCreatedMessagePayload without checking for non-null required valuesProduct Selection that was created.of()
factory method for an instance of ProductSelectionCreatedMessagePayloadBuilderof
(ProductSelectionCreatedMessagePayload template) create builder for ProductSelectionCreatedMessagePayload instanceproductSelection
(ProductSelection productSelection) Product Selection that was created.Product Selection that was created.Product Selection that was created.
-
Constructor Details
-
ProductSelectionCreatedMessagePayloadBuilder
public ProductSelectionCreatedMessagePayloadBuilder()
-
-
Method Details
-
productSelection
public ProductSelectionCreatedMessagePayloadBuilder productSelection(Function<ProductSelectionBuilder, ProductSelectionBuilder> builder) Product Selection that was created.
- Parameters:
builder
- function to build the productSelection value- Returns:
- Builder
-
withProductSelection
public ProductSelectionCreatedMessagePayloadBuilder withProductSelection(Function<ProductSelectionBuilder, ProductSelection> builder) Product Selection that was created.
- Parameters:
builder
- function to build the productSelection value- Returns:
- Builder
-
productSelection
public ProductSelectionCreatedMessagePayloadBuilder productSelection(ProductSelection productSelection) Product Selection that was created.
- Parameters:
productSelection
- value to be set- Returns:
- Builder
-
getProductSelection
Product Selection that was created.
- Returns:
- productSelection
-
build
builds ProductSelectionCreatedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductSelectionCreatedMessagePayload>
- Returns:
- ProductSelectionCreatedMessagePayload
-
buildUnchecked
builds ProductSelectionCreatedMessagePayload without checking for non-null required values- Returns:
- ProductSelectionCreatedMessagePayload
-
of
factory method for an instance of ProductSelectionCreatedMessagePayloadBuilder- Returns:
- builder
-
of
public static ProductSelectionCreatedMessagePayloadBuilder of(ProductSelectionCreatedMessagePayload template) create builder for ProductSelectionCreatedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-