Interface ShoppingListReference
- All Superinterfaces:
Identifiable<ShoppingList>,IdentifiableObjHolder<ShoppingList>,Reference,ReferenceMixin
public interface ShoppingListReference
extends Reference, Identifiable<ShoppingList>, IdentifiableObjHolder<ShoppingList>
Reference to a ShoppingList.
Example to create an instance using the builder pattern
ShoppingListReference shoppingListReference = ShoppingListReference.builder()
.id("{id}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ShoppingListReference -
Method Summary
Modifier and TypeMethodDescriptionstatic ShoppingListReferenceBuilderbuilder()builder factory method for ShoppingListReferencestatic ShoppingListReferenceBuilderbuilder(ShoppingListReference template) create builder for ShoppingListReference instancecopyDeep()static ShoppingListReferencedeepCopy(ShoppingListReference template) factory method to create a deep copy of ShoppingListReference@NotNull StringgetId()Unique identifier of the referenced ShoppingList.@Valid ShoppingListgetObj()Contains the representation of the expanded ShoppingList.static ShoppingListReferenceof()factory methodstatic ShoppingListReferenceof(ShoppingListReference template) factory method to create a shallow copy ShoppingListReferencevoidUnique identifier of the referenced ShoppingList.voidsetObj(ShoppingList obj) Contains the representation of the expanded ShoppingList.static com.fasterxml.jackson.core.type.TypeReference<ShoppingListReference>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
-
SHOPPING_LIST
discriminator value for ShoppingListReference- See Also:
-
-
Method Details
-
getObj
Contains the representation of the expanded ShoppingList. Only present in responses to requests with Reference Expansion for ShoppingLists.
- Specified by:
getObjin interfaceIdentifiableObjHolder<ShoppingList>- Returns:
- obj
-
getId
Unique identifier of the referenced ShoppingList.
- Specified by:
getIdin interfaceIdentifiable<ShoppingList>- Specified by:
getIdin interfaceReference- Specified by:
getIdin interfaceReferenceMixin- Returns:
- id
-
setObj
Contains the representation of the expanded ShoppingList. Only present in responses to requests with Reference Expansion for ShoppingLists.
- Parameters:
obj- value to be set
-
setId
Unique identifier of the referenced ShoppingList.
-
of
factory method- Returns:
- instance of ShoppingListReference
-
of
factory method to create a shallow copy ShoppingListReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ShoppingListReference copyDeep() -
deepCopy
factory method to create a deep copy of ShoppingListReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ShoppingListReference- Returns:
- builder
-
builder
create builder for ShoppingListReference instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withShoppingListReference
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
-