Class ShoppingListResourceIdentifierBuilder
java.lang.Object
com.commercetools.api.models.shopping_list.ShoppingListResourceIdentifierBuilder
- All Implemented Interfaces:
Builder<ShoppingListResourceIdentifier>
public class ShoppingListResourceIdentifierBuilder
extends Object
implements Builder<ShoppingListResourceIdentifier>
ShoppingListResourceIdentifierBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShoppingListResourceIdentifier shoppingListResourceIdentifier = ShoppingListResourceIdentifier.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ShoppingListResourceIdentifier with checking for non-null required valuesbuilds ShoppingListResourceIdentifier without checking for non-null required valuesgetId()
Unique identifier of the referenced ShoppingList.getKey()
User-defined unique identifier of the referenced ShoppingList.Unique identifier of the referenced ShoppingList.User-defined unique identifier of the referenced ShoppingList.of()
factory method for an instance of ShoppingListResourceIdentifierBuilderof
(ShoppingListResourceIdentifier template) create builder for ShoppingListResourceIdentifier instance
-
Constructor Details
-
ShoppingListResourceIdentifierBuilder
public ShoppingListResourceIdentifierBuilder()
-
-
Method Details
-
id
Unique identifier of the referenced ShoppingList. Required if
key
is absent.- Parameters:
id
- value to be set- Returns:
- Builder
-
key
User-defined unique identifier of the referenced ShoppingList. Required if
id
is absent.- Parameters:
key
- value to be set- Returns:
- Builder
-
getId
Unique identifier of the referenced ShoppingList. Required if
key
is absent.- Returns:
- id
-
getKey
User-defined unique identifier of the referenced ShoppingList. Required if
id
is absent.- Returns:
- key
-
build
builds ShoppingListResourceIdentifier with checking for non-null required values- Specified by:
build
in interfaceBuilder<ShoppingListResourceIdentifier>
- Returns:
- ShoppingListResourceIdentifier
-
buildUnchecked
builds ShoppingListResourceIdentifier without checking for non-null required values- Returns:
- ShoppingListResourceIdentifier
-
of
factory method for an instance of ShoppingListResourceIdentifierBuilder- Returns:
- builder
-
of
create builder for ShoppingListResourceIdentifier instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-