@Generated(value="io.sphere.sdk.annotations.processors.generators.DraftBuilderGenerator", comments="Generated from: io.sphere.sdk.orders.CustomLineItemReturnItemDraft") public final class CustomLineItemReturnItemDraftBuilder extends Base implements Builder<CustomLineItemReturnItemDraftDsl>
CustomLineItemReturnItemDraft.| Modifier and Type | Method and Description |
|---|---|
CustomLineItemReturnItemDraftDsl |
build()
Creates a new instance of
CustomLineItemReturnItemDraftDsl with the values of this builder. |
CustomLineItemReturnItemDraftBuilder |
comment(String comment)
Sets the
comment property of this builder. |
CustomLineItemReturnItemDraftBuilder |
custom(CustomFieldsDraft custom)
Sets the
custom property of this builder. |
CustomLineItemReturnItemDraftBuilder |
customLineItemId(String customLineItemId)
Sets the
customLineItemId property of this builder. |
String |
getComment() |
CustomFieldsDraft |
getCustom() |
String |
getCustomLineItemId() |
Long |
getQuantity() |
ReturnShipmentState |
getShipmentState() |
static CustomLineItemReturnItemDraftBuilder |
of(CustomLineItemReturnItemDraft template)
Creates a new object initialized with the fields of the template parameter.
|
static CustomLineItemReturnItemDraftBuilder |
of(Long quantity,
String customLineItemId,
ReturnShipmentState shipmentState,
String comment,
CustomFieldsDraft custom)
Creates a new object initialized with the given values.
|
CustomLineItemReturnItemDraftBuilder |
quantity(Long quantity)
Sets the
quantity property of this builder. |
CustomLineItemReturnItemDraftBuilder |
shipmentState(ReturnShipmentState shipmentState)
Sets the
shipmentState property of this builder. |
public CustomLineItemReturnItemDraftBuilder comment(@Nullable String comment)
comment property of this builder.comment - the value for CustomLineItemReturnItemDraft.getComment()public CustomLineItemReturnItemDraftBuilder custom(@Nullable CustomFieldsDraft custom)
custom property of this builder.custom - the value for CustomLineItemReturnItemDraft.getCustom()public CustomLineItemReturnItemDraftBuilder customLineItemId(String customLineItemId)
customLineItemId property of this builder.customLineItemId - the value for CustomLineItemReturnItemDraft.getCustomLineItemId()public CustomLineItemReturnItemDraftBuilder quantity(Long quantity)
quantity property of this builder.quantity - the value for CustomLineItemReturnItemDraft.getQuantity()public CustomLineItemReturnItemDraftBuilder shipmentState(ReturnShipmentState shipmentState)
shipmentState property of this builder.shipmentState - the value for CustomLineItemReturnItemDraft.getShipmentState()@Nullable public CustomFieldsDraft getCustom()
public String getCustomLineItemId()
public Long getQuantity()
public ReturnShipmentState getShipmentState()
public CustomLineItemReturnItemDraftDsl build()
CustomLineItemReturnItemDraftDsl with the values of this builder.build in interface Builder<CustomLineItemReturnItemDraftDsl>public static CustomLineItemReturnItemDraftBuilder of(Long quantity, String customLineItemId, ReturnShipmentState shipmentState, @Nullable String comment, @Nullable CustomFieldsDraft custom)
quantity - initial value for the CustomLineItemReturnItemDraft.getQuantity() propertycustomLineItemId - initial value for the CustomLineItemReturnItemDraft.getCustomLineItemId() propertyshipmentState - initial value for the CustomLineItemReturnItemDraft.getShipmentState() propertycomment - initial value for the CustomLineItemReturnItemDraft.getComment() propertycustom - initial value for the CustomLineItemReturnItemDraft.getCustom() propertypublic static CustomLineItemReturnItemDraftBuilder of(CustomLineItemReturnItemDraft template)
template - the template