Interface CartReference
- All Superinterfaces:
Identifiable<Cart>
,IdentifiableObjHolder<Cart>
,Reference
,ReferenceMixin
Reference to a Cart.
Example to create an instance using the builder pattern
CartReference cartReference = CartReference.builder()
.id("{id}")
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CartReferenceBuilder
builder()
builder factory method for CartReferencestatic CartReferenceBuilder
builder
(CartReference template) create builder for CartReference instancestatic CartReference
deepCopy
(CartReference template) factory method to create a deep copy of CartReference@NotNull String
getId()
Unique identifier of the referenced Cart.@Valid Cart
getObj()
Contains the representation of the expanded Cart.static CartReference
of()
factory methodstatic CartReference
of
(CartReference template) factory method to create a shallow copy CartReferencevoid
Unique identifier of the referenced Cart.void
Contains the representation of the expanded Cart.static com.fasterxml.jackson.core.type.TypeReference<CartReference>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCartReference
(Function<CartReference, T> helper) 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
-
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:
getObj
in interfaceIdentifiableObjHolder<Cart>
- Returns:
- obj
-
getId
Unique identifier of the referenced Cart.
- Specified by:
getId
in interfaceIdentifiable<Cart>
- Specified by:
getId
in interfaceReference
- Specified by:
getId
in 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
-
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
-