Class InventoryEntryReferenceBuilder
java.lang.Object
com.commercetools.api.models.inventory.InventoryEntryReferenceBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<InventoryEntryReference>
public class InventoryEntryReferenceBuilder
extends Object
implements io.vrap.rmf.base.client.Builder<InventoryEntryReference>
InventoryEntryReferenceBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
InventoryEntryReference inventoryEntryReference = InventoryEntryReference.builder()
.id("{id}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds InventoryEntryReference with checking for non-null required valuesbuilds InventoryEntryReference without checking for non-null required valuesgetId()
Unique identifier of the referenced InventoryEntry.getObj()
Contains the representation of the expanded InventoryEntry.Unique identifier of the referenced InventoryEntry.obj
(InventoryEntry obj) Contains the representation of the expanded InventoryEntry.Contains the representation of the expanded InventoryEntry.of()
factory method for an instance of InventoryEntryReferenceBuilderof
(InventoryEntryReference template) create builder for InventoryEntryReference instancewithObj
(Function<InventoryEntryBuilder, InventoryEntry> builder) Contains the representation of the expanded InventoryEntry.
-
Constructor Details
-
InventoryEntryReferenceBuilder
public InventoryEntryReferenceBuilder()
-
-
Method Details
-
id
Unique identifier of the referenced InventoryEntry.
- Parameters:
id
- value to be set- Returns:
- Builder
-
obj
public InventoryEntryReferenceBuilder obj(Function<InventoryEntryBuilder, InventoryEntryBuilder> builder) Contains the representation of the expanded InventoryEntry. Only present in responses to requests with Reference Expansion for InventoryEntries.
- Parameters:
builder
- function to build the obj value- Returns:
- Builder
-
withObj
public InventoryEntryReferenceBuilder withObj(Function<InventoryEntryBuilder, InventoryEntry> builder) Contains the representation of the expanded InventoryEntry. Only present in responses to requests with Reference Expansion for InventoryEntries.
- Parameters:
builder
- function to build the obj value- Returns:
- Builder
-
obj
Contains the representation of the expanded InventoryEntry. Only present in responses to requests with Reference Expansion for InventoryEntries.
- Parameters:
obj
- value to be set- Returns:
- Builder
-
getId
Unique identifier of the referenced InventoryEntry.
- Returns:
- id
-
getObj
Contains the representation of the expanded InventoryEntry. Only present in responses to requests with Reference Expansion for InventoryEntries.
- Returns:
- obj
-
build
builds InventoryEntryReference with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<InventoryEntryReference>
- Returns:
- InventoryEntryReference
-
buildUnchecked
builds InventoryEntryReference without checking for non-null required values- Returns:
- InventoryEntryReference
-
of
factory method for an instance of InventoryEntryReferenceBuilder- Returns:
- builder
-
of
create builder for InventoryEntryReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-