Interface ReplicaMyCartDraft

All Superinterfaces:
Draft<ReplicaMyCartDraft>

public interface ReplicaMyCartDraft extends Draft<ReplicaMyCartDraft>
ReplicaMyCartDraft
Example to create an instance using the builder pattern

     ReplicaMyCartDraft replicaMyCartDraft = ReplicaMyCartDraft.builder()
             .build()
 
  • Method Details

    • getReference

      @NotNull @NotNull Object getReference()

      Reference to a Cart or Order that is replicated.

      Returns:
      reference
    • setReference

      void setReference(CartReference reference)

      Reference to a Cart or Order that is replicated.

      Parameters:
      reference - value to be set
    • setReference

      void setReference(OrderReference reference)

      Reference to a Cart or Order that is replicated.

      Parameters:
      reference - value to be set
    • setReference

      void setReference(Object reference)

      Reference to a Cart or Order that is replicated.

      Parameters:
      reference - value to be set
    • of

      static ReplicaMyCartDraft of()
      factory method
      Returns:
      instance of ReplicaMyCartDraft
    • of

      static ReplicaMyCartDraft of(ReplicaMyCartDraft template)
      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

      static ReplicaMyCartDraftBuilder builder()
      builder factory method for ReplicaMyCartDraft
      Returns:
      builder
    • builder

      static ReplicaMyCartDraftBuilder builder(ReplicaMyCartDraft template)
      create builder for ReplicaMyCartDraft instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withReplicaMyCartDraft

      default <T> T withReplicaMyCartDraft(Function<ReplicaMyCartDraft,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<ReplicaMyCartDraft> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference