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
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ShoppingListReference -
Method Summary
Modifier and TypeMethodDescriptionstatic ShoppingListReferenceBuilder
builder()
builder factory method for ShoppingListReferencestatic ShoppingListReferenceBuilder
builder
(ShoppingListReference template) create builder for ShoppingListReference instancestatic ShoppingListReference
deepCopy
(ShoppingListReference template) factory method to create a deep copy of ShoppingListReference@NotNull String
getId()
Unique identifier of the referenced ShoppingList.@Valid ShoppingList
getObj()
Contains the representation of the expanded ShoppingList.static ShoppingListReference
of()
factory methodstatic ShoppingListReference
of
(ShoppingListReference template) factory method to create a shallow copy ShoppingListReferencevoid
Unique identifier of the referenced ShoppingList.void
setObj
(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> 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
-
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:
getObj
in interfaceIdentifiableObjHolder<ShoppingList>
- Returns:
- obj
-
getId
Unique identifier of the referenced ShoppingList.
- Specified by:
getId
in interfaceIdentifiable<ShoppingList>
- Specified by:
getId
in interfaceReference
- Specified by:
getId
in 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
-
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
-