@Generated(value="io.sphere.sdk.annotations.processors.generators.ResourceDraftValueGenerator", comments="Generated from: io.sphere.sdk.orders.ParcelDraft") public final class ParcelDraftDsl extends Base implements ParcelDraft
ParcelDraft
.Modifier and Type | Method and Description |
---|---|
CustomFieldsDraft |
getCustom() |
List<DeliveryItem> |
getItems() |
ParcelMeasurements |
getMeasurements() |
TrackingData |
getTrackingData() |
ParcelDraftBuilder |
newBuilder()
Creates a new builder with the values of this object.
|
static ParcelDraftDsl |
of()
Creates a new object initialized with the given values.
|
static ParcelDraftDsl |
of(ParcelDraft template)
Creates a new object initialized with the fields of the template parameter.
|
ParcelDraftDsl |
withCustom(CustomFieldsDraft custom) |
ParcelDraftDsl |
withItems(List<DeliveryItem> items) |
ParcelDraftDsl |
withMeasurements(ParcelMeasurements measurements) |
ParcelDraftDsl |
withTrackingData(TrackingData trackingData) |
@Nullable public CustomFieldsDraft getCustom()
getCustom
in interface ParcelDraft
@Nullable public List<DeliveryItem> getItems()
getItems
in interface ParcelDraft
@Nullable public ParcelMeasurements getMeasurements()
getMeasurements
in interface ParcelDraft
@Nullable public TrackingData getTrackingData()
getTrackingData
in interface ParcelDraft
public ParcelDraftBuilder newBuilder()
public ParcelDraftDsl withCustom(@Nullable CustomFieldsDraft custom)
public ParcelDraftDsl withItems(@Nullable List<DeliveryItem> items)
public ParcelDraftDsl withMeasurements(@Nullable ParcelMeasurements measurements)
public ParcelDraftDsl withTrackingData(@Nullable TrackingData trackingData)
public static ParcelDraftDsl of()
public static ParcelDraftDsl of(ParcelDraft template)
template
- the template