@Generated(value="io.sphere.sdk.annotations.processors.generators.DraftBuilderGenerator", comments="Generated from: io.sphere.sdk.orders.ParcelDraft") public final class ParcelDraftBuilder extends Base implements Builder<ParcelDraftDsl>
ParcelDraft
.Modifier and Type | Method and Description |
---|---|
ParcelDraftDsl |
build()
Creates a new instance of
ParcelDraftDsl with the values of this builder. |
ParcelDraftBuilder |
custom(CustomFieldsDraft custom)
Sets the
custom property of this builder. |
CustomFieldsDraft |
getCustom() |
List<DeliveryItem> |
getItems() |
ParcelMeasurements |
getMeasurements() |
TrackingData |
getTrackingData() |
ParcelDraftBuilder |
items(List<DeliveryItem> items)
Sets the
items property of this builder. |
ParcelDraftBuilder |
measurements(ParcelMeasurements measurements)
Sets the
measurements property of this builder. |
static ParcelDraftBuilder |
of()
Creates a new object initialized with the given values.
|
static ParcelDraftBuilder |
of(ParcelDraft template)
Creates a new object initialized with the fields of the template parameter.
|
ParcelDraftBuilder |
plusItems(DeliveryItem items)
Adds
items parameter to the items list property of this builder. |
ParcelDraftBuilder |
plusItems(List<DeliveryItem> items)
Concatenate
items parameter to the items list property of this builder. |
ParcelDraftBuilder |
trackingData(TrackingData trackingData)
Sets the
trackingData property of this builder. |
public ParcelDraftBuilder custom(@Nullable CustomFieldsDraft custom)
custom
property of this builder.custom
- the value for ParcelDraft.getCustom()
public ParcelDraftBuilder items(@Nullable List<DeliveryItem> items)
items
property of this builder.items
- the value for ParcelDraft.getItems()
public ParcelDraftBuilder measurements(@Nullable ParcelMeasurements measurements)
measurements
property of this builder.measurements
- the value for ParcelDraft.getMeasurements()
public ParcelDraftBuilder trackingData(@Nullable TrackingData trackingData)
trackingData
property of this builder.trackingData
- the value for ParcelDraft.getTrackingData()
@Nullable public CustomFieldsDraft getCustom()
@Nullable public List<DeliveryItem> getItems()
@Nullable public ParcelMeasurements getMeasurements()
@Nullable public TrackingData getTrackingData()
public ParcelDraftBuilder plusItems(List<DeliveryItem> items)
items
parameter to the items
list property of this builder.items
- the value for ParcelDraft.getItems()
public ParcelDraftBuilder plusItems(DeliveryItem items)
items
parameter to the items
list property of this builder.items
- the value of the element to add to ParcelDraft.getItems()
public ParcelDraftDsl build()
ParcelDraftDsl
with the values of this builder.build
in interface Builder<ParcelDraftDsl>
public static ParcelDraftBuilder of()
public static ParcelDraftBuilder of(ParcelDraft template)
template
- the template