@Generated(value="io.sphere.sdk.annotations.processors.generators.ResourceDraftValueGenerator", comments="Generated from: io.sphere.sdk.orders.OrderFromCartDraft") public final class OrderFromCartDraftDsl extends Base implements OrderFromCartDraft
OrderFromCartDraft.clone, finalize, getClass, notify, notifyAll, wait, wait, waitof, ofpublic ResourceIdentifier<Cart> getCart()
getCart in interface OrderFromCartDraft@Nullable public CustomFieldsDraft getCustom()
getCustom in interface OrderFromCartDraft@Nullable @Deprecated public String getId()
getId in interface OrderFromCartDraft@Nullable public String getOrderNumber()
getOrderNumber in interface OrderFromCartDraft@Nullable public OrderState getOrderState()
getOrderState in interface OrderFromCartDraft@Nullable public PaymentState getPaymentState()
getPaymentState in interface OrderFromCartDraft@Nullable public ShipmentState getShipmentState()
getShipmentState in interface OrderFromCartDraft@Nullable public Reference<State> getState()
getState in interface OrderFromCartDraftpublic Long getVersion()
getVersion in interface OrderFromCartDraftpublic OrderFromCartDraftBuilder newBuilder()
public OrderFromCartDraftDsl withCart(ResourceIdentifier<Cart> cart)
public OrderFromCartDraftDsl withCustom(@Nullable CustomFieldsDraft custom)
@Deprecated public OrderFromCartDraftDsl withId(@Nullable String id)
public OrderFromCartDraftDsl withOrderNumber(@Nullable String orderNumber)
public OrderFromCartDraftDsl withOrderState(@Nullable OrderState orderState)
public OrderFromCartDraftDsl withPaymentState(@Nullable PaymentState paymentState)
public OrderFromCartDraftDsl withShipmentState(@Nullable ShipmentState shipmentState)
public OrderFromCartDraftDsl withState(@Nullable Referenceable<State> state)
public OrderFromCartDraftDsl withVersion(Long version)
public static OrderFromCartDraftDsl 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 OrderFromCartDraftDsl of(@Nullable String id, Long version)
id - initial value for the OrderFromCartDraft.getId() propertyversion - initial value for the OrderFromCartDraft.getVersion() propertypublic static OrderFromCartDraftDsl of(ResourceIdentifier<Cart> cart, Long version, @Nullable String orderNumber, @Nullable PaymentState paymentState)
of in interface OrderFromCartDraftcart - 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 OrderFromCartDraftDsl of(ResourceIdentifier<Cart> cart, Long version)
of in interface OrderFromCartDraftcart - initial value for the OrderFromCartDraft.getCart() propertyversion - initial value for the OrderFromCartDraft.getVersion() propertypublic static OrderFromCartDraftDsl of(OrderFromCartDraft template)
template - the template