Class OrderFieldBuilder
- All Implemented Interfaces:
Builder<OrderField>
Example to create an instance using the builder pattern
OrderField orderField = OrderField.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionMaps toOrder.delivery
addDeliveries
(DeliveryDraft... addDeliveries) Maps toOrder.delivery
addDeliveries
(List<DeliveryDraft> addDeliveries) Maps toOrder.delivery
addParcelToDelivery
(DeliveryParcel addParcelToDelivery) Maps toOrder.delivery
Maps toOrder.delivery
addReturnInfo
(ReturnInfo addReturnInfo) Maps toOrder.returnInfo
Maps toOrder.returnInfo
Maps toOrder.parcelItems
build()
builds OrderField with checking for non-null required valuesbuilds OrderField without checking for non-null required valuesMaps toOrder.delivery
Maps toOrder.delivery
Maps toOrder.returnInfo
Maps toOrder.removeDelivery
Maps toOrder.removeParcelFromDelivery
Maps toOrder.addressDraft
Maps toOrder.parcelItems
Maps toOrder.parcelMeasurements
Maps toOrder.parcelTrackingData
static OrderFieldBuilder
of()
factory method for an instance of OrderFieldBuilderstatic OrderFieldBuilder
of
(OrderField template) create builder for OrderField instanceplusAddDeliveries
(DeliveryDraft... addDeliveries) Maps toOrder.delivery
Maps toOrder.delivery
plusSetParcelItems
(ParcelItems... setParcelItems) Maps toOrder.parcelItems
Maps toOrder.parcelItems
removeDelivery
(RemoveDeliveryDraft removeDelivery) Maps toOrder.removeDelivery
Maps toOrder.removeDelivery
removeParcelFromDelivery
(RemoveParcelFromDeliveryDraft removeParcelFromDelivery) Maps toOrder.removeParcelFromDelivery
removeParcelFromDelivery
(Function<RemoveParcelFromDeliveryDraftBuilder, RemoveParcelFromDeliveryDraftBuilder> builder) Maps toOrder.removeParcelFromDelivery
Maps toOrder.delivery
setDeliveryAddress
(DeliveryAddressDraft setDeliveryAddress) Maps toOrder.addressDraft
Maps toOrder.addressDraft
setParcelItems
(ParcelItems... setParcelItems) Maps toOrder.parcelItems
setParcelItems
(List<ParcelItems> setParcelItems) Maps toOrder.parcelItems
setParcelMeasurements
(ParcelMeasurementDraft setParcelMeasurements) Maps toOrder.parcelMeasurements
setParcelMeasurements
(Function<ParcelMeasurementDraftBuilder, ParcelMeasurementDraftBuilder> builder) Maps toOrder.parcelMeasurements
setParcelTrackingData
(ParcelTrackingData setParcelTrackingData) Maps toOrder.parcelTrackingData
Maps toOrder.parcelTrackingData
Maps toOrder.parcelItems
Maps toOrder.delivery
Maps toOrder.delivery
withAddReturnInfo
(Function<ReturnInfoBuilder, ReturnInfo> builder) Maps toOrder.returnInfo
Maps toOrder.removeDelivery
withRemoveParcelFromDelivery
(Function<RemoveParcelFromDeliveryDraftBuilder, RemoveParcelFromDeliveryDraft> builder) Maps toOrder.removeParcelFromDelivery
Maps toOrder.addressDraft
Maps toOrder.parcelItems
Maps toOrder.parcelMeasurements
Maps toOrder.parcelTrackingData
-
Constructor Details
-
OrderFieldBuilder
public OrderFieldBuilder()
-
-
Method Details
-
addReturnInfo
Maps to
Order.returnInfo
- Parameters:
builder
- function to build the addReturnInfo value- Returns:
- Builder
-
withAddReturnInfo
Maps to
Order.returnInfo
- Parameters:
builder
- function to build the addReturnInfo value- Returns:
- Builder
-
addReturnInfo
Maps to
Order.returnInfo
- Parameters:
addReturnInfo
- value to be set- Returns:
- Builder
-
addParcelToDelivery
public OrderFieldBuilder addParcelToDelivery(Function<DeliveryParcelBuilder, DeliveryParcelBuilder> builder) Maps to
Order.delivery
- Parameters:
builder
- function to build the addParcelToDelivery value- Returns:
- Builder
-
withAddParcelToDelivery
public OrderFieldBuilder withAddParcelToDelivery(Function<DeliveryParcelBuilder, DeliveryParcel> builder) Maps to
Order.delivery
- Parameters:
builder
- function to build the addParcelToDelivery value- Returns:
- Builder
-
addParcelToDelivery
Maps to
Order.delivery
- Parameters:
addParcelToDelivery
- value to be set- Returns:
- Builder
-
addDeliveries
Maps to
Order.delivery
- Parameters:
addDeliveries
- value to be set- Returns:
- Builder
-
addDeliveries
Maps to
Order.delivery
- Parameters:
addDeliveries
- value to be set- Returns:
- Builder
-
plusAddDeliveries
Maps to
Order.delivery
- Parameters:
addDeliveries
- value to be set- Returns:
- Builder
-
plusAddDeliveries
public OrderFieldBuilder plusAddDeliveries(Function<DeliveryDraftBuilder, DeliveryDraftBuilder> builder) Maps to
Order.delivery
- Parameters:
builder
- function to build the addDeliveries value- Returns:
- Builder
-
withAddDeliveries
public OrderFieldBuilder withAddDeliveries(Function<DeliveryDraftBuilder, DeliveryDraftBuilder> builder) Maps to
Order.delivery
- Parameters:
builder
- function to build the addDeliveries value- Returns:
- Builder
-
addAddDeliveries
Maps to
Order.delivery
- Parameters:
builder
- function to build the addDeliveries value- Returns:
- Builder
-
setAddDeliveries
Maps to
Order.delivery
- Parameters:
builder
- function to build the addDeliveries value- Returns:
- Builder
-
removeDelivery
public OrderFieldBuilder removeDelivery(Function<RemoveDeliveryDraftBuilder, RemoveDeliveryDraftBuilder> builder) Maps to
Order.removeDelivery
- Parameters:
builder
- function to build the removeDelivery value- Returns:
- Builder
-
withRemoveDelivery
public OrderFieldBuilder withRemoveDelivery(Function<RemoveDeliveryDraftBuilder, RemoveDeliveryDraft> builder) Maps to
Order.removeDelivery
- Parameters:
builder
- function to build the removeDelivery value- Returns:
- Builder
-
removeDelivery
Maps to
Order.removeDelivery
- Parameters:
removeDelivery
- value to be set- Returns:
- Builder
-
removeParcelFromDelivery
public OrderFieldBuilder removeParcelFromDelivery(Function<RemoveParcelFromDeliveryDraftBuilder, RemoveParcelFromDeliveryDraftBuilder> builder) Maps to
Order.removeParcelFromDelivery
- Parameters:
builder
- function to build the removeParcelFromDelivery value- Returns:
- Builder
-
withRemoveParcelFromDelivery
public OrderFieldBuilder withRemoveParcelFromDelivery(Function<RemoveParcelFromDeliveryDraftBuilder, RemoveParcelFromDeliveryDraft> builder) Maps to
Order.removeParcelFromDelivery
- Parameters:
builder
- function to build the removeParcelFromDelivery value- Returns:
- Builder
-
removeParcelFromDelivery
public OrderFieldBuilder removeParcelFromDelivery(@Nullable RemoveParcelFromDeliveryDraft removeParcelFromDelivery) Maps to
Order.removeParcelFromDelivery
- Parameters:
removeParcelFromDelivery
- value to be set- Returns:
- Builder
-
setDeliveryAddress
public OrderFieldBuilder setDeliveryAddress(Function<DeliveryAddressDraftBuilder, DeliveryAddressDraftBuilder> builder) Maps to
Order.addressDraft
- Parameters:
builder
- function to build the setDeliveryAddress value- Returns:
- Builder
-
withSetDeliveryAddress
public OrderFieldBuilder withSetDeliveryAddress(Function<DeliveryAddressDraftBuilder, DeliveryAddressDraft> builder) Maps to
Order.addressDraft
- Parameters:
builder
- function to build the setDeliveryAddress value- Returns:
- Builder
-
setDeliveryAddress
Maps to
Order.addressDraft
- Parameters:
setDeliveryAddress
- value to be set- Returns:
- Builder
-
setParcelMeasurements
public OrderFieldBuilder setParcelMeasurements(Function<ParcelMeasurementDraftBuilder, ParcelMeasurementDraftBuilder> builder) Maps to
Order.parcelMeasurements
- Parameters:
builder
- function to build the setParcelMeasurements value- Returns:
- Builder
-
withSetParcelMeasurements
public OrderFieldBuilder withSetParcelMeasurements(Function<ParcelMeasurementDraftBuilder, ParcelMeasurementDraft> builder) Maps to
Order.parcelMeasurements
- Parameters:
builder
- function to build the setParcelMeasurements value- Returns:
- Builder
-
setParcelMeasurements
public OrderFieldBuilder setParcelMeasurements(@Nullable ParcelMeasurementDraft setParcelMeasurements) Maps to
Order.parcelMeasurements
- Parameters:
setParcelMeasurements
- value to be set- Returns:
- Builder
-
setParcelTrackingData
public OrderFieldBuilder setParcelTrackingData(Function<ParcelTrackingDataBuilder, ParcelTrackingDataBuilder> builder) Maps to
Order.parcelTrackingData
- Parameters:
builder
- function to build the setParcelTrackingData value- Returns:
- Builder
-
withSetParcelTrackingData
public OrderFieldBuilder withSetParcelTrackingData(Function<ParcelTrackingDataBuilder, ParcelTrackingData> builder) Maps to
Order.parcelTrackingData
- Parameters:
builder
- function to build the setParcelTrackingData value- Returns:
- Builder
-
setParcelTrackingData
Maps to
Order.parcelTrackingData
- Parameters:
setParcelTrackingData
- value to be set- Returns:
- Builder
-
setParcelItems
Maps to
Order.parcelItems
- Parameters:
setParcelItems
- value to be set- Returns:
- Builder
-
setParcelItems
Maps to
Order.parcelItems
- Parameters:
setParcelItems
- value to be set- Returns:
- Builder
-
plusSetParcelItems
Maps to
Order.parcelItems
- Parameters:
setParcelItems
- value to be set- Returns:
- Builder
-
plusSetParcelItems
public OrderFieldBuilder plusSetParcelItems(Function<ParcelItemsBuilder, ParcelItemsBuilder> builder) Maps to
Order.parcelItems
- Parameters:
builder
- function to build the setParcelItems value- Returns:
- Builder
-
withSetParcelItems
public OrderFieldBuilder withSetParcelItems(Function<ParcelItemsBuilder, ParcelItemsBuilder> builder) Maps to
Order.parcelItems
- Parameters:
builder
- function to build the setParcelItems value- Returns:
- Builder
-
addSetParcelItems
Maps to
Order.parcelItems
- Parameters:
builder
- function to build the setParcelItems value- Returns:
- Builder
-
setSetParcelItems
Maps to
Order.parcelItems
- Parameters:
builder
- function to build the setParcelItems value- Returns:
- Builder
-
getAddReturnInfo
Maps to
Order.returnInfo
- Returns:
- addReturnInfo
-
getAddParcelToDelivery
Maps to
Order.delivery
- Returns:
- addParcelToDelivery
-
getAddDeliveries
Maps to
Order.delivery
- Returns:
- addDeliveries
-
getRemoveDelivery
Maps to
Order.removeDelivery
- Returns:
- removeDelivery
-
getRemoveParcelFromDelivery
Maps to
Order.removeParcelFromDelivery
- Returns:
- removeParcelFromDelivery
-
getSetDeliveryAddress
Maps to
Order.addressDraft
- Returns:
- setDeliveryAddress
-
getSetParcelMeasurements
Maps to
Order.parcelMeasurements
- Returns:
- setParcelMeasurements
-
getSetParcelTrackingData
Maps to
Order.parcelTrackingData
- Returns:
- setParcelTrackingData
-
getSetParcelItems
Maps to
Order.parcelItems
- Returns:
- setParcelItems
-
build
builds OrderField with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderField>
- Returns:
- OrderField
-
buildUnchecked
builds OrderField without checking for non-null required values- Returns:
- OrderField
-
of
factory method for an instance of OrderFieldBuilder- Returns:
- builder
-
of
create builder for OrderField instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-