@Generated(value="io.sphere.sdk.annotations.processors.generators.DraftBuilderGenerator", comments="Generated from: io.sphere.sdk.orders.OrderFromCartDraft") public final class OrderFromCartDraftBuilder extends Base implements Builder<OrderFromCartDraftDsl>
OrderFromCartDraft.| Modifier and Type | Method and Description |
|---|---|
OrderFromCartDraftDsl |
build()
Creates a new instance of
OrderFromCartDraftDsl with the values of this builder. |
OrderFromCartDraftBuilder |
cart(ResourceIdentifier<Cart> cart)
Sets the
cart property of this builder. |
OrderFromCartDraftBuilder |
custom(CustomFieldsDraft custom)
Sets the
custom property of this builder. |
ResourceIdentifier<Cart> |
getCart() |
CustomFieldsDraft |
getCustom() |
String |
getId()
Deprecated.
This method will be removed with the next major SDK update.
|
String |
getOrderNumber() |
OrderState |
getOrderState() |
PaymentState |
getPaymentState() |
ShipmentState |
getShipmentState() |
Reference<State> |
getState() |
Long |
getVersion() |
OrderFromCartDraftBuilder |
id(String id)
Deprecated.
This method will be removed with the next major SDK update.
|
static OrderFromCartDraftBuilder |
of(OrderFromCartDraft template)
Creates a new object initialized with the fields of the template parameter.
|
static OrderFromCartDraftBuilder |
of(ResourceIdentifier<Cart> cart,
Long version)
Creates a new object initialized with the given values.
|
static OrderFromCartDraftBuilder |
of(ResourceIdentifier<Cart> cart,
Long version,
String orderNumber,
PaymentState paymentState)
Creates a new object initialized with the given values.
|
static OrderFromCartDraftBuilder |
of(String id,
Long version)
Creates a new object initialized with the given values.
|
static OrderFromCartDraftBuilder |
of(String id,
Long version,
String orderNumber,
PaymentState paymentState)
Creates a new object initialized with the given values.
|
OrderFromCartDraftBuilder |
orderNumber(String orderNumber)
Sets the
orderNumber property of this builder. |
OrderFromCartDraftBuilder |
orderState(OrderState orderState)
Sets the
orderState property of this builder. |
OrderFromCartDraftBuilder |
paymentState(PaymentState paymentState)
Sets the
paymentState property of this builder. |
OrderFromCartDraftBuilder |
shipmentState(ShipmentState shipmentState)
Sets the
shipmentState property of this builder. |
OrderFromCartDraftBuilder |
state(Referenceable<State> state)
Sets the
state property of this builder. |
OrderFromCartDraftBuilder |
version(Long version)
Sets the
version property of this builder. |
public OrderFromCartDraftBuilder cart(ResourceIdentifier<Cart> cart)
cart property of this builder.cart - the value for OrderFromCartDraft.getCart()public OrderFromCartDraftBuilder custom(@Nullable CustomFieldsDraft custom)
custom property of this builder.custom - the value for OrderFromCartDraft.getCustom()@Deprecated public OrderFromCartDraftBuilder id(@Nullable String id)
id property of this builder.id - the value for OrderFromCartDraft.getId()public OrderFromCartDraftBuilder orderNumber(@Nullable String orderNumber)
orderNumber property of this builder.orderNumber - the value for OrderFromCartDraft.getOrderNumber()public OrderFromCartDraftBuilder orderState(@Nullable OrderState orderState)
orderState property of this builder.orderState - the value for OrderFromCartDraft.getOrderState()public OrderFromCartDraftBuilder paymentState(@Nullable PaymentState paymentState)
paymentState property of this builder.paymentState - the value for OrderFromCartDraft.getPaymentState()public OrderFromCartDraftBuilder shipmentState(@Nullable ShipmentState shipmentState)
shipmentState property of this builder.shipmentState - the value for OrderFromCartDraft.getShipmentState()public OrderFromCartDraftBuilder state(@Nullable Referenceable<State> state)
state property of this builder.state - the value for OrderFromCartDraft.getState()public OrderFromCartDraftBuilder version(Long version)
version property of this builder.version - the value for OrderFromCartDraft.getVersion()public ResourceIdentifier<Cart> getCart()
@Nullable public CustomFieldsDraft getCustom()
@Nullable @Deprecated public String getId()
@Nullable public OrderState getOrderState()
@Nullable public PaymentState getPaymentState()
@Nullable public ShipmentState getShipmentState()
public Long getVersion()
public OrderFromCartDraftDsl build()
OrderFromCartDraftDsl with the values of this builder.build in interface Builder<OrderFromCartDraftDsl>public static OrderFromCartDraftBuilder of(@Nullable String id, Long version, @Nullable String orderNumber, @Nullable PaymentState paymentState)
id - initial value for the OrderFromCartDraft.getId() propertyversion - initial value for the OrderFromCartDraft.getVersion() propertyorderNumber - initial value for the OrderFromCartDraft.getOrderNumber() propertypaymentState - initial value for the OrderFromCartDraft.getPaymentState() propertypublic static OrderFromCartDraftBuilder of(@Nullable String id, Long version)
id - initial value for the OrderFromCartDraft.getId() propertyversion - initial value for the OrderFromCartDraft.getVersion() propertypublic static OrderFromCartDraftBuilder of(ResourceIdentifier<Cart> cart, Long version, @Nullable String orderNumber, @Nullable PaymentState paymentState)
cart - initial value for the OrderFromCartDraft.getCart() propertyversion - initial value for the OrderFromCartDraft.getVersion() propertyorderNumber - initial value for the OrderFromCartDraft.getOrderNumber() propertypaymentState - initial value for the OrderFromCartDraft.getPaymentState() propertypublic static OrderFromCartDraftBuilder of(ResourceIdentifier<Cart> cart, Long version)
cart - initial value for the OrderFromCartDraft.getCart() propertyversion - initial value for the OrderFromCartDraft.getVersion() propertypublic static OrderFromCartDraftBuilder of(OrderFromCartDraft template)
template - the template