Class ItemShippingDetailsDraftBuilder
java.lang.Object
com.commercetools.importapi.models.orders.ItemShippingDetailsDraftBuilder
- All Implemented Interfaces:
Builder<ItemShippingDetailsDraft>
public class ItemShippingDetailsDraftBuilder
extends Object
implements Builder<ItemShippingDetailsDraft>
ItemShippingDetailsDraftBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ItemShippingDetailsDraft itemShippingDetailsDraft = ItemShippingDetailsDraft.builder()
.plusTargets(targetsBuilder -> targetsBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionMaps toItemShippingDetailsDraft.targets
.build()
builds ItemShippingDetailsDraft with checking for non-null required valuesbuilds ItemShippingDetailsDraft without checking for non-null required valuesMaps toItemShippingDetailsDraft.targets
.of()
factory method for an instance of ItemShippingDetailsDraftBuilderof
(ItemShippingDetailsDraft template) create builder for ItemShippingDetailsDraft instanceplusTargets
(ItemShippingTarget... targets) Maps toItemShippingDetailsDraft.targets
.Maps toItemShippingDetailsDraft.targets
.Maps toItemShippingDetailsDraft.targets
.targets
(ItemShippingTarget... targets) Maps toItemShippingDetailsDraft.targets
.targets
(List<ItemShippingTarget> targets) Maps toItemShippingDetailsDraft.targets
.Maps toItemShippingDetailsDraft.targets
.
-
Constructor Details
-
ItemShippingDetailsDraftBuilder
public ItemShippingDetailsDraftBuilder()
-
-
Method Details
-
targets
Maps to
ItemShippingDetailsDraft.targets
.- Parameters:
targets
- value to be set- Returns:
- Builder
-
targets
Maps to
ItemShippingDetailsDraft.targets
.- Parameters:
targets
- value to be set- Returns:
- Builder
-
plusTargets
Maps to
ItemShippingDetailsDraft.targets
.- Parameters:
targets
- value to be set- Returns:
- Builder
-
plusTargets
public ItemShippingDetailsDraftBuilder plusTargets(Function<ItemShippingTargetBuilder, ItemShippingTargetBuilder> builder) Maps to
ItemShippingDetailsDraft.targets
.- Parameters:
builder
- function to build the targets value- Returns:
- Builder
-
withTargets
public ItemShippingDetailsDraftBuilder withTargets(Function<ItemShippingTargetBuilder, ItemShippingTargetBuilder> builder) Maps to
ItemShippingDetailsDraft.targets
.- Parameters:
builder
- function to build the targets value- Returns:
- Builder
-
addTargets
public ItemShippingDetailsDraftBuilder addTargets(Function<ItemShippingTargetBuilder, ItemShippingTarget> builder) Maps to
ItemShippingDetailsDraft.targets
.- Parameters:
builder
- function to build the targets value- Returns:
- Builder
-
setTargets
public ItemShippingDetailsDraftBuilder setTargets(Function<ItemShippingTargetBuilder, ItemShippingTarget> builder) Maps to
ItemShippingDetailsDraft.targets
.- Parameters:
builder
- function to build the targets value- Returns:
- Builder
-
getTargets
Maps to
ItemShippingDetailsDraft.targets
.- 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
-