Interface InventoryEntryReference
- All Superinterfaces:
Identifiable<InventoryEntry>
,IdentifiableObjHolder<InventoryEntry>
,Reference
,ReferenceMixin
public interface InventoryEntryReference
extends Reference, Identifiable<InventoryEntry>, IdentifiableObjHolder<InventoryEntry>
Reference to an InventoryEntry.
Example to create an instance using the builder pattern
InventoryEntryReference inventoryEntryReference = InventoryEntryReference.builder()
.id("{id}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for InventoryEntryReference -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for InventoryEntryReferencebuilder
(InventoryEntryReference template) create builder for InventoryEntryReference instancestatic InventoryEntryReference
deepCopy
(InventoryEntryReference template) factory method to create a deep copy of InventoryEntryReference@NotNull String
getId()
Unique identifier of the referenced InventoryEntry.@Valid InventoryEntry
getObj()
Contains the representation of the expanded InventoryEntry.static InventoryEntryReference
of()
factory methodstatic InventoryEntryReference
of
(InventoryEntryReference template) factory method to create a shallow copy InventoryEntryReferencevoid
Unique identifier of the referenced InventoryEntry.void
setObj
(InventoryEntry obj) Contains the representation of the expanded InventoryEntry.static com.fasterxml.jackson.core.type.TypeReference<InventoryEntryReference>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.common.Reference
getTypeId, withReference
Methods inherited from interface com.commercetools.api.models.common.ReferenceMixin
toResourceIdentifier
-
Field Details
-
INVENTORY_ENTRY
discriminator value for InventoryEntryReference- See Also:
-
-
Method Details
-
getObj
Contains the representation of the expanded InventoryEntry. Only present in responses to requests with Reference Expansion for InventoryEntries.
- Specified by:
getObj
in interfaceIdentifiableObjHolder<InventoryEntry>
- Returns:
- obj
-
getId
Unique identifier of the referenced InventoryEntry.
- Specified by:
getId
in interfaceIdentifiable<InventoryEntry>
- Specified by:
getId
in interfaceReference
- Specified by:
getId
in interfaceReferenceMixin
- Returns:
- id
-
setObj
Contains the representation of the expanded InventoryEntry. Only present in responses to requests with Reference Expansion for InventoryEntries.
- Parameters:
obj
- value to be set
-
setId
Unique identifier of the referenced InventoryEntry.
-
of
factory method- Returns:
- instance of InventoryEntryReference
-
of
factory method to create a shallow copy InventoryEntryReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of InventoryEntryReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for InventoryEntryReference- Returns:
- builder
-
builder
create builder for InventoryEntryReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withInventoryEntryReference
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-