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