Class ProductSelectionReferenceBuilder
java.lang.Object
com.commercetools.history.models.common.ProductSelectionReferenceBuilder
- All Implemented Interfaces:
Builder<ProductSelectionReference>
public class ProductSelectionReferenceBuilder
extends Object
implements Builder<ProductSelectionReference>
ProductSelectionReferenceBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSelectionReference productSelectionReference = ProductSelectionReference.builder()
.id("{id}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ProductSelectionReference with checking for non-null required valuesbuilds ProductSelectionReference without checking for non-null required valuesgetId()Unique identifier of the referenced ProductSelection.Unique identifier of the referenced ProductSelection.of()factory method for an instance of ProductSelectionReferenceBuilderof(ProductSelectionReference template) create builder for ProductSelectionReference instance
-
Constructor Details
-
ProductSelectionReferenceBuilder
public ProductSelectionReferenceBuilder()
-
-
Method Details
-
id
Unique identifier of the referenced ProductSelection.
- Parameters:
id- value to be set- Returns:
- Builder
-
getId
Unique identifier of the referenced ProductSelection.
- Returns:
- id
-
build
builds ProductSelectionReference with checking for non-null required values- Specified by:
buildin interfaceBuilder<ProductSelectionReference>- Returns:
- ProductSelectionReference
-
buildUnchecked
builds ProductSelectionReference without checking for non-null required values- Returns:
- ProductSelectionReference
-
of
factory method for an instance of ProductSelectionReferenceBuilder- Returns:
- builder
-
of
create builder for ProductSelectionReference instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-