Interface CartKeyReference
- All Superinterfaces:
KeyReference
References a cart by key.
Example to create an instance using the builder pattern
CartKeyReference cartKeyReference = CartKeyReference.builder()
.key("{key}")
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CartKeyReferenceBuilder
builder()
builder factory method for CartKeyReferencestatic CartKeyReferenceBuilder
builder
(CartKeyReference template) create builder for CartKeyReference instancestatic CartKeyReference
deepCopy
(CartKeyReference template) factory method to create a deep copy of CartKeyReferencestatic CartKeyReference
of()
factory methodstatic CartKeyReference
of
(CartKeyReference template) factory method to create a shallow copy CartKeyReferencestatic com.fasterxml.jackson.core.type.TypeReference<CartKeyReference>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCartKeyReference
(Function<CartKeyReference, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.common.KeyReference
getKey, getTypeId, setKey, withKeyReference
-
Field Details
-
CART
discriminator value for CartKeyReference- See Also:
-
-
Method Details
-
of
factory method- Returns:
- instance of CartKeyReference
-
of
factory method to create a shallow copy CartKeyReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CartKeyReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartKeyReference- Returns:
- builder
-
builder
create builder for CartKeyReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartKeyReference
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
-