@Generated(value="io.sphere.sdk.annotations.processors.generators.DraftBuilderGenerator", comments="Generated from: io.sphere.sdk.carts.commands.CartReplicationDraft") public final class CartReplicationDraftBuilder extends Base implements Builder<CartReplicationDraftDsl>
CartReplicationDraft.| Modifier and Type | Method and Description |
|---|---|
CartReplicationDraftDsl |
build()
Creates a new instance of
CartReplicationDraftDsl with the values of this builder. |
String |
getKey() |
Reference<? extends CartLike> |
getReference() |
CartReplicationDraftBuilder |
key(String key)
Sets the
key property of this builder. |
static CartReplicationDraftBuilder |
of(CartReplicationDraft template)
Creates a new object initialized with the fields of the template parameter.
|
static CartReplicationDraftBuilder |
of(Reference<? extends CartLike> reference)
Creates a new object initialized with the given values.
|
CartReplicationDraftBuilder |
reference(Referenceable<? extends CartLike> reference)
Sets the
reference property of this builder. |
public CartReplicationDraftBuilder key(@Nullable String key)
key property of this builder.key - the value for CartReplicationDraft.getKey()public CartReplicationDraftBuilder reference(Referenceable<? extends CartLike> reference)
reference property of this builder.reference - the value for CartReplicationDraft.getReference()public CartReplicationDraftDsl build()
CartReplicationDraftDsl with the values of this builder.build in interface Builder<CartReplicationDraftDsl>public static CartReplicationDraftBuilder of(Reference<? extends CartLike> reference)
reference - initial value for the CartReplicationDraft.getReference() propertypublic static CartReplicationDraftBuilder of(CartReplicationDraft template)
template - the template