Class ItemShippingDetailsDraftBuilder
- All Implemented Interfaces:
Builder<ItemShippingDetailsDraft>
Example to create an instance using the builder pattern
ItemShippingDetailsDraft itemShippingDetailsDraft = ItemShippingDetailsDraft.builder()
.plusTargets(targetsBuilder -> targetsBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionHolds information on the quantity of Line Items or Custom Line Items and the address it is shipped.build()
builds ItemShippingDetailsDraft with checking for non-null required valuesbuilds ItemShippingDetailsDraft without checking for non-null required valuesHolds information on the quantity of Line Items or Custom Line Items and the address it is shipped.of()
factory method for an instance of ItemShippingDetailsDraftBuilderof
(ItemShippingDetailsDraft template) create builder for ItemShippingDetailsDraft instanceplusTargets
(ItemShippingTarget... targets) Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.targets
(ItemShippingTarget... targets) Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.targets
(List<ItemShippingTarget> targets) Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.
-
Constructor Details
-
ItemShippingDetailsDraftBuilder
public ItemShippingDetailsDraftBuilder()
-
-
Method Details
-
targets
Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.
If multiple shipping addresses are present for a Line Item or Custom Line Item, sub-quantities must be specified.
- Parameters:
targets
- value to be set- Returns:
- Builder
-
targets
Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.
If multiple shipping addresses are present for a Line Item or Custom Line Item, sub-quantities must be specified.
- Parameters:
targets
- value to be set- Returns:
- Builder
-
plusTargets
Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.
If multiple shipping addresses are present for a Line Item or Custom Line Item, sub-quantities must be specified.
- Parameters:
targets
- value to be set- Returns:
- Builder
-
plusTargets
public ItemShippingDetailsDraftBuilder plusTargets(Function<ItemShippingTargetBuilder, ItemShippingTargetBuilder> builder) Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.
If multiple shipping addresses are present for a Line Item or Custom Line Item, sub-quantities must be specified.
- Parameters:
builder
- function to build the targets value- Returns:
- Builder
-
withTargets
public ItemShippingDetailsDraftBuilder withTargets(Function<ItemShippingTargetBuilder, ItemShippingTargetBuilder> builder) Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.
If multiple shipping addresses are present for a Line Item or Custom Line Item, sub-quantities must be specified.
- Parameters:
builder
- function to build the targets value- Returns:
- Builder
-
addTargets
public ItemShippingDetailsDraftBuilder addTargets(Function<ItemShippingTargetBuilder, ItemShippingTarget> builder) Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.
If multiple shipping addresses are present for a Line Item or Custom Line Item, sub-quantities must be specified.
- Parameters:
builder
- function to build the targets value- Returns:
- Builder
-
setTargets
public ItemShippingDetailsDraftBuilder setTargets(Function<ItemShippingTargetBuilder, ItemShippingTarget> builder) Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.
If multiple shipping addresses are present for a Line Item or Custom Line Item, sub-quantities must be specified.
- Parameters:
builder
- function to build the targets value- Returns:
- Builder
-
getTargets
Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.
If multiple shipping addresses are present for a Line Item or Custom Line Item, sub-quantities must be specified.
- Returns:
- targets
-
build
builds ItemShippingDetailsDraft with checking for non-null required values- Specified by:
build
in interfaceBuilder<ItemShippingDetailsDraft>
- Returns:
- ItemShippingDetailsDraft
-
buildUnchecked
builds ItemShippingDetailsDraft without checking for non-null required values- Returns:
- ItemShippingDetailsDraft
-
of
factory method for an instance of ItemShippingDetailsDraftBuilder- Returns:
- builder
-
of
create builder for ItemShippingDetailsDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-