Class StagedOrderAddDeliveryActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<StagedOrderAddDeliveryAction>
Example to create an instance using the builder pattern
StagedOrderAddDeliveryAction stagedOrderAddDeliveryAction = StagedOrderAddDeliveryAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddItems
(Function<DeliveryItemBuilder, DeliveryItem> builder) add the value to the items using the builder functionaddParcels
(Function<ParcelDraftBuilder, ParcelDraft> builder) add the value to the parcels using the builder functionaddress
(BaseAddress address) Polymorphic base type that represents a postal address and contact details.address
(Function<BaseAddressBuilder, BaseAddressBuilder> builder) Polymorphic base type that represents a postal address and contact details.build()
builds StagedOrderAddDeliveryAction with checking for non-null required valuesbuilds StagedOrderAddDeliveryAction without checking for non-null required valuescustom
(CustomFieldsDraft custom) Custom Fields for the Transaction.Custom Fields for the Transaction.deliveryKey
(String deliveryKey) User-defined unique identifier of a Delivery.Polymorphic base type that represents a postal address and contact details.Custom Fields for the Transaction.User-defined unique identifier of a Delivery.getItems()
value of items}value of parcels}items
(DeliveryItem... items) set values to the itemsitems
(List<DeliveryItem> items) set value to the itemsof()
factory method for an instance of StagedOrderAddDeliveryActionBuilderof
(StagedOrderAddDeliveryAction template) create builder for StagedOrderAddDeliveryAction instanceparcels
(ParcelDraft... parcels) set values to the parcelsparcels
(List<ParcelDraft> parcels) set value to the parcelsplusItems
(DeliveryItem... items) add values to the itemsadd the value to the items using the builder functionplusParcels
(ParcelDraft... parcels) add values to the parcelsadd the value to the parcels using the builder functionsetItems
(Function<DeliveryItemBuilder, DeliveryItem> builder) set the value to the items using the builder functionsetParcels
(Function<ParcelDraftBuilder, ParcelDraft> builder) set the value to the parcels using the builder functionwithAddress
(Function<BaseAddressBuilder, BaseAddress> builder) Polymorphic base type that represents a postal address and contact details.Custom Fields for the Transaction.set the value to the items using the builder functionset the value to the parcels using the builder function
-
Constructor Details
-
StagedOrderAddDeliveryActionBuilder
public StagedOrderAddDeliveryActionBuilder()
-
-
Method Details
-
deliveryKey
User-defined unique identifier of a Delivery.
- Parameters:
deliveryKey
- value to be set- Returns:
- Builder
-
items
set values to the items- Parameters:
items
- value to be set- Returns:
- Builder
-
items
set value to the items- Parameters:
items
- value to be set- Returns:
- Builder
-
plusItems
add values to the items- Parameters:
items
- value to be set- Returns:
- Builder
-
plusItems
public StagedOrderAddDeliveryActionBuilder plusItems(Function<DeliveryItemBuilder, DeliveryItemBuilder> builder) add the value to the items using the builder function- Parameters:
builder
- function to build the items value- Returns:
- Builder
-
withItems
public StagedOrderAddDeliveryActionBuilder withItems(Function<DeliveryItemBuilder, DeliveryItemBuilder> builder) set the value to the items using the builder function- Parameters:
builder
- function to build the items value- Returns:
- Builder
-
addItems
public StagedOrderAddDeliveryActionBuilder addItems(Function<DeliveryItemBuilder, DeliveryItem> builder) add the value to the items using the builder function- Parameters:
builder
- function to build the items value- Returns:
- Builder
-
setItems
public StagedOrderAddDeliveryActionBuilder setItems(Function<DeliveryItemBuilder, DeliveryItem> builder) set the value to the items using the builder function- Parameters:
builder
- function to build the items value- Returns:
- Builder
-
address
public StagedOrderAddDeliveryActionBuilder address(Function<BaseAddressBuilder, BaseAddressBuilder> builder) Polymorphic base type that represents a postal address and contact details. Depending on the read or write action, it can be either Address or AddressDraft that only differ in the data type for the optional
custom
field.- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
withAddress
public StagedOrderAddDeliveryActionBuilder withAddress(Function<BaseAddressBuilder, BaseAddress> builder) Polymorphic base type that represents a postal address and contact details. Depending on the read or write action, it can be either Address or AddressDraft that only differ in the data type for the optional
custom
field.- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
address
Polymorphic base type that represents a postal address and contact details. Depending on the read or write action, it can be either Address or AddressDraft that only differ in the data type for the optional
custom
field.- Parameters:
address
- value to be set- 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
public StagedOrderAddDeliveryActionBuilder plusParcels(Function<ParcelDraftBuilder, ParcelDraftBuilder> builder) add the value to the parcels using the builder function- Parameters:
builder
- function to build the parcels value- Returns:
- Builder
-
withParcels
public StagedOrderAddDeliveryActionBuilder withParcels(Function<ParcelDraftBuilder, ParcelDraftBuilder> builder) set the value to the parcels using the builder function- Parameters:
builder
- function to build the parcels value- Returns:
- Builder
-
addParcels
public StagedOrderAddDeliveryActionBuilder addParcels(Function<ParcelDraftBuilder, ParcelDraft> builder) add the value to the parcels using the builder function- Parameters:
builder
- function to build the parcels value- Returns:
- Builder
-
setParcels
public StagedOrderAddDeliveryActionBuilder setParcels(Function<ParcelDraftBuilder, ParcelDraft> builder) set the value to the parcels using the builder function- Parameters:
builder
- function to build the parcels value- Returns:
- Builder
-
custom
public StagedOrderAddDeliveryActionBuilder custom(Function<CustomFieldsDraftBuilder, CustomFieldsDraftBuilder> builder) Custom Fields for the Transaction.
- Parameters:
builder
- function to build the custom value- Returns:
- Builder
-
withCustom
public StagedOrderAddDeliveryActionBuilder 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
-
getDeliveryKey
User-defined unique identifier of a Delivery.
- Returns:
- deliveryKey
-
getItems
value of items}- Returns:
- items
-
getAddress
Polymorphic base type that represents a postal address and contact details. Depending on the read or write action, it can be either Address or AddressDraft that only differ in the data type for the optional
custom
field.- Returns:
- address
-
getParcels
value of parcels}- Returns:
- parcels
-
getCustom
Custom Fields for the Transaction.
- Returns:
- custom
-
build
builds StagedOrderAddDeliveryAction with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<StagedOrderAddDeliveryAction>
- Returns:
- StagedOrderAddDeliveryAction
-
buildUnchecked
builds StagedOrderAddDeliveryAction without checking for non-null required values- Returns:
- StagedOrderAddDeliveryAction
-
of
factory method for an instance of StagedOrderAddDeliveryActionBuilder- Returns:
- builder
-
of
create builder for StagedOrderAddDeliveryAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-