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 ReplicaCartDraftBuilderbuilder()builder factory method for ReplicaCartDraftstatic ReplicaCartDraftBuilderbuilder(ReplicaCartDraft template) create builder for ReplicaCartDraft instancecopyDeep()static ReplicaCartDraftdeepCopy(ReplicaCartDraft template) factory method to create a deep copy of ReplicaCartDraftgetKey()User-defined unique identifier for the Cart.@NotNull @Valid ReferenceA Reference represents a loose reference to another resource in the same Project identified by itsid.static ReplicaCartDraftof()factory methodstatic ReplicaCartDraftof(ReplicaCartDraft template) factory method to create a shallow copy ReplicaCartDraftvoidUser-defined unique identifier for the Cart.voidsetReference(Reference reference) A Reference represents a loose reference to another resource in the same Project identified by itsid.default voidsetReference(Object reference) Deprecated.static com.fasterxml.jackson.core.type.TypeReference<ReplicaCartDraft>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithReplicaCartDraft(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. ThetypeIdindicates 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 additionalobjfield 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. ThetypeIdindicates 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 additionalobjfield 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
-
copyDeep
ReplicaCartDraft copyDeep() -
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
-