@Generated(value="io.sphere.sdk.annotations.processors.generators.ResourceDraftValueGenerator", comments="Generated from: io.sphere.sdk.orders.LineItemReturnItemDraft") public final class LineItemReturnItemDraftDsl extends Base implements LineItemReturnItemDraft
LineItemReturnItemDraft.| Modifier and Type | Method and Description |
|---|---|
String |
getComment() |
CustomFieldsDraft |
getCustom() |
String |
getLineItemId() |
Long |
getQuantity() |
ReturnShipmentState |
getShipmentState() |
LineItemReturnItemDraftBuilder |
newBuilder()
Creates a new builder with the values of this object.
|
static LineItemReturnItemDraftDsl |
of(LineItemReturnItemDraft template)
Creates a new object initialized with the fields of the template parameter.
|
static LineItemReturnItemDraftDsl |
of(Long quantity,
String lineItemId,
ReturnShipmentState shipmentState,
String comment,
CustomFieldsDraft custom)
Creates a new object initialized with the given values.
|
LineItemReturnItemDraftDsl |
withComment(String comment) |
LineItemReturnItemDraftDsl |
withCustom(CustomFieldsDraft custom) |
LineItemReturnItemDraftDsl |
withLineItemId(String lineItemId) |
LineItemReturnItemDraftDsl |
withQuantity(Long quantity) |
LineItemReturnItemDraftDsl |
withShipmentState(ReturnShipmentState shipmentState) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitof, of, of@Nullable public String getComment()
getComment in interface LineItemReturnItemDraftgetComment in interface ReturnItemDraft@Nullable public CustomFieldsDraft getCustom()
getCustom in interface LineItemReturnItemDraftgetCustom in interface ReturnItemDraftpublic String getLineItemId()
getLineItemId in interface LineItemReturnItemDraftpublic Long getQuantity()
getQuantity in interface LineItemReturnItemDraftgetQuantity in interface ReturnItemDraftpublic ReturnShipmentState getShipmentState()
getShipmentState in interface LineItemReturnItemDraftgetShipmentState in interface ReturnItemDraftpublic LineItemReturnItemDraftBuilder newBuilder()
public LineItemReturnItemDraftDsl withComment(@Nullable String comment)
public LineItemReturnItemDraftDsl withCustom(@Nullable CustomFieldsDraft custom)
public LineItemReturnItemDraftDsl withLineItemId(String lineItemId)
public LineItemReturnItemDraftDsl withQuantity(Long quantity)
public LineItemReturnItemDraftDsl withShipmentState(ReturnShipmentState shipmentState)
public static LineItemReturnItemDraftDsl of(Long quantity, String lineItemId, ReturnShipmentState shipmentState, @Nullable String comment, @Nullable CustomFieldsDraft custom)
quantity - initial value for the LineItemReturnItemDraft.getQuantity() propertylineItemId - initial value for the LineItemReturnItemDraft.getLineItemId() propertyshipmentState - initial value for the LineItemReturnItemDraft.getShipmentState() propertycomment - initial value for the LineItemReturnItemDraft.getComment() propertycustom - initial value for the LineItemReturnItemDraft.getCustom() propertypublic static LineItemReturnItemDraftDsl of(LineItemReturnItemDraft template)
template - the template