Class DeliveryDraftBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<DeliveryDraft>
Example to create an instance using the builder pattern
DeliveryDraft deliveryDraft = DeliveryDraft.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddItems
(Function<DeliveryItemBuilder, DeliveryItem> builder) Items which are shipped in this delivery regardless their distribution over several parcels.addParcels
(Function<ParcelDraftBuilder, ParcelDraft> builder) add the value to the parcels using the builder functionaddress
(AddressDraft address) set the value to the addressset the value to the address using the builder functionbuild()
builds DeliveryDraft with checking for non-null required valuesbuilds DeliveryDraft without checking for non-null required valuescustom
(CustomFieldsDraft custom) Custom Fields for the Transaction.Custom Fields for the Transaction.value of address}Custom Fields for the Transaction.getItems()
Items which are shipped in this delivery regardless their distribution over several parcels.getKey()
User-defined unique identifier of the Delivery.value of parcels}items
(DeliveryItem... items) Items which are shipped in this delivery regardless their distribution over several parcels.items
(List<DeliveryItem> items) Items which are shipped in this delivery regardless their distribution over several parcels.User-defined unique identifier of the Delivery.static DeliveryDraftBuilder
of()
factory method for an instance of DeliveryDraftBuilderstatic DeliveryDraftBuilder
of
(DeliveryDraft template) create builder for DeliveryDraft instanceparcels
(ParcelDraft... parcels) set values to the parcelsparcels
(List<ParcelDraft> parcels) set value to the parcelsplusItems
(DeliveryItem... items) Items which are shipped in this delivery regardless their distribution over several parcels.Items which are shipped in this delivery regardless their distribution over several parcels.plusParcels
(ParcelDraft... parcels) add values to the parcelsadd the value to the parcels using the builder functionsetItems
(Function<DeliveryItemBuilder, DeliveryItem> builder) Items which are shipped in this delivery regardless their distribution over several parcels.setParcels
(Function<ParcelDraftBuilder, ParcelDraft> builder) set the value to the parcels using the builder functionwithAddress
(Function<AddressDraftBuilder, AddressDraft> builder) set the value to the address using the builder functionCustom Fields for the Transaction.Items which are shipped in this delivery regardless their distribution over several parcels.set the value to the parcels using the builder function
-
Constructor Details
-
DeliveryDraftBuilder
public DeliveryDraftBuilder()
-
-
Method Details
-
key
User-defined unique identifier of the Delivery.
- Parameters:
key
- value to be set- Returns:
- Builder
-
items
Items which are shipped in this delivery regardless their distribution over several parcels. Can also be specified individually for each Parcel.
- Parameters:
items
- value to be set- Returns:
- Builder
-
items
Items which are shipped in this delivery regardless their distribution over several parcels. Can also be specified individually for each Parcel.
- Parameters:
items
- value to be set- Returns:
- Builder
-
plusItems
Items which are shipped in this delivery regardless their distribution over several parcels. Can also be specified individually for each Parcel.
- Parameters:
items
- value to be set- Returns:
- Builder
-
plusItems
Items which are shipped in this delivery regardless their distribution over several parcels. Can also be specified individually for each Parcel.
- Parameters:
builder
- function to build the items value- Returns:
- Builder
-
withItems
Items which are shipped in this delivery regardless their distribution over several parcels. Can also be specified individually for each Parcel.
- Parameters:
builder
- function to build the items value- Returns:
- Builder
-
addItems
Items which are shipped in this delivery regardless their distribution over several parcels. Can also be specified individually for each Parcel.
- Parameters:
builder
- function to build the items value- Returns:
- Builder
-
setItems
Items which are shipped in this delivery regardless their distribution over several parcels. Can also be specified individually for each Parcel.
- Parameters:
builder
- function to build the items value- Returns:
- Builder
-
parcels
set values to the parcels- Parameters:
parcels
- value to be set- Returns:
- Builder
-
parcels
set value to the parcels- Parameters:
parcels
- value to be set- Returns:
- Builder
-
plusParcels
add values to the parcels- Parameters:
parcels
- value to be set- Returns:
- Builder
-
plusParcels
add the value to the parcels using the builder function- Parameters:
builder
- function to build the parcels value- Returns:
- Builder
-
withParcels
set the value to the parcels using the builder function- Parameters:
builder
- function to build the parcels value- Returns:
- Builder
-
addParcels
add the value to the parcels using the builder function- Parameters:
builder
- function to build the parcels value- Returns:
- Builder
-
setParcels
set the value to the parcels using the builder function- Parameters:
builder
- function to build the parcels value- Returns:
- Builder
-
address
set the value to the address using the builder function- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
withAddress
set the value to the address using the builder function- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
address
set the value to the address- Parameters:
address
- value to be set- Returns:
- Builder
-
custom
public DeliveryDraftBuilder custom(Function<CustomFieldsDraftBuilder, CustomFieldsDraftBuilder> builder) Custom Fields for the Transaction.
- Parameters:
builder
- function to build the custom value- Returns:
- Builder
-
withCustom
public DeliveryDraftBuilder withCustom(Function<CustomFieldsDraftBuilder, CustomFieldsDraft> builder) Custom Fields for the Transaction.
- Parameters:
builder
- function to build the custom value- Returns:
- Builder
-
custom
Custom Fields for the Transaction.
- Parameters:
custom
- value to be set- Returns:
- Builder
-
getKey
User-defined unique identifier of the Delivery.
- Returns:
- key
-
getItems
Items which are shipped in this delivery regardless their distribution over several parcels. Can also be specified individually for each Parcel.
- Returns:
- items
-
getParcels
value of parcels}- Returns:
- parcels
-
getAddress
value of address}- Returns:
- address
-
getCustom
Custom Fields for the Transaction.
- Returns:
- custom
-
build
builds DeliveryDraft with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<DeliveryDraft>
- Returns:
- DeliveryDraft
-
buildUnchecked
builds DeliveryDraft without checking for non-null required values- Returns:
- DeliveryDraft
-
of
factory method for an instance of DeliveryDraftBuilder- Returns:
- builder
-
of
create builder for DeliveryDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-