@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, wait
of, of, of
@Nullable public String getComment()
getComment
in interface LineItemReturnItemDraft
getComment
in interface ReturnItemDraft
@Nullable public CustomFieldsDraft getCustom()
getCustom
in interface LineItemReturnItemDraft
getCustom
in interface ReturnItemDraft
public String getLineItemId()
getLineItemId
in interface LineItemReturnItemDraft
public Long getQuantity()
getQuantity
in interface LineItemReturnItemDraft
getQuantity
in interface ReturnItemDraft
public ReturnShipmentState getShipmentState()
getShipmentState
in interface LineItemReturnItemDraft
getShipmentState
in interface ReturnItemDraft
public 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