@Generated(value="io.sphere.sdk.annotations.processors.generators.DraftBuilderGenerator", comments="Generated from: io.sphere.sdk.orders.ReturnInfoDraft") public final class ReturnInfoDraftBuilder extends Base implements Builder<ReturnInfoDraftDsl>
ReturnInfoDraft.| Modifier and Type | Method and Description |
|---|---|
ReturnInfoDraftDsl |
build()
Creates a new instance of
ReturnInfoDraftDsl with the values of this builder. |
List<ReturnItemDraft> |
getItems() |
ZonedDateTime |
getReturnDate() |
String |
getReturnTrackingId() |
ReturnInfoDraftBuilder |
items(List<ReturnItemDraft> items)
Sets the
items property of this builder. |
static ReturnInfoDraftBuilder |
of()
Creates a new object initialized with the given values.
|
static ReturnInfoDraftBuilder |
of(ReturnInfoDraft template)
Creates a new object initialized with the fields of the template parameter.
|
ReturnInfoDraftBuilder |
plusItems(List<ReturnItemDraft> items)
Concatenate
items parameter to the items list property of this builder. |
ReturnInfoDraftBuilder |
plusItems(ReturnItemDraft items)
Adds
items parameter to the items list property of this builder. |
ReturnInfoDraftBuilder |
returnDate(ZonedDateTime returnDate)
Sets the
returnDate property of this builder. |
ReturnInfoDraftBuilder |
returnTrackingId(String returnTrackingId)
Sets the
returnTrackingId property of this builder. |
public ReturnInfoDraftBuilder items(List<ReturnItemDraft> items)
items property of this builder.items - the value for ReturnInfoDraft.getItems()public ReturnInfoDraftBuilder returnDate(@Nullable ZonedDateTime returnDate)
returnDate property of this builder.returnDate - the value for ReturnInfoDraft.getReturnDate()public ReturnInfoDraftBuilder returnTrackingId(@Nullable String returnTrackingId)
returnTrackingId property of this builder.returnTrackingId - the value for ReturnInfoDraft.getReturnTrackingId()public List<ReturnItemDraft> getItems()
@Nullable public ZonedDateTime getReturnDate()
public ReturnInfoDraftBuilder plusItems(List<ReturnItemDraft> items)
items parameter to the items list property of this builder.items - the value for ReturnInfoDraft.getItems()public ReturnInfoDraftBuilder plusItems(ReturnItemDraft items)
items parameter to the items list property of this builder.items - the value of the element to add to ReturnInfoDraft.getItems()public ReturnInfoDraftDsl build()
ReturnInfoDraftDsl with the values of this builder.build in interface Builder<ReturnInfoDraftDsl>public static ReturnInfoDraftBuilder of()
public static ReturnInfoDraftBuilder of(ReturnInfoDraft template)
template - the template