Interface ReplicaCartDraft
- All Superinterfaces:
Draft<ReplicaCartDraft>
,WithKey
Used for replicating an existing Cart or Order.
Example to create an instance using the builder pattern
ReplicaCartDraft replicaCartDraft = ReplicaCartDraft.builder()
.reference(referenceBuilder -> referenceBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ReplicaCartDraftBuilder
builder()
builder factory method for ReplicaCartDraftstatic ReplicaCartDraftBuilder
builder
(ReplicaCartDraft template) create builder for ReplicaCartDraft instancestatic ReplicaCartDraft
deepCopy
(ReplicaCartDraft template) factory method to create a deep copy of ReplicaCartDraftgetKey()
User-defined unique identifier for the Cart.@NotNull @Valid Reference
A Reference represents a loose reference to another resource in the same Project identified by itsid
.static ReplicaCartDraft
of()
factory methodstatic ReplicaCartDraft
of
(ReplicaCartDraft template) factory method to create a shallow copy ReplicaCartDraftvoid
User-defined unique identifier for the Cart.void
setReference
(Reference reference) A Reference represents a loose reference to another resource in the same Project identified by itsid
.default void
setReference
(Object reference) Deprecated.static com.fasterxml.jackson.core.type.TypeReference<ReplicaCartDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withReplicaCartDraft
(Function<ReplicaCartDraft, T> helper) accessor map function
-
Method Details
-
getReference
A Reference represents a loose reference to another resource in the same Project identified by its
id
. ThetypeId
indicates the type of the referenced resource. Each resource type has its corresponding Reference type, like ChannelReference. A referenced resource can be embedded through Reference Expansion. The expanded reference is the value of an additionalobj
field then.- Returns:
- reference
-
getKey
String getKey()User-defined unique identifier for the Cart.
-
setReference
A Reference represents a loose reference to another resource in the same Project identified by its
id
. ThetypeId
indicates the type of the referenced resource. Each resource type has its corresponding Reference type, like ChannelReference. A referenced resource can be embedded through Reference Expansion. The expanded reference is the value of an additionalobj
field then.- Parameters:
reference
- value to be set
-
setKey
User-defined unique identifier for the Cart.
- Parameters:
key
- value to be set
-
of
factory method- Returns:
- instance of ReplicaCartDraft
-
of
factory method to create a shallow copy ReplicaCartDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ReplicaCartDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ReplicaCartDraft- Returns:
- builder
-
builder
create builder for ReplicaCartDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withReplicaCartDraft
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
setReference
Deprecated. -
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-