Package com.commercetools.api.models.me
Class ReplicaMyCartDraftBuilder
java.lang.Object
com.commercetools.api.models.me.ReplicaMyCartDraftBuilder
- All Implemented Interfaces:
Builder<ReplicaMyCartDraft>
ReplicaMyCartDraftBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ReplicaMyCartDraft replicaMyCartDraft = ReplicaMyCartDraft.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ReplicaMyCartDraft with checking for non-null required valuesbuilds ReplicaMyCartDraft without checking for non-null required valuesReference to a Cart or Order that is replicated.static ReplicaMyCartDraftBuilder
of()
factory method for an instance of ReplicaMyCartDraftBuilderstatic ReplicaMyCartDraftBuilder
of
(ReplicaMyCartDraft template) create builder for ReplicaMyCartDraft instanceReference to a Cart or Order that is replicated.
-
Constructor Details
-
ReplicaMyCartDraftBuilder
public ReplicaMyCartDraftBuilder()
-
-
Method Details
-
reference
Reference to a Cart or Order that is replicated.
- Parameters:
reference
- value to be set- Returns:
- Builder
-
getReference
Reference to a Cart or Order that is replicated.
- Returns:
- reference
-
build
builds ReplicaMyCartDraft with checking for non-null required values- Specified by:
build
in interfaceBuilder<ReplicaMyCartDraft>
- Returns:
- ReplicaMyCartDraft
-
buildUnchecked
builds ReplicaMyCartDraft without checking for non-null required values- Returns:
- ReplicaMyCartDraft
-
of
factory method for an instance of ReplicaMyCartDraftBuilder- Returns:
- builder
-
of
create builder for ReplicaMyCartDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-