Class ShoppingListReferenceBuilder
java.lang.Object
com.commercetools.api.models.shopping_list.ShoppingListReferenceBuilder
- All Implemented Interfaces:
Builder<ShoppingListReference>
ShoppingListReferenceBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShoppingListReference shoppingListReference = ShoppingListReference.builder()
.id("{id}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ShoppingListReference with checking for non-null required valuesbuilds ShoppingListReference without checking for non-null required valuesgetId()
Unique identifier of the referenced ShoppingList.getObj()
Contains the representation of the expanded ShoppingList.Unique identifier of the referenced ShoppingList.obj
(ShoppingList obj) Contains the representation of the expanded ShoppingList.obj
(Function<ShoppingListBuilder, ShoppingListBuilder> builder) Contains the representation of the expanded ShoppingList.static ShoppingListReferenceBuilder
of()
factory method for an instance of ShoppingListReferenceBuilderstatic ShoppingListReferenceBuilder
of
(ShoppingListReference template) create builder for ShoppingListReference instancewithObj
(Function<ShoppingListBuilder, ShoppingList> builder) Contains the representation of the expanded ShoppingList.
-
Constructor Details
-
ShoppingListReferenceBuilder
public ShoppingListReferenceBuilder()
-
-
Method Details
-
id
Unique identifier of the referenced ShoppingList.
- Parameters:
id
- value to be set- Returns:
- Builder
-
obj
Contains the representation of the expanded ShoppingList. Only present in responses to requests with Reference Expansion for ShoppingLists.
- Parameters:
builder
- function to build the obj value- Returns:
- Builder
-
withObj
Contains the representation of the expanded ShoppingList. Only present in responses to requests with Reference Expansion for ShoppingLists.
- Parameters:
builder
- function to build the obj value- Returns:
- Builder
-
obj
Contains the representation of the expanded ShoppingList. Only present in responses to requests with Reference Expansion for ShoppingLists.
- Parameters:
obj
- value to be set- Returns:
- Builder
-
getId
Unique identifier of the referenced ShoppingList.
- Returns:
- id
-
getObj
Contains the representation of the expanded ShoppingList. Only present in responses to requests with Reference Expansion for ShoppingLists.
- Returns:
- obj
-
build
builds ShoppingListReference with checking for non-null required values- Specified by:
build
in interfaceBuilder<ShoppingListReference>
- Returns:
- ShoppingListReference
-
buildUnchecked
builds ShoppingListReference without checking for non-null required values- Returns:
- ShoppingListReference
-
of
factory method for an instance of ShoppingListReferenceBuilder- Returns:
- builder
-
of
create builder for ShoppingListReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-