Class ProductSelectionReferenceBuilder
java.lang.Object
com.commercetools.api.models.product_selection.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
-
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.getObj()
Contains the representation of the expanded ProductSelection.Unique identifier of the referenced ProductSelection.obj
(ProductSelection obj) Contains the representation of the expanded ProductSelection.Contains the representation of the expanded ProductSelection.of()
factory method for an instance of ProductSelectionReferenceBuilderof
(ProductSelectionReference template) create builder for ProductSelectionReference instanceContains the representation of the expanded ProductSelection.
-
Constructor Details
-
ProductSelectionReferenceBuilder
public ProductSelectionReferenceBuilder()
-
-
Method Details
-
id
Unique identifier of the referenced ProductSelection.
- Parameters:
id
- value to be set- Returns:
- Builder
-
obj
public ProductSelectionReferenceBuilder obj(Function<ProductSelectionBuilder, ProductSelectionBuilder> builder) Contains the representation of the expanded ProductSelection. Only present in responses to requests with Reference Expansion for ProductSelections.
- Parameters:
builder
- function to build the obj value- Returns:
- Builder
-
withObj
public ProductSelectionReferenceBuilder withObj(Function<ProductSelectionBuilder, ProductSelection> builder) Contains the representation of the expanded ProductSelection. Only present in responses to requests with Reference Expansion for ProductSelections.
- Parameters:
builder
- function to build the obj value- Returns:
- Builder
-
obj
Contains the representation of the expanded ProductSelection. Only present in responses to requests with Reference Expansion for ProductSelections.
- Parameters:
obj
- value to be set- Returns:
- Builder
-
getId
Unique identifier of the referenced ProductSelection.
- Returns:
- id
-
getObj
Contains the representation of the expanded ProductSelection. Only present in responses to requests with Reference Expansion for ProductSelections.
- Returns:
- obj
-
build
builds ProductSelectionReference with checking for non-null required values- Specified by:
build
in 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
-