Class ReplicaCartDraftImpl
- All Implemented Interfaces:
ReplicaCartDraft
,WithKey
,io.vrap.rmf.base.client.Draft<ReplicaCartDraft>
,io.vrap.rmf.base.client.ModelBase
Used for replicating an existing Cart or Order.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getKey()
User-defined unique identifier for the Cart.A Reference represents a loose reference to another resource in the same Project identified by itsid
.int
hashCode()
void
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
.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.cart.ReplicaCartDraft
setReference, withReplicaCartDraft
-
Constructor Details
-
ReplicaCartDraftImpl
public ReplicaCartDraftImpl()create empty instance
-
-
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.- Specified by:
getReference
in interfaceReplicaCartDraft
- Returns:
- reference
-
getKey
User-defined unique identifier for the Cart.
- Specified by:
getKey
in interfaceReplicaCartDraft
- Specified by:
getKey
in interfaceWithKey
- Returns:
- key
-
setReference
Description copied from interface:ReplicaCartDraft
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.- Specified by:
setReference
in interfaceReplicaCartDraft
- Parameters:
reference
- value to be set
-
setKey
Description copied from interface:ReplicaCartDraft
User-defined unique identifier for the Cart.
- Specified by:
setKey
in interfaceReplicaCartDraft
- Parameters:
key
- value to be set
-
equals
-
hashCode
public int hashCode()
-