Interface CartReference
- All Superinterfaces:
Identifiable<Cart>,IdentifiableObjHolder<Cart>,Reference,ReferenceMixin
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic CartReferenceBuilderbuilder()builder factory method for CartReferencestatic CartReferenceBuilderbuilder(CartReference template) create builder for CartReference instancecopyDeep()static CartReferencedeepCopy(CartReference template) factory method to create a deep copy of CartReference@NotNull StringgetId()Unique identifier of the referenced Cart.@Valid CartgetObj()Contains the representation of the expanded Cart.static CartReferenceof()factory methodstatic CartReferenceof(CartReference template) factory method to create a shallow copy CartReferencevoidUnique identifier of the referenced Cart.voidContains the representation of the expanded Cart.static com.fasterxml.jackson.core.type.TypeReference<CartReference>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithCartReference(Function<CartReference, T> helper) accessor 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
-
CART
discriminator value for CartReference- See Also:
-
-
Method Details
-
getObj
Contains the representation of the expanded Cart. Only present in responses to requests with Reference Expansion for Carts.
- Specified by:
getObjin interfaceIdentifiableObjHolder<Cart>- Returns:
- obj
-
getId
Unique identifier of the referenced Cart.
- Specified by:
getIdin interfaceIdentifiable<Cart>- Specified by:
getIdin interfaceReference- Specified by:
getIdin interfaceReferenceMixin- Returns:
- id
-
setObj
Contains the representation of the expanded Cart. Only present in responses to requests with Reference Expansion for Carts.
- Parameters:
obj- value to be set
-
setId
Unique identifier of the referenced Cart.
-
of
factory method- Returns:
- instance of CartReference
-
of
factory method to create a shallow copy CartReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CartReference copyDeep() -
deepCopy
factory method to create a deep copy of CartReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartReference- Returns:
- builder
-
builder
create builder for CartReference instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCartReference
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
-