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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for InventoryEntryReference -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for InventoryEntryReferencebuilder(InventoryEntryReference template) create builder for InventoryEntryReference instancecopyDeep()static InventoryEntryReferencedeepCopy(InventoryEntryReference template) factory method to create a deep copy of InventoryEntryReference@NotNull StringgetId()Unique identifier of the referenced InventoryEntry.@Valid InventoryEntrygetObj()Contains the representation of the expanded InventoryEntry.static InventoryEntryReferenceof()factory methodstatic InventoryEntryReferenceof(InventoryEntryReference template) factory method to create a shallow copy InventoryEntryReferencevoidUnique identifier of the referenced InventoryEntry.voidsetObj(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> Taccessor map functionMethods inherited from interface com.commercetools.api.models.common.Reference
getTypeId, withReferenceMethods 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:
getObjin interfaceIdentifiableObjHolder<InventoryEntry>- Returns:
- obj
-
getId
Unique identifier of the referenced InventoryEntry.
- Specified by:
getIdin interfaceIdentifiable<InventoryEntry>- Specified by:
getIdin interfaceReference- Specified by:
getIdin 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
-
copyDeep
InventoryEntryReference copyDeep() -
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
-