Package com.commercetools.api.models.me
Interface ReplicaMyCartDraft
- All Superinterfaces:
Draft<ReplicaMyCartDraft>
ReplicaMyCartDraft
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ReplicaMyCartDraft replicaMyCartDraft = ReplicaMyCartDraft.builder()
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ReplicaMyCartDraftBuilder
builder()
builder factory method for ReplicaMyCartDraftstatic ReplicaMyCartDraftBuilder
builder
(ReplicaMyCartDraft template) create builder for ReplicaMyCartDraft instancestatic ReplicaMyCartDraft
deepCopy
(ReplicaMyCartDraft template) factory method to create a deep copy of ReplicaMyCartDraft@NotNull Object
Reference to a Cart or Order that is replicated.static ReplicaMyCartDraft
of()
factory methodstatic ReplicaMyCartDraft
of
(ReplicaMyCartDraft template) factory method to create a shallow copy ReplicaMyCartDraftvoid
setReference
(CartReference reference) Reference to a Cart or Order that is replicated.void
setReference
(OrderReference reference) Reference to a Cart or Order that is replicated.void
setReference
(Object reference) Reference to a Cart or Order that is replicated.static com.fasterxml.jackson.core.type.TypeReference<ReplicaMyCartDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withReplicaMyCartDraft
(Function<ReplicaMyCartDraft, T> helper) accessor map function
-
Method Details
-
getReference
Reference to a Cart or Order that is replicated.
- Returns:
- reference
-
setReference
Reference to a Cart or Order that is replicated.
- Parameters:
reference
- value to be set
-
setReference
Reference to a Cart or Order that is replicated.
- Parameters:
reference
- value to be set
-
setReference
Reference to a Cart or Order that is replicated.
- Parameters:
reference
- value to be set
-
of
factory method- Returns:
- instance of ReplicaMyCartDraft
-
of
factory method to create a shallow copy ReplicaMyCartDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ReplicaMyCartDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ReplicaMyCartDraft- Returns:
- builder
-
builder
create builder for ReplicaMyCartDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withReplicaMyCartDraft
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
-