@Generated(value="io.sphere.sdk.annotations.processors.generators.DraftBuilderGenerator", comments="Generated from: io.sphere.sdk.orders.LineItemReturnItemDraft") public final class LineItemReturnItemDraftBuilder extends Base implements Builder<LineItemReturnItemDraftDsl>
LineItemReturnItemDraft.| Modifier and Type | Method and Description |
|---|---|
LineItemReturnItemDraftDsl |
build()
Creates a new instance of
LineItemReturnItemDraftDsl with the values of this builder. |
LineItemReturnItemDraftBuilder |
comment(String comment)
Sets the
comment property of this builder. |
LineItemReturnItemDraftBuilder |
custom(CustomFieldsDraft custom)
Sets the
custom property of this builder. |
String |
getComment() |
CustomFieldsDraft |
getCustom() |
String |
getLineItemId() |
Long |
getQuantity() |
ReturnShipmentState |
getShipmentState() |
LineItemReturnItemDraftBuilder |
lineItemId(String lineItemId)
Sets the
lineItemId property of this builder. |
static LineItemReturnItemDraftBuilder |
of(LineItemReturnItemDraft template)
Creates a new object initialized with the fields of the template parameter.
|
static LineItemReturnItemDraftBuilder |
of(Long quantity,
String lineItemId,
ReturnShipmentState shipmentState,
String comment,
CustomFieldsDraft custom)
Creates a new object initialized with the given values.
|
LineItemReturnItemDraftBuilder |
quantity(Long quantity)
Sets the
quantity property of this builder. |
LineItemReturnItemDraftBuilder |
shipmentState(ReturnShipmentState shipmentState)
Sets the
shipmentState property of this builder. |
public LineItemReturnItemDraftBuilder comment(@Nullable String comment)
comment property of this builder.comment - the value for LineItemReturnItemDraft.getComment()public LineItemReturnItemDraftBuilder custom(@Nullable CustomFieldsDraft custom)
custom property of this builder.custom - the value for LineItemReturnItemDraft.getCustom()public LineItemReturnItemDraftBuilder lineItemId(String lineItemId)
lineItemId property of this builder.lineItemId - the value for LineItemReturnItemDraft.getLineItemId()public LineItemReturnItemDraftBuilder quantity(Long quantity)
quantity property of this builder.quantity - the value for LineItemReturnItemDraft.getQuantity()public LineItemReturnItemDraftBuilder shipmentState(ReturnShipmentState shipmentState)
shipmentState property of this builder.shipmentState - the value for LineItemReturnItemDraft.getShipmentState()@Nullable public CustomFieldsDraft getCustom()
public String getLineItemId()
public Long getQuantity()
public ReturnShipmentState getShipmentState()
public LineItemReturnItemDraftDsl build()
LineItemReturnItemDraftDsl with the values of this builder.build in interface Builder<LineItemReturnItemDraftDsl>public static LineItemReturnItemDraftBuilder 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 LineItemReturnItemDraftBuilder of(LineItemReturnItemDraft template)
template - the template